From 338027b046f7f72a8fe9c52e8ca7adeddf261868 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 20 Jul 2020 20:41:19 +0530 Subject: [PATCH] SetThemeAuto: disable auto theme set by default - user needs to add + params: SetThemeAuto: true --- layouts/_default/baseof.html | 2 ++ layouts/partials/head.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4035dd6b..e243b575 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,9 +6,11 @@ + {{- if $.Site.Params.SetThemeAuto -}} + {{- end -}}
{{- partial "header.html" . }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 91687be5..4b03bd03 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,5 +32,7 @@ {{- template "_internal/opengraph.html" . }} {{- end }} +{{- if $.Site.Params.SetThemeAuto -}} {{ $settheme := resources.Get "set-theme.js" | minify }} - \ No newline at end of file + +{{- end -}} \ No newline at end of file