hexo-theme-solitude 1.11.3 → 1.12.1
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.
- package/.github/logo.svg +18 -42
- package/CONTRIBUTING.md +1 -1
- package/README.md +7 -19
- package/README_en-US.md +16 -26
- package/README_zh-Hant.md +15 -25
- package/SECURITY.md +1 -1
- package/_config.yml +52 -37
- package/languages/default.yml +15 -0
- package/languages/en.yml +15 -1
- package/languages/zh-CN.yml +14 -0
- package/languages/zh-TW.yml +14 -0
- package/layout/includes/body/mode.pug +3 -3
- package/layout/includes/console.pug +4 -3
- package/layout/includes/inject/body.pug +2 -3
- package/layout/includes/inject/head.pug +3 -2
- package/layout/includes/widgets/aside/asideNewstComments.pug +9 -0
- package/layout/includes/widgets/aside/asideSwitch.pug +2 -0
- package/layout/includes/widgets/home/carousel.pug +18 -1
- package/layout/includes/widgets/home/postList.pug +4 -3
- package/layout/includes/widgets/post/copyright.pug +46 -0
- package/layout/includes/widgets/post/postMeta.pug +1 -1
- package/layout/includes/widgets/post/postNav.pug +4 -4
- package/layout/includes/widgets/third-party/comments/comment.pug +3 -1
- package/layout/includes/widgets/third-party/comments/giscus.pug +60 -0
- package/layout/includes/widgets/third-party/comments/js.pug +3 -1
- package/layout/includes/widgets/third-party/news-comment/artalk.pug +10 -12
- package/layout/includes/widgets/third-party/news-comment/newest-comment.pug +6 -5
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +10 -9
- package/layout/includes/widgets/third-party/news-comment/valine.pug +9 -7
- package/layout/includes/widgets/third-party/news-comment/waline.pug +9 -7
- package/layout/post.pug +0 -22
- package/package.json +3 -3
- package/plugins.yml +6 -1
- package/scripts/event/merge_config.js +17 -16
- package/scripts/event/welcome.js +1 -1
- package/scripts/filter/default.js +2 -2
- package/scripts/filter/post_image.js +13 -0
- package/scripts/helper/page.js +6 -2
- package/source/css/_highlight/color.styl +69 -131
- package/source/css/_highlight/highlight/diff.styl +34 -62
- package/source/css/_highlight/index.styl +1 -1
- package/source/css/_highlight/prismjs/diff.styl +60 -59
- package/source/css/_layout/article-container.styl +1 -5
- package/source/css/_layout/aside.styl +52 -5
- package/source/css/_layout/console.styl +3 -78
- package/source/css/_page/_home/carousel.styl +2 -0
- package/source/css/_page/message.styl +2 -1
- package/source/css/_page/music.styl +8 -1
- package/source/css/_page/other.styl +1 -0
- package/source/css/_post/commentBarrage.styl +2 -11
- package/source/css/_post/copyright.styl +129 -2
- package/source/css/_post/meta.styl +4 -44
- package/source/css/_post/pagination.styl +13 -0
- package/source/css/_post/postAI.styl +2 -3
- package/source/css/_post/relatedPost.styl +115 -129
- package/source/css/_post/tools.styl +168 -271
- package/source/css/third_party/snackbar.min.css +1 -1
- package/source/img/404.avif +0 -0
- package/source/img/avatar.avif +0 -0
- package/source/img/default.avif +0 -0
- package/source/img/error_load.avif +0 -0
- package/source/img/happy-sticker.avif +0 -0
- package/source/img/loading.avif +0 -0
- package/source/img/recent_c.avif +0 -0
- package/source/js/main.js +98 -277
- package/source/js/music.js +1 -0
- package/source/js/right_menu.js +163 -136
- package/source/img/404.webp +0 -0
- package/source/img/avatar.png +0 -0
- package/source/img/default.png +0 -0
- package/source/img/error_load.webp +0 -0
- package/source/img/happy-sticker.png +0 -0
- package/source/img/loading.gif +0 -0
package/.github/logo.svg
CHANGED
@@ -1,47 +1,23 @@
|
|
1
|
-
|
2
|
-
<svg width="167px" height="382px" viewBox="0 0 167 382" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
-
<title>logo</title>
|
1
|
+
<svg width="500px" height="500px" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
2
|
<defs>
|
5
|
-
<
|
6
|
-
<stop stop-color="#
|
7
|
-
<stop stop-color="#
|
8
|
-
|
9
|
-
|
10
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
11
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
12
|
-
</linearGradient>
|
13
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-3">
|
14
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
15
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
16
|
-
</linearGradient>
|
17
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-4">
|
18
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
19
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
20
|
-
</linearGradient>
|
21
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-5">
|
22
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
23
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
24
|
-
</linearGradient>
|
25
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-6">
|
26
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
27
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
28
|
-
</linearGradient>
|
29
|
-
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-7">
|
30
|
-
<stop stop-color="#FECCCC" offset="0%"></stop>
|
31
|
-
<stop stop-color="#39BDE4" offset="100%"></stop>
|
32
|
-
</linearGradient>
|
3
|
+
<radialGradient cx="50.2980052%" cy="50%" fx="50.2980052%" fy="50%" r="49.7019948%" id="radialGradient-1">
|
4
|
+
<stop stop-color="#59A2EF" offset="0%"></stop>
|
5
|
+
<stop stop-color="#1588FF" stop-opacity="0.265264551" offset="74.3273328%"></stop>
|
6
|
+
<stop stop-color="#153C92" stop-opacity="0" offset="100%"></stop>
|
7
|
+
</radialGradient>
|
33
8
|
</defs>
|
34
|
-
<g
|
35
|
-
<g
|
36
|
-
<
|
37
|
-
|
38
|
-
<path d="
|
39
|
-
<path d="
|
40
|
-
<path d="
|
41
|
-
<path d="
|
42
|
-
<path d="
|
43
|
-
<path d="
|
9
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
10
|
+
<g>
|
11
|
+
<rect id="rectangle" fill="url(#radialGradient-1)" x="0" y="0" width="500" height="500" rx="250"></rect>
|
12
|
+
<g id="group" transform="translate(167, 59)" fill="#000000" fill-rule="nonzero">
|
13
|
+
<path d="M41.451978,366.819156 C63.2265115,314.167618 167.050853,309.635807 118.99746,228.707504 C153.639423,313.979396 6.78825531,314.963943 26.3287594,382 C12.5619158,361.643046 18.1905094,334.473897 37.7672802,320.255882 C54.8416479,307.145482 77.6751693,304.944731 94.4956701,291.066964 C124.038533,271.079215 120.593196,234.976751 96.7006861,211.861618 C96.0188719,211.181122 95.003404,210.544062 94.0822296,210.449951 C86.4807269,209.660866 78.8719708,208.915216 71.2487081,208.328832 C57.1699707,207.250174 43.5046739,208.806627 30.7315382,215.314771 C27.2426805,217.088403 23.7393162,218.348044 19.8007514,216.943617 C24.2397968,216.06042 28.6425756,215.162745 32.3272735,212.411806 C32.2692467,212.180148 32.2184733,211.948489 32.1604466,211.716831 C29.7523369,212.107754 27.6996411,213.041626 25.1537179,212.940276 C38.187974,204.006961 24.0149432,203.340944 16,204.796046 C43.9108611,184.243631 36.1280248,151.550884 84.6746446,161.273284 C101.270292,126.502854 113.695267,142.798552 133.649212,122 C130.261901,131.816511 125.583495,141.205903 121.347543,150.718363 C116.879484,161.895865 106.790085,163.495754 96.4178058,166.029514 C100.102504,164.921899 101.545919,167.404984 103.352001,169.641932 C129.057846,200.039816 157.962415,234.0284 155.895212,276.356675 C147.234722,323.376027 66.3744621,327.364889 41.451978,366.819156 L41.451978,366.819156 Z M71.3937749,171.88612 C61.1157889,177.641375 44.7957688,175.672282 47.1893718,192.474732 C52.5858584,180.23305 59.8754674,195.001253 71.3937749,171.88612 L71.3937749,171.88612 Z"></path>
|
14
|
+
<path d="M75.3032249,211.025533 C106.026327,209.673873 112.009852,262.374155 89.125744,277.126764 C55.0225258,300.451933 -10.1418056,326.335859 20.1569835,378.551856 C19.9915736,378.703647 19.8333554,378.848209 19.6679454,379 C-9.82536916,354.648437 3.54407043,308.728139 30.8798638,288.53275 C55.238278,268.041007 100.157869,249.385209 75.3032249,211.025533 Z"></path>
|
15
|
+
<path d="M131.122758,44.5611246 C140.518488,52.0520972 149.271959,60.2108697 155.377019,71.2803786 C171.087083,44.8006616 152.086349,16.9853448 131.534092,0 C163.329472,16.2086645 181.738463,59.2744981 151.913155,88.0552212 C133.150561,109.533698 83.0400028,127.861901 83.0688683,158 L70,158 C71.5587386,126.468232 104.321114,124.885836 92.9625284,113.344512 C85.81831,103.066201 82.6791837,91.7426379 83.3503072,78.4810034 C93.2511837,128.333716 119.56933,105.577709 144.877183,81.9216245 C153.58014,70.1480222 137.732964,54.0337208 131.122758,44.5683833 L131.122758,44.5611246 Z"></path>
|
16
|
+
<path d="M62.2292659,56 C43.1451334,63.2999022 18.3176548,75.3501886 23.7278434,99.6686688 C30.7965771,99.1456907 37.8363406,98.6299763 44.876104,98.1069982 C44.9195594,98.4120687 44.9702573,98.7098757 45.0137126,99.0149462 C19.0853656,102.879173 29.4711895,111.580947 43.5145037,123.362481 C55.1822598,131.44685 65.3290794,100.736416 71,93.4946222 C67.581514,101.470038 64.1123302,109.423663 60.7735123,117.428132 C58.0503116,124.916888 53.6395956,131.149043 60.9400911,137.555525 C65.7491476,143.279229 67.4946034,149.874563 66.5313436,157.399637 C62.9680065,158.25674 59.3322439,159.12837 55.6747536,160 C60.3462016,135.11496 44.3763678,137.097919 29.5001597,123.34069 C-1.69352472,93.7706384 26.1903121,58.760162 62.2292659,56 Z"></path>
|
17
|
+
<path d="M0.00732087227,143 C17.3943925,162.502948 36.3115265,145.13458 47,164.110998 C41.5898754,167.604594 37.7903427,172.386054 35.1401869,178 C21.3476636,175.47408 8.91682243,161.400081 0,143.007115 L0.00732087227,143 Z"></path>
|
18
|
+
<path d="M29,207.557191 C25.5771332,208.185531 23.8692728,211.545785 20.9966372,212.980039 C16.6591005,213.184933 12.6502732,211.853125 12,207.092765 C17.6309374,206.703468 22.740227,206.355149 27.8495166,206 L29,207.550361 L29,207.557191 Z"></path>
|
19
|
+
<path d="M66,177 C60.2942272,179.492077 52.7486034,178.10342 50,186 C56.264432,184.566305 62.8193669,184.123436 66,177 Z"></path>
|
44
20
|
</g>
|
45
21
|
</g>
|
46
22
|
</g>
|
47
|
-
</svg>
|
23
|
+
</svg>
|
package/CONTRIBUTING.md
CHANGED
@@ -33,7 +33,7 @@ $ git push
|
|
33
33
|
* 定期使用项目仓库内容更新自己仓库内容。
|
34
34
|
|
35
35
|
```bash
|
36
|
-
$ git remote add upstream https://github.com/
|
36
|
+
$ git remote add upstream https://github.com/everfu/hexo-theme-solitude
|
37
37
|
$ git fetch upstream
|
38
38
|
$ git checkout dev
|
39
39
|
$ git rebase upstream/dev
|
package/README.md
CHANGED
@@ -6,32 +6,22 @@
|
|
6
6
|
|
7
7
|
<h1>Hexo Theme Solitude</h1>
|
8
8
|
|
9
|
-
一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。
|
9
|
+
一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
|
10
10
|
|
11
11
|
主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
|
12
12
|
|
13
13
|

|
14
14
|

|
15
15
|

|
16
|
-
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
17
17
|
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
18
|
-
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_shield)
|
19
18
|
|
20
19
|

|
21
20
|

|
22
|
-
|
23
|
-

|
24
|
-

|
25
|
-

|
26
|
-
|
27
|
-

|
28
|
-

|
29
|
-

|
30
|
-
[](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
|
21
|
+
[](https://socket.dev/npm/package/hexo-theme-solitude/overview)
|
31
22
|
|
32
23
|
[](https://twitter.com/efu_oo)
|
33
24
|
[](https://t.me/solitudePro)
|
34
|
-
[](https://discord.gg/Y8VEvVgW)
|
35
25
|
|
36
26
|

|
37
27
|

|
@@ -48,7 +38,7 @@
|
|
48
38
|
## 特性
|
49
39
|
|
50
40
|
- 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA)
|
51
|
-
- 评论(Twikoo、Waline、Valine、Artalk),支持双评论
|
41
|
+
- 评论(Twikoo、Waline、Valine、Artalk、Giscus),支持双评论
|
52
42
|
- 昼夜切换(ColorMode)
|
53
43
|
- 灯箱(medium-zoom、fancybox)
|
54
44
|
- 数学公式(Latex)
|
@@ -57,13 +47,9 @@
|
|
57
47
|
|
58
48
|
## Todo
|
59
49
|
|
60
|
-
- [x] Artalk 评论
|
61
|
-
- [x] 双评论
|
62
|
-
- [x] 相册
|
63
|
-
- [x] 弹幕留言页
|
64
50
|
- [x] 首页顶部新样式
|
65
51
|
|
66
|
-
> 如有问题请提 [issue](https://github.com/
|
52
|
+
> 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
67
53
|
|
68
54
|
## 应用
|
69
55
|
|
@@ -80,6 +66,8 @@
|
|
80
66
|
|
81
67
|
## 赞助者
|
82
68
|
|
69
|
+
[](https://www.buymeacoffee.com/everfu)
|
70
|
+
|
83
71
|
<p align="center">
|
84
72
|
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
85
73
|
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="赞助者"/>
|
package/README_en-US.md
CHANGED
@@ -10,27 +10,18 @@
|
|
10
10
|
|
11
11
|
Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
|
12
12
|
|
13
|
-

|
14
14
|

|
15
15
|

|
16
|
-
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
17
17
|
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
18
18
|
|
19
19
|

|
20
20
|

|
21
|
-
|
22
|
-

|
23
|
-

|
24
|
-

|
25
|
-
|
26
|
-

|
27
|
-

|
28
|
-

|
29
|
-
[](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
|
21
|
+
[](https://socket.dev/npm/package/hexo-theme-solitude/overview)
|
30
22
|
|
31
23
|
[](https://twitter.com/efu_oo)
|
32
24
|
[](https://t.me/solitudePro)
|
33
|
-
[](https://discord.gg/Y8VEvVgW)
|
34
25
|
|
35
26
|

|
36
27
|

|
@@ -46,23 +37,20 @@
|
|
46
37
|
|
47
38
|
## Features
|
48
39
|
|
49
|
-
- Pjax、LazyLoad、PWA
|
50
|
-
- Comments(Twikoo、Waline、Valine、Artalk), Can double comment
|
51
|
-
- ColorMode
|
52
|
-
- Lightbox(medium-zoom、fancybox)
|
53
|
-
- Mathematical formulas(Latex)
|
54
|
-
- Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page, Barrage message page
|
55
|
-
- Article features: AI summary, code highlighting
|
40
|
+
- Pjax、LazyLoad、PWA.
|
41
|
+
- Comments(Twikoo、Waline、Valine、Artalk、Giscus), Can double comment.
|
42
|
+
- ColorMode.
|
43
|
+
- Lightbox(medium-zoom、fancybox).
|
44
|
+
- Mathematical formulas(Latex).
|
45
|
+
- Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page, Barrage message page.
|
46
|
+
- Article features: AI summary, code highlighting.
|
56
47
|
|
57
48
|
## Todo
|
58
49
|
|
59
|
-
- [x]
|
60
|
-
- [x]
|
61
|
-
- [x] Album
|
62
|
-
- [x] Barrage message page
|
63
|
-
- [ ] New style at the top of the home page
|
50
|
+
- [x] New style at the top of the home page
|
51
|
+
- [x] Article sharing button
|
64
52
|
|
65
|
-
> If you have any questions, please issue an [issue](https://github.com/
|
53
|
+
> If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
66
54
|
|
67
55
|
## Setup
|
68
56
|
|
@@ -79,6 +67,8 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
|
|
79
67
|
|
80
68
|
## Sponsors
|
81
69
|
|
70
|
+
[](https://www.buymeacoffee.com/everfu)
|
71
|
+
|
82
72
|
<p align="center">
|
83
73
|
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
84
74
|
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
|
@@ -87,4 +77,4 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
|
|
87
77
|
|
88
78
|
## License
|
89
79
|
|
90
|
-
[MIT](./LICENSE) License © 2023-PRESENT [
|
80
|
+
[MIT](./LICENSE) License © 2023-PRESENT [Ever Fu](https://github.com/everfu)
|
package/README_zh-Hant.md
CHANGED
@@ -6,31 +6,22 @@
|
|
6
6
|
|
7
7
|
<h1>Hexo Theme Solitude</h1>
|
8
8
|
|
9
|
-
一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。
|
9
|
+
一款優雅的 Hexo 主題,支援懶載入、PWA、Latex 以及多種評論系統。
|
10
10
|
|
11
11
|
主題設計由 [@张洪Heo](https://github.com/zhheo)全權授權
|
12
12
|
|
13
|
-

|
14
14
|

|
15
15
|

|
16
|
-
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
17
17
|
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
18
18
|
|
19
19
|

|
20
20
|

|
21
|
-
|
22
|
-

|
23
|
-

|
24
|
-

|
25
|
-
|
26
|
-

|
27
|
-

|
28
|
-

|
29
|
-
[](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
|
21
|
+
[](https://socket.dev/npm/package/hexo-theme-solitude/overview)
|
30
22
|
|
31
23
|
[](https://twitter.com/efu_oo)
|
32
24
|
[](https://t.me/solitudePro)
|
33
|
-
[](https://discord.gg/Y8VEvVgW)
|
34
25
|
|
35
26
|

|
36
27
|

|
@@ -46,21 +37,18 @@
|
|
46
37
|
|
47
38
|
## 特性
|
48
39
|
|
49
|
-
- 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
|
50
|
-
- 評論(Twikoo、Waline、Valine、Artalk),支援雙評論
|
51
|
-
- 晝夜切換(ColorMode)
|
52
|
-
- 燈箱(medium-zoom、fancybox)
|
40
|
+
- 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
|
41
|
+
- 評論(Twikoo、Waline、Valine、Artalk、Giscus),支援雙評論
|
42
|
+
- 晝夜切換(ColorMode)
|
43
|
+
- 燈箱(medium-zoom、fancybox)
|
53
44
|
- 數學公式(Latex)
|
54
|
-
-
|
55
|
-
- 文章功能:AI
|
45
|
+
- 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、留言彈幕頁。
|
46
|
+
- 文章功能:AI 摘要、代碼高亮。
|
56
47
|
|
57
48
|
## Todo
|
58
49
|
|
59
|
-
- [x]
|
60
|
-
- [x]
|
61
|
-
- [x] 相冊
|
62
|
-
- [x] 留言彈幕頁
|
63
|
-
- [ ] 首頁頂部新樣式
|
50
|
+
- [x] 首頁頂部新樣式
|
51
|
+
- [x] 文章分享按钮
|
64
52
|
|
65
53
|
## 應用
|
66
54
|
|
@@ -77,6 +65,8 @@
|
|
77
65
|
|
78
66
|
## 贊助者
|
79
67
|
|
68
|
+
[](https://www.buymeacoffee.com/everfu)
|
69
|
+
|
80
70
|
<p align="center">
|
81
71
|
<a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
|
82
72
|
<img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
|
@@ -85,4 +75,4 @@
|
|
85
75
|
|
86
76
|
## 版權
|
87
77
|
|
88
|
-
[MIT](./LICENSE) License © 2023-至今 [Efu](https://github.com/
|
78
|
+
[MIT](./LICENSE) License © 2023-至今 [Efu](https://github.com/everfu)
|
package/SECURITY.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Report a vulnerability
|
4
4
|
|
5
|
-
To report a vulnerability, please [report privately via security tab](https://github.com/
|
5
|
+
To report a vulnerability, please [report privately via security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the correct GitHub repository (see [Document](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 are unable to report, please feel free to email us at o@efu.me.
|
6
6
|
|
7
7
|
All security vulnerabilities will be verified and resolved in a timely manner.
|
8
8
|
|
package/_config.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#---------------------------
|
2
2
|
# Hexo Theme Solitude
|
3
|
-
# Author:
|
4
|
-
# Github: https://github.com/
|
3
|
+
# Author: EverFu
|
4
|
+
# Github: https://github.com/everfu/hexo-theme-solitude
|
5
5
|
#
|
6
6
|
# 配置指南: https://solitude.js.org/
|
7
7
|
# 你可以从指南中获得更详细的说明
|
@@ -9,8 +9,8 @@
|
|
9
9
|
# Guide: https://solitude.js.org/
|
10
10
|
# You can get more detailed help from the guide
|
11
11
|
#
|
12
|
-
# 赞助:https://afdian.net/a/
|
13
|
-
# sponsor: https://
|
12
|
+
# 赞助:https://afdian.net/a/everfu
|
13
|
+
# sponsor: https://github.com/sponsors/everfu
|
14
14
|
#---------------------------
|
15
15
|
|
16
16
|
# 站点设置
|
@@ -38,7 +38,7 @@ nav:
|
|
38
38
|
# logo group
|
39
39
|
group:
|
40
40
|
# 项目: # 分类名称
|
41
|
-
# Solitude: https://github.com/
|
41
|
+
# Solitude: https://github.com/everfu/hexo-theme-solitude || /img/pwa/favicon.ico # 子菜单名称(submenu name): 链接地址(address) || 图标(icon)
|
42
42
|
|
43
43
|
# 中心菜单
|
44
44
|
# center menu
|
@@ -133,7 +133,7 @@ hometop:
|
|
133
133
|
url: https://solitude.js.org/
|
134
134
|
# 显示背景图片
|
135
135
|
# Display background image
|
136
|
-
img: /img/default.
|
136
|
+
img: /img/default.avif
|
137
137
|
# 阴影颜色
|
138
138
|
# Shadow color
|
139
139
|
color: "none"
|
@@ -148,8 +148,8 @@ carousel: false
|
|
148
148
|
# Aside Settings
|
149
149
|
# 侧边栏配置
|
150
150
|
aside:
|
151
|
-
# 值:about(关于我)、newestPost(最新文章)、allInfo(网站信息)、flip
|
152
|
-
# Values: about (info card), newestPost (latest article), allInfo (website information), flip (official account QR code)
|
151
|
+
# 值:about(关于我)、newestPost(最新文章)、allInfo(网站信息)、flip(公众号二维码)、newest_comment(最新评论)
|
152
|
+
# Values: about (info card), newestPost (latest article), allInfo (website information), flip (official account QR code), newest_comment (latest comment)
|
153
153
|
|
154
154
|
# 在主页显示的侧边栏信息
|
155
155
|
# Sidebar information displayed on the homepage
|
@@ -180,7 +180,7 @@ aside:
|
|
180
180
|
author:
|
181
181
|
# 头像
|
182
182
|
# Avatar
|
183
|
-
img: /img/avatar.
|
183
|
+
img: /img/avatar.avif
|
184
184
|
# 表情图片链接
|
185
185
|
# Emoticon image link
|
186
186
|
# tip: 26x26 size
|
@@ -210,19 +210,19 @@ aside:
|
|
210
210
|
# 个人信息卡片顶部按钮的切换文字
|
211
211
|
# Switching text of the button at the top of the personal information card
|
212
212
|
sayhello2: # 样式为2时无效
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
213
|
+
# - 🤖️ 数码科技爱好者
|
214
|
+
# - 🔍 分享与热心帮助
|
215
|
+
# - 🏠 智能家居小能手
|
216
|
+
# - 🔨 设计开发一条龙
|
217
|
+
# - 🤝 专修交互与设计
|
218
|
+
# - 🏃 脚踏实地行动派
|
219
|
+
# - 🧱 团队小组发动机
|
220
|
+
# - 💢 壮汉人狠话不多
|
221
|
+
# - 🎮 电竞游戏爱好者
|
222
222
|
# 个人信息卡片底部的小图标,按照例子填写
|
223
223
|
information: # 样式为1时请不要超过4个
|
224
|
-
#
|
225
|
-
#
|
224
|
+
# Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
|
225
|
+
# Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
|
226
226
|
|
227
227
|
# 二维码
|
228
228
|
# Official account QR code
|
@@ -240,6 +240,11 @@ aside:
|
|
240
240
|
# Background color: var(--efu-blue) / #000 / rgba(0,0,0,0.5) / linear-gradient(to right,#f65,#ffbf37)
|
241
241
|
backcolor: "var(--efu-blue)"
|
242
242
|
|
243
|
+
newest_comment:
|
244
|
+
enable: true
|
245
|
+
storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day
|
246
|
+
limit: 5 # 评论数 / Number of comments
|
247
|
+
|
243
248
|
# 页面目录
|
244
249
|
# Page directory
|
245
250
|
toc:
|
@@ -376,6 +381,8 @@ post:
|
|
376
381
|
# - telegram
|
377
382
|
# - whatsapp
|
378
383
|
# - linkedin
|
384
|
+
# - link
|
385
|
+
# - qrcode
|
379
386
|
# 版权中订阅按钮跳转链接,填写地址后开启
|
380
387
|
# Subscription button jump link in copyright
|
381
388
|
rss: # /atom.xml
|
@@ -443,11 +450,11 @@ footer:
|
|
443
450
|
information:
|
444
451
|
author: false # 是否显示 site_icon / enable site_icon in footer
|
445
452
|
left: # 左侧显示图标
|
446
|
-
#
|
447
|
-
#
|
453
|
+
# Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
|
454
|
+
# Mail: mailto:o@efu.me || st-mail-line
|
448
455
|
right: # 右侧显示图标
|
449
|
-
#
|
450
|
-
#
|
456
|
+
# Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
|
457
|
+
# 抖音: https://v.douyin.com/iJsLc8jt/ || st-douyin-fill
|
451
458
|
|
452
459
|
# 底部导航栏
|
453
460
|
# Bottom navigation bar
|
@@ -483,7 +490,7 @@ footer:
|
|
483
490
|
# 为了主题能够得到更多的支持,建议保留主题链接
|
484
491
|
# In order for the theme to get more support, it is recommended to keep the theme link
|
485
492
|
- name: 主题
|
486
|
-
url: https://github.com/
|
493
|
+
url: https://github.com/everfu/hexo-theme-solitude
|
487
494
|
# - name: 订阅
|
488
495
|
# url: /atom.xml
|
489
496
|
|
@@ -491,7 +498,7 @@ footer:
|
|
491
498
|
errorpage:
|
492
499
|
# 图片
|
493
500
|
# image
|
494
|
-
img: /img/404.
|
501
|
+
img: /img/404.avif
|
495
502
|
# 文字
|
496
503
|
# text
|
497
504
|
text: =awa= 页面走丢了
|
@@ -527,8 +534,8 @@ recent_comments:
|
|
527
534
|
# 缓存时间
|
528
535
|
# Cache time
|
529
536
|
cache: 0.2 # 1 = 1天 / 1 = 1 day
|
530
|
-
console: true # 控制台按钮 / console button
|
531
537
|
page: /recentcomments/ # 最近评论页面 / recent comments page
|
538
|
+
img: /img/recent_c.avif # 中控台显示图片(不填不显示) / image displayed in the console
|
532
539
|
|
533
540
|
# 留言板
|
534
541
|
# message board
|
@@ -620,10 +627,10 @@ lazyload:
|
|
620
627
|
field: site # post, site
|
621
628
|
# 加载中显示图片
|
622
629
|
# Loading display image
|
623
|
-
placeholder: /img/loading.
|
630
|
+
placeholder: /img/loading.avif
|
624
631
|
# 加载失败显示图片
|
625
632
|
# Loading failed display image
|
626
|
-
errorimg: /img/error_load.
|
633
|
+
errorimg: /img/error_load.avif
|
627
634
|
|
628
635
|
# 加载动画
|
629
636
|
# loading animation
|
@@ -647,7 +654,7 @@ highlight:
|
|
647
654
|
theme: default # default: 默认 / mac : apple terminal
|
648
655
|
# 代码配色
|
649
656
|
# Code color
|
650
|
-
color: default # default: 默认 /
|
657
|
+
color: default # default: 默认 / solidity: solidity / dracula: dracula
|
651
658
|
|
652
659
|
# 图片灯箱
|
653
660
|
# image lightbox
|
@@ -762,15 +769,12 @@ katex:
|
|
762
769
|
# comment
|
763
770
|
# getting start: https://solitude.js.org/comments/comment
|
764
771
|
comment:
|
765
|
-
use: # waline, twikoo, valine, artalk
|
772
|
+
use: # waline, twikoo, valine, artalk, giscus
|
766
773
|
commentBarrage: false # 热评开关 / Hot comment switch
|
767
774
|
lazyload: false # 懒加载
|
768
775
|
count: false # 评论数展示
|
769
776
|
pv: false # 是否使用評論統計頁面訪問
|
770
777
|
avatar: https://cravatar.cn # Gravatar link
|
771
|
-
newest_comment:
|
772
|
-
enable: false
|
773
|
-
storage: .5 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day
|
774
778
|
|
775
779
|
# twikoo 配置信息
|
776
780
|
# twikoo settings
|
@@ -784,7 +788,7 @@ twikoo: # https://twikoo.js.org/
|
|
784
788
|
# waline 配置信息
|
785
789
|
# waline settings
|
786
790
|
waline: # https://waline.js.org/
|
787
|
-
envId:
|
791
|
+
envId: # url: https://waline.wzsco.top
|
788
792
|
pageview: false # 是否开启页面访问量统计 / Whether to enable page access statistics
|
789
793
|
option: # waline配置项 / waline configuration item
|
790
794
|
|
@@ -806,6 +810,17 @@ artalk:
|
|
806
810
|
site: # site name / 站点名
|
807
811
|
option: # options
|
808
812
|
|
813
|
+
# gitalk 配置信息
|
814
|
+
# gitalk settings
|
815
|
+
giscus:
|
816
|
+
repo: # GitHub 仓库名称 / GitHub repository name
|
817
|
+
repo_id: # GitHub 仓库ID / GitHub repository ID
|
818
|
+
category_id: # GitHub 仓库分类ID / GitHub repository category ID
|
819
|
+
theme:
|
820
|
+
light: light
|
821
|
+
dark: dark
|
822
|
+
option:
|
823
|
+
|
809
824
|
# 中控台扩展 : 最新评论 + 标签 + 文章
|
810
825
|
console_plus: false
|
811
826
|
|
@@ -832,8 +847,8 @@ css_prefix: false
|
|
832
847
|
font:
|
833
848
|
font-size: 16px
|
834
849
|
code-font-size: 16px
|
835
|
-
font-family:
|
836
|
-
code-font-family:
|
850
|
+
font-family: "PingFang SC,Hiragino Sans GB,Microsoft YaHei"
|
851
|
+
code-font-family: "monospace, monospace"
|
837
852
|
|
838
853
|
# 插入代码到头部 </head> 之前 和 底部 </body> 之前
|
839
854
|
# Insert code before </head> and before </body>
|
package/languages/default.yml
CHANGED
@@ -58,9 +58,23 @@ post:
|
|
58
58
|
reprint: This article is a reproduction or translation, and the copyright belongs to the original author. Please contact the original author for permission to republish this article.
|
59
59
|
original: This piece of writing is an original article, utilizing the
|
60
60
|
original_end: Agreement. For complete reproduction, please acknowledge the source as Courtesy of
|
61
|
+
share:
|
62
|
+
qq: Share to QQ
|
63
|
+
weibo: Share to Weibo
|
64
|
+
telegram: Share to Telegram
|
65
|
+
twitter: Share to Twitter
|
66
|
+
linkedin: Share to LinkedIn
|
67
|
+
facebook: Share to Facebook
|
68
|
+
link: Share to Link
|
69
|
+
qrcode: Share to QR code
|
70
|
+
whatsapp: Share to WhatsApp
|
61
71
|
ai:
|
62
72
|
title: Article Summary
|
63
73
|
tip: Complaints
|
74
|
+
nav:
|
75
|
+
next: Next
|
76
|
+
prev: Previous
|
77
|
+
|
64
78
|
|
65
79
|
nav:
|
66
80
|
site_name_title: Back to home
|
@@ -98,6 +112,7 @@ aside:
|
|
98
112
|
back: Welcome back again,
|
99
113
|
sticker: Mood sticker
|
100
114
|
newpost: New posts
|
115
|
+
newcomment: New comments
|
101
116
|
card:
|
102
117
|
posts: 'Posts:'
|
103
118
|
tags: 'Tags:'
|
package/languages/en.yml
CHANGED
@@ -58,10 +58,23 @@ post:
|
|
58
58
|
reprint: This article is a reproduction or translation, and the copyright belongs to the original author. Please contact the original author for permission to republish this article.
|
59
59
|
original: This piece of writing is an original article, utilizing the
|
60
60
|
original_end: Agreement. For complete reproduction, please acknowledge the source as Courtesy of
|
61
|
+
share:
|
62
|
+
qq: Share to QQ
|
63
|
+
weibo: Share to Weibo
|
64
|
+
telegram: Share to Telegram
|
65
|
+
twitter: Share to Twitter
|
66
|
+
linkedin: Share to LinkedIn
|
67
|
+
facebook: Share to Facebook
|
68
|
+
link: Share to Link
|
69
|
+
qrcode: Share to QR code
|
70
|
+
whatsapp: Share to WhatsApp
|
61
71
|
ai:
|
62
72
|
title: Article Summary
|
63
73
|
tip: Complaints
|
64
|
-
|
74
|
+
nav:
|
75
|
+
next: Next
|
76
|
+
prev: Previous
|
77
|
+
|
65
78
|
nav:
|
66
79
|
site_name_title: Back to home
|
67
80
|
backtop: Back to top
|
@@ -98,6 +111,7 @@ aside:
|
|
98
111
|
back: Welcome back again,
|
99
112
|
sticker: Mood sticker
|
100
113
|
newpost: New posts
|
114
|
+
newcomment: New comments
|
101
115
|
card:
|
102
116
|
posts: 'Posts:'
|
103
117
|
tags: 'Tags:'
|