Bläddra i källkod

Permit a single layout stylesheet for each content type

Eg: /css/post.css
master
Adrian Short 7 år sedan
förälder
incheckning
eabe679e89
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. +5
    -0
      layouts/partials/header.html

+ 5
- 0
layouts/partials/header.html Visa fil

@@ -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" . -}}


Laddar…
Avbryt
Spara