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:
Dillon
2020-02-11 21:40:58 +08:00
parent 2d350af854
commit 88273f439a
4 changed files with 25 additions and 20 deletions

View File

@@ -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")

View File

@@ -110,8 +110,8 @@ dateFormatToUse = "2006-01-02"
description = "关于 LoveIt 主题"
# 网站关键词
keywords = ["Theme", "Hugo"]
# 网站默认主题 ("light", "dark")
defaultTheme = "light"
# 网站默认主题 ("light", "dark", "auto")
defaultTheme = "auto"
# 主页信息设置
## 主页模式 ("post", "other")