From c51dfa9d0e88863097376f3d686ebfd3892c2393 Mon Sep 17 00:00:00 2001 From: JY Hsu Date: Fri, 6 Sep 2024 19:00:45 +0800 Subject: [PATCH] Added default theme (#325) * feat: Added default theme * Revert "feat: Added default theme" This reverts commit 87bf9967f84e94933bd96137e8d510b8cf01a8bd. * feat: Add theme settings * Comment out `darkMode` section --------- Co-authored-by: Emruz Hossain --- hugo.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index a5524b44b6d..f621cb6a034 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -79,9 +79,19 @@ params: # Configure various features of this theme features: - # Enable dark theme - darkMode: + # [Deprecated] Enable dark theme + # This is a deprecated setting, but has not been removed to maintain backward compatibility + # If `theme` is set, the `darkMode` setting will be discarded. + # darkMode: + # enable: true + + # Configure theme color settings + theme: enable: true + services: + light: true # enable light theme. default "true" + dark: true # enable dark theme. default "true" + default: system # can be either light, dark or system. default "system" # Enable and configure portfolio portfolio: