hexo-theme-solitude 1.12.0 → 1.12.2

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 (50) hide show
  1. package/.github/logo.svg +18 -42
  2. package/README.md +7 -16
  3. package/README_en-US.md +7 -17
  4. package/README_zh-Hant.md +13 -23
  5. package/_config.yml +27 -23
  6. package/languages/default.yml +14 -0
  7. package/languages/en.yml +14 -1
  8. package/languages/zh-CN.yml +13 -0
  9. package/languages/zh-TW.yml +13 -0
  10. package/layout/includes/body/mode.pug +3 -3
  11. package/layout/includes/inject/body.pug +2 -0
  12. package/layout/includes/inject/head.pug +2 -1
  13. package/layout/includes/widgets/home/carousel.pug +18 -1
  14. package/layout/includes/widgets/home/postList.pug +4 -3
  15. package/layout/includes/widgets/page/about/other.pug +71 -70
  16. package/layout/includes/widgets/post/copyright.pug +46 -0
  17. package/layout/includes/widgets/post/postMeta.pug +1 -1
  18. package/layout/includes/widgets/post/postNav.pug +4 -4
  19. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -0
  20. package/layout/includes/widgets/third-party/news-comment/valine.pug +1 -0
  21. package/layout/includes/widgets/third-party/news-comment/waline.pug +1 -0
  22. package/layout/post.pug +0 -22
  23. package/package.json +1 -1
  24. package/plugins.yml +6 -1
  25. package/scripts/event/merge_config.js +1 -0
  26. package/scripts/filter/post_image.js +13 -0
  27. package/scripts/helper/page.js +6 -2
  28. package/scripts/tags/btns.js +35 -0
  29. package/source/css/_global/index.styl +1 -0
  30. package/source/css/_highlight/color.styl +69 -131
  31. package/source/css/_highlight/highlight/diff.styl +34 -62
  32. package/source/css/_highlight/prismjs/diff.styl +60 -59
  33. package/source/css/_layout/article-container.styl +1 -5
  34. package/source/css/_layout/recent-post.styl +19 -7
  35. package/source/css/_page/_home/carousel.styl +2 -0
  36. package/source/css/_page/music.styl +8 -1
  37. package/source/css/_page/other.styl +1 -0
  38. package/source/css/_post/commentBarrage.styl +2 -11
  39. package/source/css/_post/copyright.styl +129 -2
  40. package/source/css/_post/meta.styl +1 -31
  41. package/source/css/_post/pagination.styl +13 -0
  42. package/source/css/_post/postAI.styl +2 -3
  43. package/source/css/_post/relatedPost.styl +115 -129
  44. package/source/css/_post/tools.styl +166 -274
  45. package/source/css/_tags/btns.styl +212 -0
  46. package/source/css/third_party/snackbar.min.css +1 -1
  47. package/source/css/third_party/tianli_talk.styl +16 -1
  48. package/source/js/main.js +97 -277
  49. package/source/js/music.js +1 -0
  50. package/source/js/right_menu.js +163 -136
package/.github/logo.svg CHANGED
@@ -1,47 +1,23 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
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
- <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
6
- <stop stop-color="#FECCCC" offset="0%"></stop>
7
- <stop stop-color="#39BDE4" offset="100%"></stop>
8
- </linearGradient>
9
- <linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
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 id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
35
- <g id="画板" transform="translate(-167, -59)" fill-rule="nonzero">
36
- <g id="logo" transform="translate(167, 59)">
37
- <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" id="形状" fill="url(#linearGradient-1)"></path>
38
- <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" id="路径" fill="url(#linearGradient-2)"></path>
39
- <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" id="路径" fill="url(#linearGradient-3)"></path>
40
- <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" id="路径" fill="url(#linearGradient-4)"></path>
41
- <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" id="路径" fill="url(#linearGradient-5)"></path>
42
- <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" id="路径" fill="url(#linearGradient-6)"></path>
43
- <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" id="路径" fill="url(#linearGradient-7)"></path>
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/README.md CHANGED
@@ -6,7 +6,7 @@
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
 
@@ -18,19 +18,10 @@
18
18
 
19
19
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
20
20
  ![node version](https://img.shields.io/badge/node-14.0.0-white?logo=node.js&logoColor=white)
21
-
22
- ![Latex](https://img.shields.io/badge/latex-20B2AA?logo=Latex)
23
- ![Ads](https://img.shields.io/badge/Google_Ads-black?logo=googleads)
24
- ![algolia](https://img.shields.io/badge/algolia-457AFF?logo=algolia)
25
-
26
- ![cdnjs](https://img.shields.io/badge/cdnjs-orange?logo=Cloudflare&logoColor=white)
27
- ![A11y](https://img.shields.io/badge/A11y-green?logo=%C3%8Ele-de-France%20Mobilit%C3%A9s&logoColor=white)
28
- ![mermaid](https://img.shields.io/badge/mermaid-ff3670?logo=mermaid&logoColor=white)
29
- [![pwa](https://img.shields.io/badge/pwa-red?logo=pwa)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
21
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/hexo-theme-solitude/)](https://socket.dev/npm/package/hexo-theme-solitude/overview)
30
22
 
31
23
  [![twiter](https://img.shields.io/badge/Twitter-gray?logo=x)](https://twitter.com/efu_oo)
32
24
  [![TG](https://img.shields.io/badge/Telegram-gray?logo=Telegram&logoColor=white)](https://t.me/solitudePro)
33
- [![Discord](https://img.shields.io/discord/1218118131428495430?label=Discord&logo=Discord&labelColor=white&color=black)](https://discord.gg/Y8VEvVgW)
34
25
 
35
26
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
36
27
  ![DuoLingo](https://img.shields.io/badge/duolingo-support-black?logo=duolingo&logoColor=white)
@@ -56,11 +47,9 @@
56
47
 
57
48
  ## Todo
58
49
 
59
- - [x] Artalk 评论
60
- - [x] 双评论
61
- - [x] 相册
62
- - [x] 弹幕留言页
63
- - [x] 首页顶部新样式
50
+ - [x] 首页顶部新样式
51
+ - [x] 首页文章列表三列显示
52
+ - [x] btns 外挂标签
64
53
 
65
54
  > 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
66
55
 
@@ -79,6 +68,8 @@
79
68
 
80
69
  ## 赞助者
81
70
 
71
+ [!["Buy Me A Coffee"](https://img.buymeacoffee.com/button-api/?text=请我喝杯咖啡&emoji=%E2%98%95&everfu=ezgif&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](https://www.buymeacoffee.com/everfu)
72
+
82
73
  <p align="center">
83
74
  <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
84
75
  <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
- ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?color=blue&logo=npm)
13
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
15
15
  ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
16
- [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
16
+ [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
17
17
  [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
18
18
 
19
19
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
20
20
  ![node version](https://img.shields.io/badge/node-14.0.0-white?logo=node.js&logoColor=white)
21
-
22
- ![Latex](https://img.shields.io/badge/latex-20B2AA?logo=Latex)
23
- ![Ads](https://img.shields.io/badge/Google_Ads-black?logo=googleads)
24
- ![algolia](https://img.shields.io/badge/algolia-457AFF?logo=algolia)
25
-
26
- ![cdnjs](https://img.shields.io/badge/cdnjs-orange?logo=Cloudflare&logoColor=white)
27
- ![A11y](https://img.shields.io/badge/A11y-green?logo=%C3%8Ele-de-France%20Mobilit%C3%A9s&logoColor=white)
28
- ![mermaid](https://img.shields.io/badge/mermaid-ff3670?logo=mermaid&logoColor=white)
29
- [![pwa](https://img.shields.io/badge/pwa-red?logo=pwa)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
21
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/hexo-theme-solitude/)](https://socket.dev/npm/package/hexo-theme-solitude/overview)
30
22
 
31
23
  [![twiter](https://img.shields.io/badge/Twitter-gray?logo=x)](https://twitter.com/efu_oo)
32
24
  [![TG](https://img.shields.io/badge/Telegram-gray?logo=Telegram&logoColor=white)](https://t.me/solitudePro)
33
- [![Discord](https://img.shields.io/discord/1218118131428495430?label=Discord&logo=Discord&labelColor=white&color=black)](https://discord.gg/Y8VEvVgW)
34
25
 
35
26
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
36
27
  ![DuoLingo](https://img.shields.io/badge/duolingo-support-black?logo=duolingo&logoColor=white)
@@ -56,11 +47,8 @@
56
47
 
57
48
  ## Todo
58
49
 
59
- - [x] Artalk
60
- - [x] Use double comment
61
- - [x] Album
62
- - [x] Barrage message page
63
- - [x] New style at the top of the home page
50
+ - [x] The list of articles is displayed in three columns on the homepage.
51
+ - [x] btns tags plugin.
64
52
 
65
53
  > If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
66
54
 
@@ -79,6 +67,8 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
79
67
 
80
68
  ## Sponsors
81
69
 
70
+ [!["Buy Me A Coffee"](https://img.buymeacoffee.com/button-api/?text=Buy&nbsp;Me&nbsp;A&nbsp;Coffee&emoji=%E2%98%95&everfu=ezgif&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](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'/>
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
- ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?color=blue&logo=npm)
13
+ ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?logo=npm)
14
14
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
15
15
  ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
16
- [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
16
+ [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
17
17
  [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
18
18
 
19
19
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
20
20
  ![node version](https://img.shields.io/badge/node-14.0.0-white?logo=node.js&logoColor=white)
21
-
22
- ![Latex](https://img.shields.io/badge/latex-20B2AA?logo=Latex)
23
- ![Ads](https://img.shields.io/badge/Google_Ads-black?logo=googleads)
24
- ![algolia](https://img.shields.io/badge/algolia-457AFF?logo=algolia)
25
-
26
- ![cdnjs](https://img.shields.io/badge/cdnjs-orange?logo=Cloudflare&logoColor=white)
27
- ![A11y](https://img.shields.io/badge/A11y-green?logo=%C3%8Ele-de-France%20Mobilit%C3%A9s&logoColor=white)
28
- ![mermaid](https://img.shields.io/badge/mermaid-ff3670?logo=mermaid&logoColor=white)
29
- [![pwa](https://img.shields.io/badge/pwa-red?logo=pwa)](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
21
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/hexo-theme-solitude/)](https://socket.dev/npm/package/hexo-theme-solitude/overview)
30
22
 
31
23
  [![twiter](https://img.shields.io/badge/Twitter-gray?logo=x)](https://twitter.com/efu_oo)
32
24
  [![TG](https://img.shields.io/badge/Telegram-gray?logo=Telegram&logoColor=white)](https://t.me/solitudePro)
33
- [![Discord](https://img.shields.io/discord/1218118131428495430?label=Discord&logo=Discord&labelColor=white&color=black)](https://discord.gg/Y8VEvVgW)
34
25
 
35
26
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
36
27
  ![DuoLingo](https://img.shields.io/badge/duolingo-support-black?logo=duolingo&logoColor=white)
@@ -46,21 +37,18 @@
46
37
 
47
38
  ## 特性
48
39
 
49
- - 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
50
- - 評論(Twikoo、Waline、Valine、Artalk、Giscus),支援雙評論。
51
- - 晝夜切換(ColorMode)
52
- - 燈箱(medium-zoom、fancybox)
53
- - 數學公式(Latex)
40
+ - 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
41
+ - 評論(Twikoo、Waline、Valine、Artalk、Giscus),支援雙評論
42
+ - 晝夜切換(ColorMode)
43
+ - 燈箱(medium-zoom、fancybox)
44
+ - 數學公式(Latex)
54
45
  - 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、留言彈幕頁。
55
46
  - 文章功能:AI 摘要、代碼高亮。
56
47
 
57
48
  ## Todo
58
49
 
59
- - [x] Artalk 評論
60
- - [x] 雙評論
61
- - [x] 相冊
62
- - [x] 留言彈幕頁
63
- - [x] 首頁頂部新樣式
50
+ - [x] 首页文章列表三列显示
51
+ - [x] btns 外挂标签
64
52
 
65
53
  ## 應用
66
54
 
@@ -77,6 +65,8 @@
77
65
 
78
66
  ## 贊助者
79
67
 
68
+ [!["Buy Me A Coffee"](https://img.buymeacoffee.com/button-api/?text=請我喝杯咖啡&emoji=%E2%98%95&everfu=ezgif&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)](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'/>
package/_config.yml CHANGED
@@ -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
@@ -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:
@@ -303,6 +308,7 @@ aside:
303
308
  # Configure information on the home page
304
309
  index_post_list:
305
310
  direction: column # row / column
311
+ column: 2 #2:2列 3:3列
306
312
  content: false # 1: post.description / 2: 自动获取description或截取内容(Automatically get descriptions or screenshots) / 3: 只使用截取内容(Use only screenshots) / false: 不显示内容(No content is displayed)
307
313
  length: 500 # 截取内容的长度 : The length of the screenshot content
308
314
  cover: both # left: 在左侧 : left / right: 在右侧 : right / both: 两侧 : both
@@ -369,13 +375,15 @@ post:
369
375
  share:
370
376
  enable: false
371
377
  list:
372
- # - qq
373
- # - weibo
374
- # - twitter
375
- # - facebook
376
- # - telegram
377
- # - whatsapp
378
- # - linkedin
378
+ # - qq
379
+ # - weibo
380
+ # - twitter
381
+ # - facebook
382
+ # - telegram
383
+ # - whatsapp
384
+ # - linkedin
385
+ # - link
386
+ # - qrcode
379
387
  # 版权中订阅按钮跳转链接,填写地址后开启
380
388
  # Subscription button jump link in copyright
381
389
  rss: # /atom.xml
@@ -527,8 +535,8 @@ recent_comments:
527
535
  # 缓存时间
528
536
  # Cache time
529
537
  cache: 0.2 # 1 = 1天 / 1 = 1 day
530
- console: true # 控制台按钮 / console button
531
538
  page: /recentcomments/ # 最近评论页面 / recent comments page
539
+ img: /img/recent_c.avif # 中控台显示图片(不填不显示) / image displayed in the console
532
540
 
533
541
  # 留言板
534
542
  # message board
@@ -647,7 +655,7 @@ highlight:
647
655
  theme: default # default: 默认 / mac : apple terminal
648
656
  # 代码配色
649
657
  # Code color
650
- color: default # default: 默认 / dark / funky / okaidia / tomorrow / twilight / darcula / solarized-dark / solarized-light / material / github
658
+ color: default # default: 默认 / solidity: solidity / dracula: dracula
651
659
 
652
660
  # 图片灯箱
653
661
  # image lightbox
@@ -762,15 +770,12 @@ katex:
762
770
  # comment
763
771
  # getting start: https://solitude.js.org/comments/comment
764
772
  comment:
765
- use: # waline, twikoo, valine, artalk
773
+ use: # waline, twikoo, valine, artalk, giscus
766
774
  commentBarrage: false # 热评开关 / Hot comment switch
767
775
  lazyload: false # 懒加载
768
776
  count: false # 评论数展示
769
777
  pv: false # 是否使用評論統計頁面訪問
770
778
  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
779
 
775
780
  # twikoo 配置信息
776
781
  # twikoo settings
@@ -806,17 +811,16 @@ artalk:
806
811
  site: # site name / 站点名
807
812
  option: # options
808
813
 
809
- # giscus 配置信息
810
- # giscus settings
811
- # docs: https://giscus.app/
814
+ # gitalk 配置信息
815
+ # gitalk settings
812
816
  giscus:
813
- repo: # GitHub repository name
814
- repo_id: # GitHub repository id
815
- category_id: # GitHub repository category id
816
- theme:
817
+ repo: # GitHub 仓库名称 / GitHub repository name
818
+ repo_id: # GitHub 仓库ID / GitHub repository ID
819
+ category_id: # GitHub 仓库分类ID / GitHub repository category ID
820
+ theme:
817
821
  light: light
818
822
  dark: dark
819
- option: # options
823
+ option:
820
824
 
821
825
  # 中控台扩展 : 最新评论 + 标签 + 文章
822
826
  console_plus: false
@@ -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
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
@@ -68,9 +68,22 @@ post:
68
68
  reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
69
69
  original: 本文是原创文章,采用
70
70
  original_end: 协议,完整转载请注明来自
71
+ share:
72
+ qq: 分享到QQ
73
+ weibo: 分享到微博
74
+ telegram: 分享到Telegram
75
+ twitter: 分享到Twitter
76
+ linkedin: 分享到LinkedIn
77
+ facebook: 分享到Facebook
78
+ link: 复制文章链接
79
+ qrcode: 使用手机扫码阅读这篇文章
80
+ whatsapp: 分享到WhatsApp
71
81
  ai:
72
82
  title: 文章摘要
73
83
  tip: 投诉
84
+ nav:
85
+ next: 下一篇
86
+ prev: 上一篇
74
87
 
75
88
  award:
76
89
  thanks: 致谢
@@ -68,9 +68,22 @@ post:
68
68
  reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
69
69
  original: 本文是原创文章,采用
70
70
  original_end: 协议,完整转载请注明来自
71
+ share:
72
+ qq: 分享到QQ
73
+ weibo: 分享到微博
74
+ telegram: 分享到Telegram
75
+ twitter: 分享到Twitter
76
+ linkedin: 分享到LinkedIn
77
+ facebook: 分享到Facebook
78
+ link: 复制文章链接
79
+ qrcode: 使用手机扫码阅读这篇文章
80
+ whatsapp: 分享到WhatsApp
71
81
  ai:
72
82
  title: 文章摘要
73
83
  tip: 投訴
84
+ nav:
85
+ next: 下一篇
86
+ prev: 上一篇
74
87
 
75
88
  award:
76
89
  thanks: 致謝
@@ -11,7 +11,7 @@ case theme.display_mode.type
11
11
  } else {
12
12
  document.documentElement.setAttribute('data-theme', cachedMode);
13
13
  }
14
- is_rm && rm.mode(cachedMode === 'dark' && isDarkMode)
14
+ typeof rm === 'object' && rm.mode(cachedMode === 'dark' && isDarkMode)
15
15
  }
16
16
  initTheme()
17
17
  when "dark"
@@ -22,7 +22,7 @@ case theme.display_mode.type
22
22
  document.documentElement.setAttribute('data-theme', 'dark');
23
23
  else
24
24
  document.documentElement.setAttribute('data-theme', cachedMode);
25
- is_rm && rm.mode(cachedMode === undefined || cachedMode === 'dark')
25
+ typeof rm === 'object' && rm.mode(cachedMode === undefined || cachedMode === 'dark')
26
26
  }
27
27
  initTheme()
28
28
  when "light"
@@ -33,6 +33,6 @@ case theme.display_mode.type
33
33
  document.documentElement.setAttribute('data-theme', 'light');
34
34
  else
35
35
  document.documentElement.setAttribute('data-theme', cachedMode);
36
- is_rm && rm.mode(cachedMode === 'dark')
36
+ typeof rm === 'object' && rm.mode(cachedMode === 'dark')
37
37
  }
38
38
  initTheme()
@@ -18,6 +18,8 @@ div
18
18
 
19
19
  if theme.mermaid
20
20
  script(src=url_for(theme.cdn.mermaid_js))
21
+ if theme.post.share.enable && theme.post.share.list && theme.post.share.list.includes('qrcode')
22
+ script(src=url_for(theme.cdn.qrcode))
21
23
 
22
24
  if theme.display_mode.universe
23
25
  script(src=url_for(theme.cdn.universe_js))
@@ -1,6 +1,7 @@
1
1
  each item in theme.verify_site || []
2
2
  meta(name=item.name, content=item.content)
3
3
 
4
+ link(rel="canonical" href=urlNoIndex())
4
5
  link(rel="stylesheet", href=url_for(theme.cdn.solitude_css))
5
6
 
6
7
  // aplayer
@@ -27,7 +28,7 @@ include ../head/pwa.pug
27
28
 
28
29
  script.
29
30
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.12.0",
31
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.12.2",
31
32
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
32
33
  "padding: 5px 10px;color:white;background:#3e9f50;",
33
34
  "padding: 5px 10px;color:white;background:#0084ff;border-radius:0 5px 5px 0",
@@ -10,7 +10,24 @@ if recommends
10
10
  img(src=item.cover, alt=item.title)
11
11
  .blog-slider__content
12
12
  span.blog-slider__title=item.title
13
- span.blog-slider__desc=item.description
13
+ case theme.index_post_list.content
14
+ when false
15
+ break
16
+ when 1
17
+ span.blog-slider__desc= item.description
18
+ when 2
19
+ if item.description
20
+ span.blog-slider__desc= item.description
21
+ else
22
+ - const content = strip_html(item.content)
23
+ - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
24
+ - content.length > theme.index_post_list.length ? expert += ' ...' : ''
25
+ .span.blog-slider__desc= expert
26
+ default
27
+ - const content = strip_html(item.content)
28
+ - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
29
+ - content.length > theme.index_post_list.length ? expert += ' ...' : ''
30
+ .span.blog-slider__desc= expert
14
31
  div.article-meta-wrap
15
32
  span.article-meta.tags
16
33
  each tag in item.tags.data
@@ -29,12 +29,12 @@ mixin info
29
29
  .content!= post.description
30
30
  else
31
31
  - const content = strip_html(post.content)
32
- - let expert = content.substring(0, theme.index_post_list.length)
32
+ - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
33
33
  - content.length > theme.index_post_list.length ? expert += ' ...' : ''
34
34
  .content!= expert
35
35
  default
36
36
  - const content = strip_html(post.content)
37
- - let expert = content.substring(0, theme.index_post_list.length)
37
+ - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
38
38
  - content.length > theme.index_post_list.length ? expert += ' ...' : ''
39
39
  .content!= expert
40
40
 
@@ -73,8 +73,9 @@ div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
73
73
 
74
74
 
75
75
  if theme.google_adsense && theme.google_adsense.enable && theme.google_adsense.auto_ads === false && theme.google_adsense.post_card
76
+ - var ads_height = theme.index_post_list.direction === 'column' ? '401px;' : '280px;'
76
77
  if (index + 1) % 3 === 0
77
78
  div.recent-post-item.google-ads-warp
78
- ins.adsbygoogle(style="display:block; text-align:center; min-width: 100%; height:220px", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
79
+ ins.adsbygoogle(style="display:block; text-align:center; min-width: 100%; height:" + ads_height, data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
79
80
  script.
80
81
  (adsbygoogle = window.adsbygoogle || []).push({});