From 7878ec762b8442ad0dc496820692db749f67134f Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sun, 3 May 2026 19:17:07 -0400 Subject: [PATCH] Set up automatic light / dark mode & drop footer --- LICENSE | 12 ++++++++++++ zensical.toml | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a98c8e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright (C) 2026 by Kris Lamoureux + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/zensical.toml b/zensical.toml index 1c51255..4b38e40 100644 --- a/zensical.toml +++ b/zensical.toml @@ -287,19 +287,35 @@ features = [ # Read more: # - https://zensical.org/docs/setup/colors/ # ---------------------------------------------------------------------------- + +# Palette toggle for automatic mode [[project.theme.palette]] +media = "(prefers-color-scheme)" +toggle.icon = "lucide/sun-moon" +toggle.name = "Switch to light mode" + +# Palette toggle for light mode +[[project.theme.palette]] +media = "(prefers-color-scheme: light)" scheme = "default" toggle.icon = "lucide/sun" toggle.name = "Switch to dark mode" +# Palette toggle for dark mode [[project.theme.palette]] +media = "(prefers-color-scheme: dark)" scheme = "slate" toggle.icon = "lucide/moon" -toggle.name = "Switch to light mode" +toggle.name = "Switch to system preference" # ---------------------------------------------------------------------------- # The "extra" section contains miscellaneous settings. # ---------------------------------------------------------------------------- + +# Disable "Made with Zensical" notice at the bottom +[project.extra] +generator = false + #[[project.extra.social]] #icon = "fontawesome/brands/github" #link = "https://github.com/user/repo"