diff --git a/README.md b/README.md index 411dcb9..98845ca 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ [博客样例(作者博客)](https://lhcfl.github.io) -[国内镜像](https://gitee.com/Lhcfl/hexo-theme-anatolo) - -- [主题文档 Theme document](https://lhcfl.github.io/Anatolodemo/tags/Anatolo-Tutorial/) +[主题文档 Theme document](https://lhcfl.github.io/Anatolodemo/tags/Anatolo-Tutorial/) ## 关于主题 diff --git a/_config.example.yml b/_config.example.yml index 495d9dd..26cae9a 100644 --- a/_config.example.yml +++ b/_config.example.yml @@ -3,7 +3,7 @@ keywords: Blog,博客,Hexo author: Yourname description: A simple and beautiful blog -defaultTheme: light-mode # light-mode or dark-mode or default +defaultTheme: default # light or dark or default # icon # If the is size is incorrect, please edit /source/css/style.styl diff --git a/layout/partial/layout.pug b/layout/partial/layout.pug index c58c6fa..8667477 100644 --- a/layout/partial/layout.pug +++ b/layout/partial/layout.pug @@ -1,5 +1,5 @@ doctype -html(lang="zh-CN", theme=theme.defaultTheme) +html(lang="zh-CN", theme=theme.defaultTheme.replaceAll("-mode", "")) head include head diff --git a/src/scss/color-defination.scss b/src/scss/color-defination.scss index b3c2868..3baccbe 100644 --- a/src/scss/color-defination.scss +++ b/src/scss/color-defination.scss @@ -30,14 +30,6 @@ @include genColor('secondary', $secondary, $primary); } -html[theme='dark'] { - @include darkTheme(); -} - -html[theme='light'] { - @include lightTheme(); -} - html[theme='default'] { @include lightTheme(); } @@ -46,3 +38,11 @@ html[theme='default'] { @include darkTheme(); } } + +html[theme='dark'] { + @include darkTheme(); +} + +html[theme='light'] { + @include lightTheme(); +}