feat: follow user OS theme with JS disabled

Idea from #330.
This commit is contained in:
welpo 2024-07-24 01:11:09 +02:00
parent 5db006ac47
commit 1028d1a8d6
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
8 changed files with 70 additions and 38 deletions

View file

@ -77,11 +77,11 @@ taxonomies = [{name = "tags", feed = true}]
override_serif_with_sans = false
# Enable JavaScript theme toggler to allow users to switch between dark/light mode.
# If disabled, your site will only use the theme specified in the `default_theme` variable.
# If disabled, your site will use the theme specified in the `default_theme` variable.
theme_switcher = true
# This setting determines the default theme on load ("light" or "dark").
# To default to the user's OS-level theme, leave it empty or unset.
# To follow the user's OS theme, leave it empty or unset.
default_theme = ""
# Choose the colourscheme (skin) for the theme. Default is "teal".