From 007bc10c07d6a6b7cb6c03a138cc90f6f74a3058 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 8 Oct 2019 17:03:40 +0200 Subject: Introduce SCSS plugins: dark mode and numbered headings --- layouts/partials/docs/html-head.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'layouts/partials/docs/html-head.html') 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" . -}} {{ partial "docs/title" . }} | {{ .Site.Title -}} + -{{- $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 }} {{ if default true .Site.Params.BookSearch }} @@ -13,8 +14,7 @@ {{ end }} - - +{{- template "_internal/google_analytics_async.html" . -}} {{ 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" . }} -- cgit v1.2.3