diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-20 20:41:19 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-07-20 20:43:23 +0530 |
| commit | 338027b046f7f72a8fe9c52e8ca7adeddf261868 (patch) | |
| tree | e95e44c28dafbeeecc760d00783f03fc4e9c9f9b /layouts/partials/head.html | |
| parent | 8a0783adfb8399cbde4b42782dfc182d9bf54aed (diff) | |
SetThemeAuto: disable auto theme set by default
- user needs to add
+ params:
SetThemeAuto: true
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 91687be..4b03bd0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,5 +32,7 @@ {{- template "_internal/opengraph.html" . }} {{- end }} <!-- Script --> +{{- if $.Site.Params.SetThemeAuto -}} {{ $settheme := resources.Get "set-theme.js" | minify }} -<script src="{{ $settheme.Permalink }}"></script>
\ No newline at end of file +<script src="{{ $settheme.Permalink }}"></script> +{{- end -}}
\ No newline at end of file |
