Skip to content

Commit ed712a2

Browse files
committed
fix: no css for default theme
1 parent 1d83cd5 commit ed712a2

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
[博客样例(作者博客)](https://lhcfl.github.io)
66

7-
[国内镜像](https://gitee.com/Lhcfl/hexo-theme-anatolo)
8-
9-
- [主题文档 Theme document](https://lhcfl.github.io/Anatolodemo/tags/Anatolo-Tutorial/)
7+
[主题文档 Theme document](https://lhcfl.github.io/Anatolodemo/tags/Anatolo-Tutorial/)
108

119
## 关于主题
1210

_config.example.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
keywords: Blog,博客,Hexo
44
author: Yourname
55
description: A simple and beautiful blog
6-
defaultTheme: light-mode # light-mode or dark-mode or default
6+
defaultTheme: default # light or dark or default
77

88
# icon
99
# If the is size is incorrect, please edit /source/css/style.styl

layout/partial/layout.pug

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
doctype
2-
html(lang="zh-CN", theme=theme.defaultTheme)
2+
html(lang="zh-CN", theme=theme.defaultTheme.replaceAll("-mode", ""))
33
head
44
include head
55

src/scss/color-defination.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@
3030
@include genColor('secondary', $secondary, $primary);
3131
}
3232

33-
html[theme='dark'] {
34-
@include darkTheme();
35-
}
36-
37-
html[theme='light'] {
38-
@include lightTheme();
39-
}
40-
4133
html[theme='default'] {
4234
@include lightTheme();
4335
}
@@ -46,3 +38,11 @@ html[theme='default'] {
4638
@include darkTheme();
4739
}
4840
}
41+
42+
html[theme='dark'] {
43+
@include darkTheme();
44+
}
45+
46+
html[theme='light'] {
47+
@include lightTheme();
48+
}

0 commit comments

Comments
 (0)