hexo-theme-solitude 2.1.7 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.github/screenshot.avif +0 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/LICENSE +1 -1
  4. package/README.md +19 -30
  5. package/README_en-US.md +26 -37
  6. package/README_zh-Hant.md +27 -36
  7. package/SECURITY.md +1 -1
  8. package/_config.yml +2 -2
  9. package/layout/includes/inject/body.pug +1 -1
  10. package/layout/includes/page/default.pug +1 -1
  11. package/layout/includes/page/links.pug +1 -1
  12. package/layout/includes/page/tlink.pug +1 -1
  13. package/layout/includes/widgets/page/about/hobbies.pug +18 -17
  14. package/layout/includes/widgets/page/about/tenyear.pug +24 -25
  15. package/layout/includes/widgets/page/links/linksCard.pug +5 -2
  16. package/layout/includes/widgets/page/message/content.pug +1 -1
  17. package/layout/post.pug +1 -1
  18. package/package.json +1 -1
  19. package/plugins.yml +10 -10
  20. package/scripts/event/welcome.js +11 -7
  21. package/scripts/filter/randomPosts.js +14 -3
  22. package/scripts/tags/article.js +53 -15
  23. package/scripts/tags/tabs.js +26 -17
  24. package/source/css/_comments/comment.styl +4 -3
  25. package/source/css/_comments/twikoo.styl +4 -5
  26. package/source/css/_global/animation.styl +0 -15
  27. package/source/css/_global/index.styl +19 -19
  28. package/source/css/_highlight/prismjs/index.styl +1 -1
  29. package/source/css/_highlight/prismjs/line-number.styl +1 -1
  30. package/source/css/_layout/article-container.styl +3 -3
  31. package/source/css/_layout/console.styl +1 -0
  32. package/source/css/_page/_about/about.styl +1 -1
  33. package/source/css/_page/_about/game.styl +2 -17
  34. package/source/css/_page/error.styl +2 -3
  35. package/source/css/_page/links.styl +2 -2
  36. package/source/css/_page/music.styl +1 -0
  37. package/source/css/_page/other.styl +1 -0
  38. package/source/css/_page/says.styl +4 -3
  39. package/source/css/_tags/gallery.styl +1 -1
  40. package/source/css/_tags/tabs.styl +2 -2
  41. package/source/js/covercolor/local.js +9 -1
  42. package/source/js/main.js +30 -17
  43. package/source/js/music.js +8 -3
  44. package/source/js/right_menu.js +11 -7
  45. package/source/js/third_party/post_ai.min.js +1 -1
  46. package/source/js/tw_cn.js +2 -2
Binary file
package/CONTRIBUTING.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  ### PR方式贡献代码步骤
14
14
 
15
- * 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/Hexo-Theme-Solitude`,然后 `clone` 到本地Hexo主题目录,并设置用户信息。
15
+ * 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/hexo-theme-solitude`,然后 `clone` 到本地Hexo主题目录,并设置用户信息。
16
16
 
17
17
  ```bash
18
18
  $ git clone git@github.com:{your-github-username}/hexo-theme-solitude.git themes/solitude
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- MIT License
1
+ # MIT License
2
2
 
3
3
  Copyright (c) 2024 everfu
4
4
 
package/README.md CHANGED
@@ -2,31 +2,22 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
5
+ <img width="70%" src=".github/screenshot.avif" />
6
6
 
7
- 一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
7
+ 一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
8
8
 
9
- 主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
9
+ 主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
10
10
 
11
- ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
12
- ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531&style=for-the-badge)
13
- [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude?style=for-the-badge)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-solitude)
11
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
+ ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
+ [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
+ [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
15
15
 
16
- ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
- ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
16
+ ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
+ ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
- [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
-
23
- [文档](https://solitude.js.org/)丨[预览](https://blog.everfu.cn/)
24
-
25
- </div>
26
-
27
- <div style="width: 80%; margin: 0 auto">
28
-
29
- ![Screenshot](.github/screenshot.avif)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
30
21
 
31
22
  </div>
32
23
 
@@ -40,33 +31,31 @@
40
31
  - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页、弹幕留言页
41
32
  - 文章功能:AI 摘要、代码高亮
42
33
 
43
- ## Todo
44
-
45
- - [x] 移动端目录支持
46
- - [x] 增加右下角侧边栏
47
-
48
34
  > 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
49
35
 
50
36
  ## 应用
51
37
 
52
38
  1. 使用 NPM 包进行安装
39
+
53
40
  ```bash
54
41
  npm i hexo-theme-solitude
55
42
  ```
43
+
56
44
  2. 应用主题
45
+
57
46
  ```yaml
58
47
  theme: solitude
59
48
  ```
60
49
 
61
- 前往 [文档](https://solitude.js.org/) 获取更多信息。
50
+ 前往 [文档](https://solitude.js.org/zh/) 获取更多信息。
62
51
 
63
52
  ## 社区
64
53
 
65
- [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
66
- [![QQ 群](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
54
+ [![Discord](https://img.shields.io/discord/1266610921942548553?logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
55
+ [![QQ 群](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white)](https://qm.qq.com/q/mxfomMvJPG)
67
56
 
68
57
  ## 版权
69
58
 
70
- [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
59
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
71
60
 
72
- [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
61
+ [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
package/README_en-US.md CHANGED
@@ -2,71 +2,60 @@ English丨[简体中文](README.md)丨[繁体中文](README_zh-Hant.md)
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
5
+ <img width="70%" src=".github/screenshot.avif" />
6
6
 
7
- An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple commenting systems.
7
+ An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.
8
8
 
9
- Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
9
+ Theme design fully authorized by [@Zhang Hong Heo](https://github.com/zhheo)
10
10
 
11
- ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
12
- ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531&style=for-the-badge)
13
- [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude?style=for-the-badge)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-solitude)
11
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
+ ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
+ [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
+ [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
15
15
 
16
- ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
- ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
16
+ ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
+ ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
- [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
-
23
- [Docs](https://solitude.js.org/)丨[Preview](https://blog.everfu.cn/)
24
-
25
- </div>
26
-
27
- <div style="width: 80%; margin: 0 auto">
28
-
29
- ![Screenshot](.github/screenshot.avif)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
30
21
 
31
22
  </div>
32
23
 
33
24
  ## Features
34
25
 
35
26
  - Page lazy loading (Pjax), image lazy loading (LazyLoad), offline application (PWA)
36
- - Comments (Twikoo, Waline, Valine, Artalk, Giscus), supporting dual comments
37
- - Day and night mode switch (ColorMode)
27
+ - Comments (Twikoo, Waline, Valine, Artalk, Giscus), supports dual comments
28
+ - Day and night switch (ColorMode)
38
29
  - Lightbox (medium-zoom, fancybox)
39
30
  - Mathematical formulas (Latex)
40
- - Special pages: Moments, My Equipment, Online Tools, Music Library, Friends' Links, Photo Album, Douban Page, Danmaku Message Board
41
- - Article features: AI Summary, Code Highlighting
42
-
43
- ## Todo
31
+ - Featured pages: Instant articles, My gear, Online tools, Music hall, Friend links, Album page, Douban page, Bullet screen message page
32
+ - Article features: AI summary, code highlighting
44
33
 
45
- - [X] Mobile directory support.
46
- - [X] Add a bottom right sidebar.
34
+ > If you have any questions, please raise an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
47
35
 
48
- > If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
36
+ ## Application
49
37
 
50
- ## Setup
38
+ 1. Install using the NPM package
51
39
 
52
- 1. Use the NPM package
53
40
  ```bash
54
41
  npm i hexo-theme-solitude
55
42
  ```
56
- 2. Apply
43
+
44
+ 2. Apply the theme
45
+
57
46
  ```yaml
58
47
  theme: solitude
59
48
  ```
60
49
 
61
- Check out the [Documentation](https://solitude.js.org/) for more information.
50
+ Visit [Documentation](https://solitude.js.org/zh/) for more information.
62
51
 
63
52
  ## Community
64
53
 
65
- [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
66
- [![QQ Group](https://img.shields.io/badge/QQ%20Group-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
54
+ [![Discord](https://img.shields.io/discord/1266610921942548553?logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
55
+ [![QQ Group](https://img.shields.io/badge/QQ%20Group-948375336-FFD700?logo=Tencent-QQ&logoColor=white)](https://qm.qq.com/q/mxfomMvJPG)
67
56
 
68
57
  ## License
69
58
 
70
- [MIT](./LICENSE) License &copy; 2023-PRESENT [伍十七](https://github.com/everfu)
59
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
71
60
 
72
- [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
61
+ [MIT](./LICENSE) License &copy; 2023-present [everfu](https://github.com/everfu)
package/README_zh-Hant.md CHANGED
@@ -2,69 +2,60 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
5
+ <img width="70%" src=".github/screenshot.avif" />
6
6
 
7
- 一款優雅的 Hexo 主題,支援懶載入、PWA、Latex 以及多種評論系統。
7
+ 一款優雅的 Hexo 主題,支持懶加載、PWA、Latex 以及多種評論系統。
8
8
 
9
- 主題設計由 [@张洪Heo](https://github.com/zhheo) 全權授權
9
+ 主題設計由 [@張洪Heo](https://github.com/zhheo) 全權授權
10
10
 
11
- ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
12
- ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531&style=for-the-badge)
13
- [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude?style=for-the-badge)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white&style=for-the-badge)](https://www.npmjs.com/package/hexo-theme-solitude)
11
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
+ ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
+ [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
+ [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
15
15
 
16
- ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
- ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
16
+ ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
+ ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
- [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
-
23
- [文档](https://solitude.js.org/)丨[預覽](https://blog.everfu.cn/)
24
-
25
- </div>
26
-
27
- <div style="width: 80%; margin: 0 auto">
28
-
29
- ![Screenshot](.github/screenshot.avif)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
30
21
 
31
22
  </div>
32
23
 
33
24
  ## 特性
34
25
 
35
- - 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
36
- - 評論(Twikoo、Waline、Valine、Artalk、Giscus),支援雙評論
37
- - 晝夜切換(ColorMode
38
- - 燈箱(medium-zoom、fancybox
39
- - 數學公式(Latex
40
- - 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、留言彈幕頁。
41
- - 文章功能:AI 摘要、代碼高亮。
42
-
43
- ## Todo
26
+ - 頁面懶加載(Pjax)、圖片懶加載(LazyLoad)、離線應用(PWA)
27
+ - 評論(Twikoo、Waline、Valine、Artalk、Giscus),支持雙評論
28
+ - 晝夜切換(ColorMode)
29
+ - 燈箱(medium-zoom、fancybox)
30
+ - 數學公式(Latex)
31
+ - 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、彈幕留言頁
32
+ - 文章功能:AI 摘要、代碼高亮
44
33
 
45
- - [x] 移動端目錄支援
46
- - [x] 增加右下角側邊欄
34
+ > 如有問題請提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
47
35
 
48
36
  ## 應用
49
37
 
50
38
  1. 使用 NPM 包進行安裝
39
+
51
40
  ```bash
52
41
  npm i hexo-theme-solitude
53
42
  ```
43
+
54
44
  2. 應用主題
45
+
55
46
  ```yaml
56
47
  theme: solitude
57
48
  ```
58
49
 
59
- 前往 [文檔](https://solitude.js.org/) 獲取更多資訊。
50
+ 前往 [文檔](https://solitude.js.org/zh/) 獲取更多信息。
60
51
 
61
52
  ## 社區
62
53
 
63
- [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
64
- [![QQ 群](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
54
+ [![Discord](https://img.shields.io/discord/1266610921942548553?logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
55
+ [![QQ 群](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white)](https://qm.qq.com/q/mxfomMvJPG)
65
56
 
66
57
  ## 版權
67
58
 
68
- [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
59
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
69
60
 
70
- [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
61
+ [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
package/SECURITY.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Reporting a Vulnerability
4
4
 
5
- If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability). If you're unable to report via GitHub, you can email us at o@everfu.org.
5
+ If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability). If you're unable to report via GitHub, you can email us at [o@everfu.cn](mailto:o@everfu.cn).
6
6
 
7
7
  We take security seriously and will verify and resolve any reported vulnerabilities promptly.
8
8
 
package/_config.yml CHANGED
@@ -702,7 +702,7 @@ memorial:
702
702
  date:
703
703
  # - 7-7
704
704
  # - 9-18
705
- # - 12-13 # 国家公祭日
705
+ # - 12-13
706
706
  # --------------------------- end ---------------------------
707
707
 
708
708
  # --------------------------- start ---------------------------
@@ -936,7 +936,7 @@ busuanzi_use: 0
936
936
 
937
937
  # --------------------------- start ---------------------------
938
938
  # This part is only supported in mainland China, and we will consider supporting ChatGPT Key in the future.
939
- # 该部分仅支持中国大陆,后续会考虑支持 ChatGPT Key。
939
+ # 该部分仅支持中国大陆
940
940
  tianli_talk:
941
941
  enable: false
942
942
  title: 智能客服与搜索 # title
@@ -5,7 +5,7 @@ mixin katex
5
5
  script(src=url_for(theme.cdn.katex_copytex))
6
6
  script.
7
7
  (() => {
8
- document.querySelectorAll('#article-container span.katex-display').forEach(item => {
8
+ document.querySelectorAll('.article-container span.katex-display').forEach(item => {
9
9
  utils.wrap(item, 'div', {class: 'katex-wrap'})
10
10
  })
11
11
  })();
@@ -1,2 +1,2 @@
1
- #article-container
1
+ .article-container
2
2
  != page.content
@@ -1,6 +1,6 @@
1
1
  .flink#banners
2
2
  include ../widgets/page/links/banner
3
- .flink#article-container
3
+ .flink.article-container
4
4
  each data in site.data.links.links
5
5
  h2= data.class_name + " (" + data.link_list.length + ")"
6
6
  .flink-desc= data.descr
@@ -1,5 +1,5 @@
1
1
  include ../widgets/page/banner
2
- .flink#article-container
2
+ .flink.article-container
3
3
  each data in site.data.tlink.links
4
4
  h2= data.class_name + " (" + data.link_list.length + ")"
5
5
  .flink-desc= data.descr
@@ -1,24 +1,25 @@
1
- - var game1 = site.data.about.game1
2
- - var game2 = site.data.about.game2
1
+ - var games = site.data.about.game
3
2
 
4
- if game1 || game2
3
+ if games
5
4
  .author-content
6
- if game1
7
- .author-content-item.game-apex(style=`background: url(${game1.img}) no-repeat top; background-size: cover;`)
5
+ each game, index in games
6
+ style.
7
+ .game-#{index}::after {
8
+ box-shadow: #{game.box_shadow} !important;
9
+ }
10
+ .author-content-item.game(class=`game-${index}`, style=`background: url(${game.img}) no-repeat top; background-size: cover;`)
8
11
  .card-content
9
- .author-content-item-tips= game1.title
10
- span.author-content-item-title= game1.subtitle
12
+ .author-content-item-tips= game.title
13
+ span.author-content-item-title= game.subtitle
11
14
  .content-bottom
12
- .tips= game1.tips_left
13
- .tips= game1.tips_right
14
- if game2
15
- .author-content-item.game-jl(style=`background: url(${game2.img}) no-repeat top; background-size: cover;`)
16
- .card-content
17
- .author-content-item-tips= game2.title
18
- span.author-content-item-title= game2.subtitle
19
- .content-bottom
20
- .tips= game2.tips_left
21
- .tips= game2.tips_right
15
+ if game.icon_group
16
+ .icon-group
17
+ each icon in game.icon_group
18
+ i(style=`background-image: url(${icon})`)
19
+ else if game.tips_left
20
+ .tips= game.tips_left
21
+ if game.tips_right
22
+ .tips= game.tips_right
22
23
 
23
24
  if site.data.about.likes
24
25
  - const likes = site.data.about.likes
@@ -2,47 +2,46 @@
2
2
  if tenyear
3
3
  .author-content#tenyear
4
4
  .create-site-post.author-content-item.single
5
- .author-content-item-tips=tenyear.tips
6
- .author-content-item-title=tenyear.title
7
- p=tenyear.text
5
+ .author-content-item-tips= tenyear.tips
6
+ .author-content-item-title= tenyear.title
7
+ p= tenyear.text
8
8
  .tenyear-timeline
9
9
  .progress
10
10
  .past-time
11
11
  .percentage-label
12
12
  .time-labels
13
- .start-time#tenyear-start-time= tenyear.start
14
- .end-time#tenyear-end-time= tenyear.end
13
+ .start-time#tenyear-start-time= new Date(tenyear.start).toLocaleDateString()
14
+ .end-time#tenyear-end-time= new Date(tenyear.end).toLocaleDateString()
15
15
 
16
16
  script.
17
- function parseDateString(e) {
18
- return e.replace(/年|月/g, '-').replace(/日/g, '');
19
- }
17
+ const tenYear = () => {
18
+ const progressElement = document.querySelector(".progress");
19
+ const pastTimeElement = document.querySelector(".past-time");
20
+ const percentageLabelElement = document.querySelector(".percentage-label");
21
+ const startTimeElement = document.getElementById("tenyear-start-time");
22
+ const endTimeElement = document.getElementById("tenyear-end-time");
20
23
 
21
- function tenYear() {
22
- let progressElement = document.querySelector(".progress");
23
- let pastTimeElement = document.querySelector(".past-time");
24
- let percentageLabelElement = document.querySelector(".percentage-label");
25
- let startTimeElement = document.getElementById("tenyear-start-time");
26
- let endTimeElement = document.getElementById("tenyear-end-time");
24
+ const startTime = new Date(startTimeElement.textContent).getTime();
25
+ const endTime = new Date(endTimeElement.textContent).getTime();
27
26
 
28
- let startTime = new Date(parseDateString(startTimeElement.textContent)).getTime();
29
- let endTime = new Date(parseDateString(endTimeElement.textContent)).getTime();
30
-
31
- function updateProgress() {
32
- let currentTime = new Date().getTime();
33
- let progress = ((currentTime - startTime) / (endTime - startTime) * 100);
34
- let progressPercentage = progress <= 100 ? progress + "%" : "100%";
27
+ const updateProgress = () => {
28
+ const currentTime = new Date().getTime();
29
+ const progress = ((currentTime - startTime) / (endTime - startTime) * 100);
30
+ const progressPercentage = Math.min(progress, 100) + "%";
35
31
 
36
32
  pastTimeElement.style.setProperty("--past-time-percentage", progress + "%");
37
33
  progressElement.style.setProperty("--progress-percentage", progressPercentage);
38
- if(progress > 5){
34
+ if (progress > 5) {
39
35
  percentageLabelElement.textContent = `${progress.toFixed(0)}%`;
40
36
  percentageLabelElement.style.left = `calc(${progress}% - 35px)`;
41
37
  }
42
- }
38
+ };
43
39
 
44
40
  percentageLabelElement.style.visibility = "visible";
45
41
  updateProgress();
46
- }
42
+ };
47
43
 
48
- document.getElementById("tenyear") && tenYear() && window.Pjax.on('complete', tenYear)
44
+ if (document.getElementById("tenyear")) {
45
+ tenYear();
46
+ window.Pjax.on('complete', tenYear);
47
+ }
@@ -2,8 +2,11 @@
2
2
  each item in data.link_list
3
3
  .site-card
4
4
  if item.tag
5
- span.site-card-tag(class=item.color)= item.tag
6
- i.light
5
+ if item.color == 'vip' || item.color == 'speed'
6
+ span.site-card-tag(class=item.color)= item.tag
7
+ i.light
8
+ else
9
+ span.site-card-tag(style=`background-color: ${item.color};`)= item.tag
7
10
  a.img(title=item.name, href=url_for(item.link))
8
11
  img.flink-avatar(src=item.topimg + (data.topimg_suffix || ''), alt=item.name)
9
12
  a.info.cf-friends-link(title=item.name, href=url_for(item.link))
@@ -1,4 +1,4 @@
1
- #article-container
1
+ .article-container
2
2
  != page.content
3
3
  if theme.envelope.enable
4
4
  .switch_message
package/layout/post.pug CHANGED
@@ -5,7 +5,7 @@ block content
5
5
  #post
6
6
  if page.not_cover
7
7
  include includes/widgets/post/postInfo
8
- article.post-content#article-container
8
+ article.post-content.article-container
9
9
  if theme.post_ai.enable && page.ai
10
10
  include includes/widgets/post/post-ai
11
11
  != page.content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  algolia_search:
2
2
  name: algoliasearch
3
3
  file: dist/algoliasearch.umd.js
4
- version: 5.9.1
4
+ version: 5.14.2
5
5
  instantsearch:
6
6
  name: instantsearch.js
7
7
  file: dist/instantsearch.production.min.js
8
- version: 4.74.1
8
+ version: 4.75.5
9
9
  pjax:
10
10
  name: pjax
11
11
  file: pjax.min.js
@@ -13,16 +13,16 @@ pjax:
13
13
  twikoo:
14
14
  name: twikoo
15
15
  file: dist/twikoo.all.min.js
16
- version: 1.6.39
16
+ version: 1.6.40
17
17
  waline_js:
18
18
  name: '@waline/client'
19
19
  file: dist/waline.js
20
20
  other_name: waline
21
- version: 3.3.1
21
+ version: 3.3.2
22
22
  waline_css:
23
23
  name: '@waline/client'
24
24
  file: dist/waline.css
25
- version: 3.3.1
25
+ version: 3.3.2
26
26
  other_name: waline
27
27
  valine:
28
28
  name: valine
@@ -31,11 +31,11 @@ valine:
31
31
  artalk_css:
32
32
  name: artalk
33
33
  file: dist/Artalk.css
34
- version: 2.9.0
34
+ version: 2.9.1
35
35
  artalk_js:
36
36
  name: artalk
37
37
  file: dist/Artalk.js
38
- version: 2.9.0
38
+ version: 2.9.1
39
39
  katex:
40
40
  name: katex
41
41
  file: dist/katex.min.css
@@ -106,7 +106,7 @@ fancyapps_css:
106
106
  mermaid_js:
107
107
  name: mermaid
108
108
  file: dist/mermaid.js
109
- version: 10.9.1
109
+ version: 11.4.0
110
110
  chart_js:
111
111
  name: chart.js
112
112
  file: dist/chart.umd.js
@@ -115,7 +115,7 @@ chart_js:
115
115
  typeit_js:
116
116
  name: typeit
117
117
  file: index.umd.min.js
118
- version: 8.8.4
118
+ version: 8.8.7
119
119
  other_name: typeit
120
120
  blueimp_md5:
121
121
  name: blueimp-md5
@@ -129,5 +129,5 @@ qrcode:
129
129
  color_thief:
130
130
  name: colorthief
131
131
  file: color-thief.min.js
132
- version: 2.4.0
132
+ version: 2.6.0
133
133
  other_name: color-thief
@@ -1,14 +1,18 @@
1
1
  hexo.on('ready', () => {
2
- const {version} = require('../../package.json')
3
- hexo.log.info(`
4
- =====================[ Hexo Theme - Solitude ]=====================
2
+ const { version } = require('../../package.json')
3
+ const logo = `
5
4
  ##### #### # ##### ###### # # ###### ######
6
5
  # # # # # # # # # # #
7
6
  ##### # # # # # # # # # ######
8
7
  # # # # # # # # # # #
9
8
  ###### #### ##### ##### # ### ###### ######
10
- ${version}
11
- ===================================================================
12
- GitHub: https://github.com/everfu/hexo-theme-solitude
13
- `)
9
+ `.replace(/#/g, '●')
10
+ const message = `
11
+ \x1b[38;5;45m=====================[ Hexo Theme - Solitude ]=====================\x1b[0m
12
+ \x1b[38;5;45m${logo}\x1b[0m
13
+ \x1b[38;5;45m version: ${version}\x1b[0m
14
+ \x1b[38;5;45m===================================================================\x1b[0m
15
+ \x1b[38;5;45mGitHub: https://github.com/everfu/hexo-theme-solitude\x1b[0m
16
+ `
17
+ hexo.log.info(message)
14
18
  })