feat: follow user OS theme with JS disabled (#357)

This commit is contained in:
Óscar
2024-07-24 19:14:57 +02:00
committed by GitHub
parent 5db006ac47
commit c7b79552c4
8 changed files with 70 additions and 38 deletions

View File

@@ -34,11 +34,11 @@ homepage = "https://osc.garden"
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".