1
0
Fork 0

set theme switcher to auto

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-22 09:50:07 +01:00
parent 43838167bb
commit 2324dd26ea
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ js_bundle = true # multiple javascript files combined into a single file (settin
js_copycode = true # The copy button on code blocks that allows you to copy them to the clipboard. js_copycode = true # The copy button on code blocks that allows you to copy them to the clipboard.
js_email_encode = true # obfuscates email address in footer js_email_encode = true # obfuscates email address in footer
js_prestyle = true # used to preload: FontAwesome, Katex, external Google Fonts js_prestyle = true # used to preload: FontAwesome, Katex, external Google Fonts
js_switcher = true # The button that allows manually changing between light/dark mode. js_switcher = false # The button that allows manually changing between light/dark mode.
js_switcher_default = "dark" # default nojs switcher mode: dark, light (make sure to also set $switcherDefault in abridge.scss) js_switcher_default = "dark" # default nojs switcher mode: dark, light (make sure to also set $switcherDefault in abridge.scss)
search_library = 'elasticlunr' search_library = 'elasticlunr'

View file

@ -8,7 +8,7 @@
$mw: 80%,// max-width $mw: 80%,// max-width
//$mb: 1200px,// value at which to switch from fluid layout to max-width //$mb: 1200px,// value at which to switch from fluid layout to max-width
$abridgeMode: "switcher",//valid values: switcher, auto, dark, light $abridgeMode: "auto",//valid values: switcher, auto, dark, light
$syntax-mode: "auto",// Force syntax mode: auto, dark, light $syntax-mode: "auto",// Force syntax mode: auto, dark, light
$switcherDefault: "dark",// default nojs switcher mode: dark, light (make sure to also set js_switcher_default in config.toml) $switcherDefault: "dark",// default nojs switcher mode: dark, light (make sure to also set js_switcher_default in config.toml)