Skip to content

Commit

Permalink
Added default theme (hugo-toha#325)
Browse files Browse the repository at this point in the history
* feat: Added default theme

* Revert "feat: Added default theme"

This reverts commit 87bf996.

* feat: Add theme settings

* Comment out `darkMode` section

---------

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
  • Loading branch information
joyao and hossainemruz authored Sep 6, 2024
1 parent 83b19f7 commit c51dfa9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c51dfa9

Please sign in to comment.