config option to show theme switcher
This commit is contained in:
parent
250f5e47e5
commit
1a3ed20f93
|
@ -26,6 +26,7 @@ params:
|
|||
katex: true
|
||||
hideHeaderLinks: false
|
||||
search: true
|
||||
showThemeSwitcher: true
|
||||
customCss:
|
||||
- css/custom_01.css
|
||||
- css/custom_02.css
|
||||
|
|
|
@ -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
5
task_serve.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd exampleSite
|
||||
hugo serve --themesDir ../..
|
||||
cd ..
|
Loading…
Reference in New Issue
Block a user