hexo-theme-solitude 1.0.0 → 1.1.3

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 (125) hide show
  1. package/README.md +62 -20
  2. package/README_EN.md +98 -0
  3. package/_config.yml +162 -144
  4. package/layout/404.ejs +1 -1
  5. package/layout/layout.ejs +27 -32
  6. package/layout/page/about.ejs +3 -1
  7. package/layout/page/circle.ejs +1 -1
  8. package/layout/page/echarts.ejs +1 -14
  9. package/layout/page/links.ejs +2 -13
  10. package/layout/page/rss.ejs +10 -8
  11. package/layout/page/says.ejs +1 -0
  12. package/layout/partial/body.ejs +0 -1
  13. package/layout/partial/compoment/about/award.ejs +3 -1
  14. package/layout/partial/compoment/about/hobbies.ejs +44 -35
  15. package/layout/partial/compoment/about/other.ejs +68 -60
  16. package/layout/partial/compoment/aside/asideFlipCard.ejs +67 -3
  17. package/layout/partial/compoment/aside/asideHistory.ejs +49 -0
  18. package/layout/partial/compoment/aside/asideNewestPost.ejs +1 -1
  19. package/layout/partial/compoment/aside/asidePower.ejs +3 -3
  20. package/layout/partial/compoment/aside/asideSwitch.ejs +6 -0
  21. package/layout/partial/compoment/aside/asideToc.ejs +1 -1
  22. package/layout/partial/compoment/aside/asideWebInfo.ejs +8 -8
  23. package/layout/partial/compoment/aside/asideWelcome.ejs +33 -0
  24. package/layout/partial/compoment/circle/angle.ejs +2 -2
  25. package/layout/partial/compoment/circle/content.ejs +8 -11
  26. package/layout/partial/compoment/dorakika/rightmenu.ejs +90 -105
  27. package/layout/partial/compoment/hometop/bbTimeList.ejs +1 -1
  28. package/layout/partial/compoment/hometop/groupTag.ejs +1 -1
  29. package/layout/partial/compoment/hometop/topGroup.ejs +11 -18
  30. package/layout/partial/compoment/inject/body.ejs +20 -7
  31. package/layout/partial/compoment/inject/head.ejs +67 -3
  32. package/layout/partial/compoment/links/angle.ejs +26 -0
  33. package/layout/partial/compoment/links/banner.ejs +2 -2
  34. package/layout/partial/compoment/mixins/pagination.ejs +2 -2
  35. package/layout/partial/compoment/nav/right.ejs +6 -6
  36. package/layout/partial/compoment/post/award.ejs +30 -22
  37. package/layout/partial/compoment/post/copyright.ejs +10 -8
  38. package/layout/partial/compoment/post/postMeta.ejs +21 -19
  39. package/layout/partial/compoment/says/saysBottom.ejs +3 -3
  40. package/layout/partial/compoment/says/saysContent.ejs +0 -1
  41. package/layout/partial/compoment/says/saysFunction.ejs +15 -0
  42. package/layout/partial/compoment/third-party/comments/comment.ejs +1 -1
  43. package/layout/partial/compoment/third-party/comments/twikoo.ejs +2 -1
  44. package/layout/partial/compoment/third-party/search/algolia-search.ejs +2 -2
  45. package/layout/partial/compoment/third-party/search/local-search.ejs +2 -2
  46. package/layout/partial/console.ejs +10 -4
  47. package/layout/partial/footer.ejs +11 -9
  48. package/layout/partial/nav.ejs +2 -2
  49. package/layout/partial/sidebar.ejs +2 -2
  50. package/layout/post.ejs +19 -3
  51. package/package.json +4 -5
  52. package/scripts/event/welcome.js +6 -7
  53. package/scripts/helper/charts.js +45 -34
  54. package/scripts/helper/randomLinks.js +1 -1
  55. package/scripts/helper/related_post.js +11 -4
  56. package/scripts/helper/themeJsExport.js +12 -10
  57. package/scripts/tags/fold.js +2 -3
  58. package/scripts/tags/note.js +6 -2
  59. package/scripts/tags/tabs.js +2 -2
  60. package/source/css/main.css +79 -265
  61. package/source/css/search/algolia-search.css +1 -1
  62. package/source/css/search/local-search.css +1 -1
  63. package/source/css/var.css +3 -0
  64. package/source/img/default.png +0 -0
  65. package/source/img/error_load.png +0 -0
  66. package/source/img/logo-horizontal_version.png +0 -0
  67. package/source/img/pwa/16.png +0 -0
  68. package/source/img/pwa/180.png +0 -0
  69. package/source/img/pwa/192.png +0 -0
  70. package/source/img/pwa/32.png +0 -0
  71. package/source/img/pwa/512.png +0 -0
  72. package/source/img/pwa/logo.png +0 -0
  73. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  74. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  75. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  76. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  77. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  78. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  79. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  80. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  81. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  82. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  83. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  84. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  85. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  86. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  87. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  88. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  89. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  90. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  91. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  92. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  93. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  94. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  95. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  96. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  97. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  98. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  99. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  100. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  101. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  102. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  103. package/source/img/solitude-show.jpg +0 -0
  104. package/source/js/commentBarrage.js +145 -136
  105. package/source/js/extend/covercolor/local.js +104 -94
  106. package/source/js/extend/search/algolia-search.js +11 -0
  107. package/source/js/extend/search/local-search.js +12 -1
  108. package/source/js/main.js +212 -27
  109. package/source/js/rightmenu.js +402 -0
  110. package/source/js/txmap.js +236 -0
  111. package/source/lib/chuckle-post-ai.js +1 -0
  112. package/source/lib/circle.min.js +1 -0
  113. package/source/lib/friends_post.js +4 -98
  114. package/source/lib/snackbar.min.js +9 -0
  115. package/source/lib/view-image.min.js +6 -0
  116. package/scripts/filter/katex.js +0 -25
  117. package/scripts/tags/expand.js +0 -4
  118. package/source/img/power.png +0 -0
  119. package/source/js/circle.js +0 -1828
  120. package/source/js/extend/covercolor/web.js +0 -137
  121. package/source/js/post_ai.js +0 -517
  122. package/source/lib/snackbar.js +0 -16
  123. package/source/lib/view-image.js +0 -13
  124. /package/source/lib/{bundle.js → bundle.min.js} +0 -0
  125. /package/source/lib/{lazyload.js → lazyload.min.js} +0 -0
package/README.md CHANGED
@@ -1,12 +1,30 @@
1
- ![](https://github.com/DuoSco/Hexo-theme-solitude/assets/74389842/78b527e5-7d8e-456d-b190-859acd9ffdec)
1
+ <div align="right">
2
+ 语言:
3
+ 中文 /
4
+ <a title="English" href="/README_EN.md">English</a>
5
+ </div>
2
6
 
3
- 原项目地址:[Acrylic-Next](https://github.com/hexo-theme-Acrylic/Hexo-Theme-Acrylic-Next)
7
+ <p align="center"><img width="400" src="/source/img/logo-horizontal_version.png"></p>
4
8
 
5
- 主题预览: 👋[王卓Sco](https://solitude.wzsco.top/)
9
+ <p align="center">一款优雅的 Hexo 主题</p>
10
+ <p align="center">"在宁静的孤独中心探索内心,我们以简约之美引领优雅生活"</p>
6
11
 
7
- 文档: [📖文档](https://docs.wzsco.top/)
12
+ <p align="center">
13
+ <a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.3.0-orange?style=flat"></a>
14
+ <a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
15
+ <a title="npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-solitude"><img alt="GitHub Forks" src="https://img.shields.io/npm/dt/hexo-theme-solitude?color=red&label=npm"></a>
16
+ <a title="License" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/DuoSco/Hexo-Theme-solitude.svg?style=flat"></a>
17
+ <a title="GitHub Release" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/DuoSco/Hexo-theme-solitude?style=flat"></a>
18
+ <a title="GitHub Commits" target="_blank" href="https://github.com/DuoSco/Hexo-Theme-solitude/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/DuoSco/Hexo-Theme-solitude.svg?style=flat&color=brightgreen&label=commits"></a>
19
+ </p>
8
20
 
9
- 主题交流群:![](https://bu.dusays.com/2023/10/31/6540af9083739.jpg)
21
+ ![](/source/img/solitude-show.jpg)
22
+
23
+ 主题预览: 👋[Demo](https://solitude.wzsco.top/) | [王卓Sco](https://blog.wzsco.top/)
24
+
25
+ 主题文档: 📖[Solidude 文档](https://docs.wzsco.top/)
26
+
27
+ 主题交流群:`文档内有群二维码和链接`
10
28
 
11
29
  ## 💻 安裝
12
30
 
@@ -18,6 +36,22 @@
18
36
  git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
19
37
  ```
20
38
 
39
+ 如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版
40
+
41
+ ```powershell
42
+ git clone -b dev https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
43
+ ```
44
+
45
+ ### npm 安装
46
+
47
+ > 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
48
+
49
+ 在博客根目录里执行:
50
+
51
+ ```powershell
52
+ npm install hexo-theme-solitude
53
+ ```
54
+
21
55
  ## ⚙ 应用主题
22
56
 
23
57
  修改hexo配置文件`_config.yml`,把主题改为`solitude`
@@ -26,31 +60,39 @@ git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solit
26
60
  theme: solitude
27
61
  ```
28
62
 
29
- ## 更好的配置
30
- - macos/linux
31
- 在博客根目录运行
63
+ ## 🛠️ 更好的配置
64
+
65
+ - macos/linux 在博客根目录运行
66
+
32
67
  ```bash
33
68
  cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
34
69
  ```
35
- - windows
36
- 复制```/themes/solitude/_config.yml```此文件到hexo根目录,并重命名为```_config.solitude.yml```
70
+
71
+ - windows 复制 `/themes/solitude/_config.yml` 此文件到hexo根目录,并重命名为 `_config.solitude.yml`
72
+
73
+ ## 🎁 赞助我们
74
+
75
+ 由于我们是为爱发电,域名和一些零零散散的支出都是由开发者在承担费用,如果可以,希望能够得到你的赞赏,非常感谢!🙏 当然了,即使没有赞助我们也会用心开发。
76
+
77
+ [王卓Sco](https://afdian.net/a/wleelw0u0) &nbsp; [亦小封](https://afdian.net/a/yife68)
37
78
 
38
79
  ## ✨ 贡献者
39
- > 欢迎你对本主题做出贡献
40
80
 
41
- [贡献指南](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
81
+ <a href="https://github.com/DuoSco/Hexo-theme-solitude/graphs/contributors">
82
+ <img src="https://contrib.rocks/image?repo=DuoSco/Hexo-theme-solitude" />
83
+ </a>
42
84
 
43
- ### 原主题参与开发
85
+ 特别冠名:
86
+ [@王卓Sco](https://github.com/wleelw)
87
+ [@亦小封](https://github.com/yife68)
44
88
  [@rootlex](https://github.com/rootlexme)
45
89
  [@timigomen](https://github.com/timigomen)
46
90
  [@Glannons](https://github.com/Glannons)
47
91
  [@Adil](https://github.com/adil-zhang)
48
- ### 新主题参与开发
49
- [@王卓Sco](https://github.com/wleelw)
50
- ### 主题设计
51
- [@张洪Heo](https://github.com/zhheo)
52
- ### 域名提供
53
- [@王卓Sco](https://github.com/wleelw)
54
92
 
55
- ## 仓库统计
93
+ **本主题为 [Heo](https://blog.zhheo.com/) 的衍生主题,由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
94
+
95
+ > 欢迎你对本主题做出贡献! [贡献指南](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
96
+
97
+ ## 📊 仓库统计
56
98
  ![仓库统计](https://repobeats.axiom.co/api/embed/75ec216f1d0b289e1b6a92f585342f3eeeeb0fdd.svg "Repobeats analytics image")
package/README_EN.md ADDED
@@ -0,0 +1,98 @@
1
+ <div align="right">
2
+ Language:
3
+ English /
4
+ <a title="English" href="/README.md">中文</a>
5
+ </div>
6
+
7
+ <p align="center"><img width="400" src="/source/img/logo-horizontal_version.png"></p>
8
+
9
+ <p align="center">An elegant Hexo theme</p>
10
+ <p align="center">"Explore the inner self in peaceful solitude, leading a life of simplicity and elegance."</p>
11
+
12
+ <p align="center">
13
+ <a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.3.0-orange?style=flat"></a>
14
+ <a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
15
+ <a title="npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-solitude"><img alt="GitHub Forks" src="https://img.shields.io/npm/dt/hexo-theme-solitude?color=red&label=npm"></a>
16
+ <a title="License" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/DuoSco/Hexo-Theme-solitude.svg?style=flat"></a>
17
+ <a title="GitHub Release" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/DuoSco/Hexo-theme-solitude?style=flat"></a>
18
+ <a title="GitHub Commits" target="_blank" href="https://github.com/DuoSco/Hexo-Theme-solitude/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/DuoSco/Hexo-Theme-solitude.svg?style=flat&color=brightgreen&label=commits"></a>
19
+ </p>
20
+
21
+ ![](/source/img/solitude-show.jpg)
22
+
23
+ Theme Preview: 👋[Demo](https://solitude.wzsco.top/) | [王卓Sco](https://blog.wzsco.top/)
24
+
25
+ Theme Document: [📖Solidude Document](https://docs.wzsco.top/)
26
+
27
+ Theme discussion group:`The usage document above contains a QR code`
28
+
29
+ ## 💻 Installation
30
+
31
+ ### Installation via Git
32
+
33
+ Install the stable version in the root of your blog directory 【Recommended】
34
+
35
+ ```powershell
36
+ git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
37
+ ```
38
+
39
+ If you want to install the latest development version, you can install the dev branch in the root of your blog directory
40
+
41
+ ```powershell
42
+ git clone -b dev https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
43
+ ```
44
+
45
+ ### Installation via npm
46
+
47
+ > This method only supports Hexo versions above 5.0.0. Installing through npm will not generate a theme folder in themes, but in node_modules instead.
48
+
49
+ Execute the following command in the root of your blog directory:
50
+
51
+ ```powershell
52
+ npm install hexo-theme-solitude
53
+ ```
54
+
55
+ ## ⚙ Applying the Theme
56
+
57
+ Modify the hexo configuration file `_config.yml` and change the theme to `solitude`
58
+
59
+ ```
60
+ theme: solitude
61
+ ```
62
+
63
+ ## 🛠️ Better Configuration
64
+
65
+ - MacOS/Linux Run the following command in the root of your blog directory
66
+
67
+ ```bash
68
+ cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
69
+ ```
70
+
71
+ - Windows Copy the file `/themes/solitude/_config.yml` to the root directory of your Hexo installation and rename it as `_config.solitude.yml`
72
+
73
+ ## 🎁 Sponsor Us
74
+
75
+ As we generate power for Love, the domain name and some scattered expenses are borne by the developers. If possible, we hope to receive your appreciation. Thank you very much! 🙏 Of course, even without sponsorship, we will strive to continue developing.
76
+
77
+ [王卓Sco](https://afdian.net/a/wleelw0u0) &nbsp; [亦小封](https://afdian.net/a/yife68)
78
+
79
+ ## ✨ Contributors
80
+
81
+ <a href="https://github.com/DuoSco/Hexo-theme-solitude/graphs/contributors">
82
+ <img src="https://contrib.rocks/image?repo=DuoSco/Hexo-theme-solitude" />
83
+ </a>
84
+
85
+ Special thanks to:
86
+ [@王卓Sco](https://github.com/wleelw)
87
+ [@亦小封](https://github.com/yife68)
88
+ [@rootlex](https://github.com/rootlexme)
89
+ [@timigomen](https://github.com/timigomen)
90
+ [@Glannons](https://github.com/Glannons)
91
+ [@Adil](https://github.com/adil-zhang)
92
+
93
+ **This theme is a derivative theme of [Heo](https://blog.zhheo.com/), designed and authorized by the author [张洪Heo](https://github.com/zhheo)!**
94
+
95
+ > Welcome to contribute to this theme! [Contribution Guide](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
96
+
97
+ ## 📊 Repository Statistics
98
+ ![Repository Statistics](https://repobeats.axiom.co/api/embed/75ec216f1d0b289e1b6a92f585342f3eeeeb0fdd.svg "Repobeats analytics image")