diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ce38afc..e09b60c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,16 +6,8 @@ {{ with .Keywords }}<meta name="keywords" content="{{ delimit . ", " }}"/>{{ end }} <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"/> <link rel="canonical" href="{{ .Permalink }}"/> -{{- with resources.Get "style.css" }} - {{- if eq hugo.Environment "development" }} - <link rel="stylesheet" href="{{ .RelPermalink }}"> - {{- else }} - {{- with . | minify | fingerprint }} - <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> - {{- end }} - {{- end }} -{{- end }} -{{- with resources.Get "syntax.css" }} +{{ range slice "style.css" "syntax.css"}} +{{- with resources.Get . }} {{- if eq hugo.Environment "development" }} <link rel="stylesheet" href="{{ .RelPermalink }}"> {{- else }} @@ -24,5 +16,6 @@ {{- end }} {{- end }} {{- end }} +{{ end }} <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> |