aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-08 17:03:40 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-08 17:03:49 +0200
commit007bc10c07d6a6b7cb6c03a138cc90f6f74a3058 (patch)
tree2e24514fcf5abf924d152bbac80c950db05be7d2 /layouts
parent1cd5040d84e852504598ebc58f6839ce4453ca68 (diff)
Introduce SCSS plugins: dark mode and numbered headings
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/html-head.html8
-rw-r--r--layouts/partials/docs/menu-bundle.html2
2 files changed, 4 insertions, 6 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" . }}
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 @@
<style>
nav ul a[href{{ $attrEq }}"{{ $attrVal }}"] {
- color: {{ default "#004ed0" .Site.Params.BookMenuBundleActiveLinkColor }};
+ color: {{ default "#004ed0" .Site.Params.BookMenuBundleActiveLinkColor }};
}
</style>
{{ end }}