aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/html-head.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/docs/html-head.html')
-rw-r--r--layouts/partials/docs/html-head.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index 599695b..28815a1 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -3,9 +3,10 @@
{{- template "_internal/opengraph.html" . -}}
<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title>
+<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->
-{{- $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
+{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
{{ if default true .Site.Params.BookSearch }}
@@ -13,8 +14,7 @@
<script defer src="{{ $searchJS.RelPermalink }}" integrity="{{ $searchJS.Data.Integrity }}"></script>
{{ end }}
-<!-- Favicon -->
-<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
+{{- template "_internal/google_analytics_async.html" . -}}
<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
@@ -25,5 +25,3 @@
Made with Book Theme
https://github.com/alex-shpak/hugo-book
{{ "-->" | safeHTML }}
-
-{{ template "_internal/google_analytics_async.html" . }}