From 2324dd26ea8488ee93662f0ff1c6c08d522dafb9 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 22 Mar 2024 09:50:07 +0100 Subject: [PATCH] set theme switcher to auto Signed-off-by: Harald Hoyer --- config.toml | 2 +- sass/abridge.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 77cc002..a40db30 100644 --- a/config.toml +++ b/config.toml @@ -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_email_encode = true # obfuscates email address in footer 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) search_library = 'elasticlunr' diff --git a/sass/abridge.scss b/sass/abridge.scss index 124acc7..9dbe665 100644 --- a/sass/abridge.scss +++ b/sass/abridge.scss @@ -8,7 +8,7 @@ $mw: 80%,// 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 $switcherDefault: "dark",// default nojs switcher mode: dark, light (make sure to also set js_switcher_default in config.toml)