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 +++----- layouts/partials/docs/menu-bundle.html | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'layouts/partials/docs') 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" . }} diff --git a/layouts/partials/docs/menu-bundle.html b/layouts/partials/docs/menu-bundle.html index 2aedb54..eced12e 100644 --- a/layouts/partials/docs/menu-bundle.html +++ b/layouts/partials/docs/menu-bundle.html @@ -13,7 +13,7 @@ {{ end }} -- cgit v1.2.3