Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-01-10 22:36:21 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-01-10 22:36:21 +0300
commit1a3ed20f93392c95438566f1ef55115ffa3f3c5b (patch)
treeb9c7bbcebc89a521e0b0341e75f02a5c495e6eae /layouts
parent250f5e47e5c3d936705448c6904ebd0d71ef66c1 (diff)
config option to show theme switcher
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 492ba39..faec94f 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,7 @@
<footer role="contentinfo">
- <div>
+ <div
+ {{ if eq .Site.Params.showThemeSwitcher false }}style="display: none;"{{ end }}
+ >
<label for="themer">
{{ T "dark_theme" }} <input type="checkbox" id="themer" class="vh">
<!-- Shows "on" or "off" -->