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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-12-23 21:03:40 +0300
committerGitHub <noreply@github.com>2020-12-23 21:03:40 +0300
commit358e63e799d35e4338d6f1461ec61127f24675b2 (patch)
tree479e85324105979b979fb773670473bc5ebc64f7 /exampleSite
parentdf74fe5f19ff0e59a4ca24bb7b33a78b15eff5f1 (diff)
feat(darkmode): dark mode toggle (#82)
* feat(darkmode): initial support for dark mode toggle * fix(darkmode): add svg icons * feat(darkmode): dispatch onColorSchemeChange event * add head/darkmode * feat(darkmode); add colorScheme config * style: remove empty line * refactor(darkmode): simplify code * style: add comment for darkmode config * i18n support for dark mode toggle * Some renaming
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 20dcda6..f06128d 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -79,6 +79,13 @@ params:
local: false
src:
+ colorScheme:
+ # Display toggle
+ toggle: true
+
+ # Available values: auto, light, dark
+ default: auto
+
menu:
main:
- identifier: home