Skip to content

Commit

Permalink
fix: no css for default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Lhcfl committed Sep 9, 2024
1 parent 1d83cd5 commit ed712a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

## 关于主题

Expand Down
2 changes: 1 addition & 1 deletion _config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layout/partial/layout.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
doctype
html(lang="zh-CN", theme=theme.defaultTheme)
html(lang="zh-CN", theme=theme.defaultTheme.replaceAll("-mode", ""))
head
include head

Expand Down
16 changes: 8 additions & 8 deletions src/scss/color-defination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@
@include genColor('secondary', $secondary, $primary);
}

html[theme='dark'] {
@include darkTheme();
}

html[theme='light'] {
@include lightTheme();
}

html[theme='default'] {
@include lightTheme();
}
Expand All @@ -46,3 +38,11 @@ html[theme='default'] {
@include darkTheme();
}
}

html[theme='dark'] {
@include darkTheme();
}

html[theme='light'] {
@include lightTheme();
}

0 comments on commit ed712a2

Please sign in to comment.