Browse Source

Permit a single layout stylesheet for each content type

Eg: /css/post.css
master
Adrian Short 7 years ago
parent
commit
eabe679e89
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      layouts/partials/header.html

+ 5
- 0
layouts/partials/header.html View File

@@ -6,6 +6,11 @@
{{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}">

{{- with .Type -}}
<link rel="stylesheet" href="{{ relURL "/css/" }}{{ . }}.css">
{{ end }}

<link rel="alternate" type="application/rss+xml" title="{{ partial "data/title" . }}"
href="{{ .RSSLink }}">
{{- template "_internal/opengraph.html" . -}}


Loading…
Cancel
Save