feat(theme): add detecting system dark mode to set site theme
add "auto" config in default theme, which detecting system dark mode to set site theme
This commit is contained in:
@@ -110,8 +110,8 @@ dateFormatToUse = "2006-01-02"
|
||||
description = "About LoveIt Theme"
|
||||
# site keywords
|
||||
keywords = ["Theme", "Hugo"]
|
||||
# site default theme ("light", "dark")
|
||||
defaultTheme = "light"
|
||||
# site default theme ("light", "dark", "auto")
|
||||
defaultTheme = "auto"
|
||||
|
||||
# Home Page Info
|
||||
##home mode ("post", "other")
|
||||
|
||||
@@ -110,8 +110,8 @@ dateFormatToUse = "2006-01-02"
|
||||
description = "关于 LoveIt 主题"
|
||||
# 网站关键词
|
||||
keywords = ["Theme", "Hugo"]
|
||||
# 网站默认主题 ("light", "dark")
|
||||
defaultTheme = "light"
|
||||
# 网站默认主题 ("light", "dark", "auto")
|
||||
defaultTheme = "auto"
|
||||
|
||||
# 主页信息设置
|
||||
## 主页模式 ("post", "other")
|
||||
|
||||
Reference in New Issue
Block a user