config option to show theme switcher

This commit is contained in:
zwbetz-gh 2021-01-10 13:36:21 -06:00
parent 250f5e47e5
commit 1a3ed20f93
3 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,7 @@ params:
katex: true
hideHeaderLinks: false
search: true
showThemeSwitcher: true
customCss:
- css/custom_01.css
- css/custom_02.css

View File

@ -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" -->

5
task_serve.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
cd exampleSite
hugo serve --themesDir ../..
cd ..