hexo-theme-solitude 2.0.9 → 2.0.11

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 (39) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE.md +1 -8
  2. package/CONTRIBUTING.md +1 -1
  3. package/LICENSE +1 -1
  4. package/README.md +1 -1
  5. package/README_zh-Hans.md +3 -3
  6. package/README_zh-Hant.md +2 -2
  7. package/SECURITY.md +4 -4
  8. package/_config.yml +20 -29
  9. package/layout/includes/console.pug +1 -1
  10. package/layout/includes/inject/body.pug +104 -100
  11. package/layout/includes/nav.pug +2 -2
  12. package/layout/includes/widgets/aside/aside.pug +1 -1
  13. package/layout/includes/widgets/home/postList.pug +1 -20
  14. package/layout/includes/widgets/home/topGroup.pug +5 -5
  15. package/layout/includes/widgets/page/links/banner.pug +1 -2
  16. package/layout/includes/widgets/post/copyright.pug +1 -1
  17. package/layout/includes/widgets/randomlink.pug +1 -2
  18. package/package.json +5 -4
  19. package/plugins.yml +16 -5
  20. package/scripts/event/merge_config.js +415 -423
  21. package/scripts/helper/inject_head_js.js +13 -7
  22. package/scripts/tags/article.js +39 -0
  23. package/scripts/tags/chart.js +27 -0
  24. package/scripts/tags/gallery.js +1 -1
  25. package/scripts/tags/typeit.js +29 -0
  26. package/source/css/_global/function.styl +1 -1
  27. package/source/css/_layout/article-container.styl +2 -2
  28. package/source/css/_layout/console.styl +7 -4
  29. package/source/css/_layout/recent-post.styl +53 -75
  30. package/source/css/_page/_home/home-top.styl +8 -13
  31. package/source/css/_page/recentcomment.styl +1 -3
  32. package/source/css/_post/meta.styl +2 -2
  33. package/source/css/_tags/gallery.styl +2 -1
  34. package/source/css/var.styl +7 -7
  35. package/source/js/covercolor/local.js +10 -82
  36. package/source/js/main.js +1 -1
  37. package/source/js/utils.js +1 -7
  38. package/.editorconfig +0 -9
  39. package/.github/workflows/stale.yml +0 -19
@@ -1,10 +1,3 @@
1
- <!---
2
- ☝️ PR title should follow conventional commits (https://conventionalcommits.org)
3
-
4
- Please carefully read the contribution docs before creating a pull request
5
- 👉 https://github.com/valor-x/hexo-theme-solitude/blob/main/CONTRIBUTING.md
6
- -->
7
-
8
1
  ### 🔗 链接 issue
9
2
 
10
3
  <!-- 请确保存在未解决的问题,将编号提及为 #123(示例) -->
@@ -32,4 +25,4 @@ Please carefully read the contribution docs before creating a pull request
32
25
 
33
26
  - [ ] 我已链接问题或讨论。
34
27
  - [ ] 我已经添加了测试(如果可能的话)。
35
- - [ ] 我已相应地更新了[文档](https://github.com/efuo/theme-solitude-docs)。
28
+ - [ ] 我已相应地更新了[文档](https://github.com/everfu/solitude.js.org)。
package/CONTRIBUTING.md CHANGED
@@ -40,4 +40,4 @@ $ git rebase upstream/dev
40
40
  $ git push -f origin dev
41
41
  ```
42
42
 
43
- * 不得添加任何第三方的创作
43
+ * 不得添加任何第三方的创作
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 EverFu
3
+ Copyright (c) 2024 everfu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -20,7 +20,7 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [Documentation](https://solitude.js.org/)丨[Preview](https://everfu.github.io/Solitude/)
23
+ [Docs](https://solitude.js.org/)丨[Preview](https://solitude.js.org/preview/)丨[Author](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
package/README_zh-Hans.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <h1>Solitude</h1>
6
6
 
7
7
  一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
8
-
8
+
9
9
  主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
10
10
 
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
@@ -20,7 +20,7 @@
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [文档](https://solitude.js.org/)丨[预览](https://everfu.github.io/Solitude/)
23
+ [文档](https://solitude.js.org/)丨[预览](https://solitude.js.org/preview/zh/)丨[作者](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
@@ -58,7 +58,7 @@
58
58
  ```yaml
59
59
  theme: solitude
60
60
  ```
61
-
61
+
62
62
  前往 [文档](https://solitude.js.org/) 获取更多信息。
63
63
 
64
64
  ## 赞助者
package/README_zh-Hant.md CHANGED
@@ -20,7 +20,7 @@
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [文档](https://solitude.js.org/)丨[預覽](https://everfu.github.io/Solitude/)
23
+ [文档](https://solitude.js.org/)丨[預覽](https://solitude.js.org/preview/zh/)丨[作者](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
@@ -36,7 +36,7 @@
36
36
  - 評論(Twikoo、Waline、Valine、Artalk、Giscus),支援雙評論
37
37
  - 晝夜切換(ColorMode)
38
38
  - 燈箱(medium-zoom、fancybox)
39
- - 數學公式(Latex)
39
+ - 數學公式(Latex)
40
40
  - 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、留言彈幕頁。
41
41
  - 文章功能:AI 摘要、代碼高亮。
42
42
 
package/SECURITY.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Security Policy
2
2
 
3
- ## Report a vulnerability
3
+ ## Reporting a Vulnerability
4
4
 
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@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.org.
6
6
 
7
- All security vulnerabilities will be verified and resolved in a timely manner.
7
+ We take security seriously and will verify and resolve any reported vulnerabilities promptly.
8
8
 
9
- While it is rare for new vulnerabilities to be discovered, it is recommended to always use the latest version of the theme and other dependencies by maintaining locked files (`yarn.lock`, `package-lock.json`) to ensure that they are as secure as possible.
9
+ To minimize risks, always use the latest version of the theme and dependencies. Keep your lock files (`yarn.lock`, `package-lock.json`) up to date to ensure maximum security.
package/_config.yml CHANGED
@@ -238,16 +238,6 @@ aside:
238
238
  index_post_list:
239
239
  direction: column # row / column
240
240
  column: 2 # 2: 2 columns 3: 3 columns
241
- # 1: 1 post.description / 1: 使用自己写的文章摘要
242
- # 2: 2 Automatically get descriptions or screenshots / 2: 自动获取描述或截图
243
- # 3: 3 Use only interception / 3: 仅使用截取
244
- # false: Do not display / false: 不显示
245
- content: false
246
- # The length of the screenshot content
247
- # 截图内容长度
248
- length: 500
249
- # left: on the left : left / right: on the right : right / both: both sides : both
250
- # left: 左侧 : left / right: 右侧 : right / both: 两侧 : both
251
241
  cover: both
252
242
  # --------------------------- end ---------------------------
253
243
 
@@ -297,8 +287,8 @@ post:
297
287
  enable: true
298
288
  author:
299
289
  url: /about/ # Author link
300
- # Default icon is not filled in
301
- # 不填显示默认图标
290
+ # Default use site.icon
291
+ # 默认使用 site.icon
302
292
  img:
303
293
  # License
304
294
  # 许可证
@@ -382,14 +372,8 @@ post:
382
372
  # --------------------------- start ---------------------------
383
373
  # Custom Theme Color
384
374
  theme_color:
385
- dark: "#ffc848" # Dark mode
386
- dark_op: "#f2b94b23" # Dark mode transparent
387
- dark_op_deep: "#f2b94bdd" # Dark mode transparent dark
388
- dark_none: "#f2b94b00" # Dark mode transparent colorless
389
- light: "#425AEF" # Light mode
390
- light_op: "#4259ef23" # Light mode transparent
391
- light_op_deep: "#4259efdd" # Light mode transparent dark
392
- light_none: "#4259ef01" # Light mode transparent colorless
375
+ dark: "#ffc848" # dark
376
+ light: "#425AEF" # light
393
377
  # --------------------------- end ---------------------------
394
378
 
395
379
  # --------------------------- start ---------------------------
@@ -626,6 +610,16 @@ mediumZoom: false # mediumZoom
626
610
  mermaid: false
627
611
  # --------------------------- end ---------------------------
628
612
 
613
+ # --------------------------- start ---------------------------
614
+ # Chart.js
615
+ chart: false
616
+ # --------------------------- end ---------------------------
617
+
618
+ # --------------------------- start ---------------------------
619
+ # typeit
620
+ typeit: false
621
+ # --------------------------- end ---------------------------
622
+
629
623
  # --------------------------- start ---------------------------
630
624
  # OpenGraph
631
625
  OpenGraph:
@@ -651,10 +645,8 @@ wordcount: false
651
645
  # --------------------------- start ---------------------------
652
646
  # Busuanzi
653
647
  busuanzi: false
654
- # 0: Use the original version of busuanzi / 1: Use the custom version of busuanzi
655
- # The difference between the original and the default: please search by yourself
656
- # 0:使用原版的不蒜子 / 1:使用不蒜子的自定义版本
657
- # 原版和默认的区别:请自行搜索
648
+ # 0: Original / 1: Custom
649
+ # 0: 原版 / 1: 自定义版
658
650
  busuanzi_use: 0
659
651
  # --------------------------- end ---------------------------
660
652
 
@@ -923,9 +915,9 @@ right_menu:
923
915
  memorial:
924
916
  enable: false
925
917
  date:
926
- # - 7-7 # 卢沟桥事变
927
- # - 9-18 # 九一八事变
928
- # - 12-13 # 南京大屠杀国家公祭日
918
+ # - 7-7
919
+ # - 9-18
920
+ # - 12-13 # 国家公祭日
929
921
  # --------------------------- end ---------------------------
930
922
 
931
923
  # --------------------------- start ---------------------------
@@ -968,8 +960,7 @@ CDN:
968
960
  version: true # Whether to use the version number
969
961
  custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} # Custom format
970
962
  # Directly override the default CDN link (highest priority)
971
- option:
972
- busuanzi_qj_js: https://pv.lemonso.com/js
963
+ options:
973
964
  # algolia_search:
974
965
  # instantsearch:
975
966
  # pjax:
@@ -53,7 +53,7 @@ div#console
53
53
  i.solitude.fa-solid.fa-circle-half-stroke
54
54
  div.console-btn-item#consoleHideAside
55
55
  span.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'))
56
- i.solitude.fa-solid.fa-mattress-pillow
56
+ i.solitude.fas.fa-arrows-left-right-to-line
57
57
  if theme.keyboard.enable
58
58
  div.console-btn-item#consoleKeyboard(onclick="sco.switchKeyboard()")
59
59
  span.keyboardSwitch(title=_p('console.switch_keyboard'))
@@ -1,112 +1,116 @@
1
1
  - page.type = is_post() ? 'post' : page.type
2
2
 
3
3
  mixin katex
4
- if theme.katex.copytex
5
- script(src=url_for(theme.cdn.katex_copytex))
6
- script.
7
- (() => {
8
- document.querySelectorAll('#article-container span.katex-display').forEach(item => {
9
- utils.wrap(item, 'div', {class: 'katex-wrap'})
10
- })
11
- })();
4
+ if theme.katex.copytex
5
+ script(src=url_for(theme.cdn.katex_copytex))
6
+ script.
7
+ (() => {
8
+ document.querySelectorAll('#article-container span.katex-display').forEach(item => {
9
+ utils.wrap(item, 'div', {class: 'katex-wrap'})
10
+ })
11
+ })();
12
12
 
13
13
  div
14
- script(src=url_for(theme.cdn.utils))
15
- script(src=url_for(theme.cdn.main))
16
- script(src=url_for(theme.cdn.waterfall))
17
- script(src=url_for(theme.cdn.pjax))
18
-
19
- if theme.post.share.enable && theme.post.share.list && theme.post.share.list.includes('qrcode')
20
- script(src=url_for(theme.cdn.qrcode))
21
-
22
- if theme.mermaid
23
- script(src=url_for(theme.cdn.mermaid_js))
24
-
25
- if theme.display_mode.universe
26
- script(src=url_for(theme.cdn.universe_js))
27
- script.
28
- dark()
29
-
30
- if theme.right_menu.enable && theme.right_menu.translate.enable
31
- script(src=url_for(theme.cdn.translate_js))
32
-
33
- if theme.katex && theme.katex.enable
34
- if theme.katex.per_page && (is_post() || is_page())
35
- +katex
36
- else if page.katex
37
- +katex
38
-
39
- if theme.lazyload.enable
40
- script(src=url_for(theme.cdn.lazyload))
41
- script(src=url_for(theme.cdn.snackbar))
42
- if theme.lightbox
43
- if theme.mediumZoom
44
- script(src=url_for(theme.cdn.medium_zoom))
45
- if theme.fancybox
46
- script(src=url_for(theme.cdn.fancyapps_ui))
47
- if (theme.says.home_mini && theme.says.enable) || theme.carousel
48
- script(src=url_for(theme.cdn.swiper_js))
49
-
50
- if theme.post_ai.enable
51
- script(src=url_for(theme.cdn.efu_ai))
52
-
53
- if theme.capsule.enable || theme.music.enable || theme.says.enable
14
+ script(src=url_for(theme.cdn.utils))
15
+ script(src=url_for(theme.cdn.main))
16
+ script(src=url_for(theme.cdn.waterfall))
17
+ script(src=url_for(theme.cdn.pjax))
18
+
19
+ if theme.post.share.enable && theme.post.share.list && theme.post.share.list.includes('qrcode')
20
+ script(src=url_for(theme.cdn.qrcode))
21
+
22
+ if theme.mermaid
23
+ script(src=url_for(theme.cdn.mermaid_js))
24
+
25
+ if theme.chart
26
+ script(src=url_for(theme.cdn.chart_js))
27
+
28
+ if theme.typeit
29
+ script(src=url_for(theme.cdn.typeit_js))
30
+
31
+ if theme.display_mode.universe
32
+ script(src=url_for(theme.cdn.universe_js))
33
+ script.
34
+ dark()
35
+
36
+ if theme.right_menu.enable && theme.right_menu.translate.enable
37
+ script(src=url_for(theme.cdn.translate_js))
38
+
39
+ if theme.katex && theme.katex.enable
40
+ if theme.katex.per_page && (is_post() || is_page())
41
+ +katex
42
+ else if page.katex
43
+ +katex
44
+
45
+ if theme.lazyload.enable
46
+ script(src=url_for(theme.cdn.lazyload))
47
+ script(src=url_for(theme.cdn.snackbar))
48
+ if theme.lightbox
49
+ if theme.mediumZoom
50
+ script(src=url_for(theme.cdn.medium_zoom))
51
+ if theme.fancybox
52
+ script(src=url_for(theme.cdn.fancyapps_ui))
53
+ if (theme.says.home_mini && theme.says.enable) || theme.carousel
54
+ script(src=url_for(theme.cdn.swiper_js))
55
+
56
+ if theme.post_ai.enable
57
+ script(src=url_for(theme.cdn.efu_ai))
58
+
59
+ if theme.capsule.enable || theme.music.enable || theme.says.enable
60
+ script.
61
+ var meting_api = '!{theme.meting_api}';
62
+ script(src=url_for(theme.cdn.aplayer_js))
63
+ script(src=url_for(theme.cdn.meting_js))
64
+
65
+ if theme.post.covercolor.enable
66
+ case theme.post.covercolor.mode
67
+ when 'local'
68
+ script(src=url_for(theme.cdn.color_thief))
69
+ script(src=url_for(theme.cdn.cover_local))
70
+ when 'api'
54
71
  script.
55
- var meting_api = '!{theme.meting_api}';
56
- script(src=url_for(theme.cdn.aplayer_js))
57
- script(src=url_for(theme.cdn.meting_js))
58
-
59
- if theme.post.covercolor.enable
60
- case theme.post.covercolor.mode
61
- when 'local'
62
- script(src=url_for(theme.cdn.cover_local))
63
- when 'api'
64
- script.
65
- const coverColorConfig = {
66
- api: '!{theme.post.covercolor.api}',
67
- time: !{theme.post.covercolor.time}
68
- }
69
- script(src=url_for(theme.cdn.cover_api))
70
-
71
- if theme.loading.pace
72
- script(src=url_for(theme.cdn.pace_js))
73
-
74
- if theme.search.enable && theme.search.type === "algolia"
75
- script(src=url_for(theme.cdn.instantsearch))
76
- script(src=url_for(theme.cdn.algolia_search))
77
-
78
- if theme.right_menu.enable
79
- script(src=url_for(theme.cdn.right_menu_js))
80
-
81
- if theme.extends.body
82
- each item in theme.extends.body
83
- != item
84
-
85
- .js-pjax
86
- if is_home() && theme.says.enable && theme.says.home_mini
87
- script.
88
- sco.initbbtalk()
89
- if page.type === 'says' && theme.says.enable
90
- script.
91
- GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
92
- sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
93
- if comment_js
94
- include ../widgets/third-party/comments/js
95
- if theme.mermaid
96
- script.
97
- mermaid.run();
98
- if is_home() && theme.carousel && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false
99
- script.
100
- carousel_swiper()
101
- if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv)
102
- if theme.busuanzi_use === 0
103
- script(defer pjax src=url_for(theme.cdn.busuanzi_js))
104
- else
105
- script(defer pjax src=url_for(theme.cdn.busuanzi_qj_js))
72
+ const coverColorConfig = {
73
+ api: '!{theme.post.covercolor.api}',
74
+ time: !{theme.post.covercolor.time}
75
+ }
76
+ script(src=url_for(theme.cdn.cover_api))
77
+
78
+ if theme.loading.pace
79
+ script(src=url_for(theme.cdn.pace_js))
80
+
81
+ if theme.search.enable && theme.search.type === "algolia"
82
+ script(src=url_for(theme.cdn.instantsearch))
83
+ script(src=url_for(theme.cdn.algolia_search))
84
+
85
+ if theme.right_menu.enable
86
+ script(src=url_for(theme.cdn.right_menu_js))
87
+
88
+ if theme.extends.body
89
+ each item in theme.extends.body
90
+ != item
91
+
92
+ .js-pjax
93
+ if is_home() && theme.says.enable && theme.says.home_mini
94
+ script.
95
+ sco.initbbtalk()
96
+ if page.type === 'says' && theme.says.enable
97
+ script.
98
+ GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
99
+ sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
100
+ if comment_js
101
+ include ../widgets/third-party/comments/js
102
+ if theme.mermaid
103
+ script.
104
+ mermaid.run();
105
+ if is_home() && theme.carousel && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false
106
+ script.
107
+ carousel_swiper()
108
+ if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv)
109
+ script(defer pjax src=url_for(theme.cdn.busuanzi_js))
106
110
 
107
111
 
108
112
  if theme.footer.randomlink
109
- include ../widgets/randomlink.pug
113
+ include ../widgets/randomlink.pug
110
114
 
111
115
  // pjax
112
116
  != partial("includes/widgets/third-party/pjax", {}, {cache: true})
@@ -3,7 +3,7 @@ nav#nav.show
3
3
  #blog_name
4
4
  if theme.nav.group
5
5
  .back-home-button(tabindex="-1")
6
- i.back-home-button-icon.solitude.fab.fa-squarespace
6
+ i.back-home-button-icon.solitude.fas.fa-bars-progress
7
7
  include ./widgets/nav/group
8
8
  a#site-name(href=url_for("/"), title=_p('nav.site_name_title'))
9
9
  if theme.site.name.class === 'i_class'
@@ -20,4 +20,4 @@ nav#nav.show
20
20
  include ./widgets/nav/menu.pug
21
21
  #nav-left
22
22
  #nav-right
23
- include ./widgets/nav/right.pug
23
+ include ./widgets/nav/right.pug
@@ -15,4 +15,4 @@
15
15
  if page.toc
16
16
  include ./asideToc.pug
17
17
  each item in Sticky
18
- include ./asideSwitch.pug
18
+ include ./asideSwitch.pug
@@ -19,25 +19,6 @@ mixin info
19
19
 
20
20
  a.article-title(href=url_for(post.path), title=post.title)= post.title
21
21
 
22
- case theme.index_post_list.content
23
- when false
24
- break
25
- when 1
26
- .content!= post.description
27
- when 2
28
- if post.description
29
- .content!= post.description
30
- else
31
- - const content = strip_html(post.content)
32
- - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
33
- - content.length > theme.index_post_list.length ? expert += ' ...' : ''
34
- .content!= expert
35
- default
36
- - const content = strip_html(post.content)
37
- - let expert = content.substring(0, theme.index_post_list.length).replace(/\d+/g, '').replace(/&#xF/g, '').replace(/&#x/g, '')
38
- - content.length > theme.index_post_list.length ? expert += ' ...' : ''
39
- .content!= expert
40
-
41
22
  div.article-meta-wrap
42
23
  span.article-meta.tags
43
24
  each tag in post.tags.data
@@ -80,4 +61,4 @@ if theme.google_adsense && theme.google_adsense.enable && theme.google_adsense.a
80
61
  div.recent-post-item.google-ads-warp
81
62
  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)
82
63
  script.
83
- (adsbygoogle = window.adsbygoogle || []).push({});
64
+ (adsbygoogle = window.adsbygoogle || []).push({});
@@ -1,12 +1,12 @@
1
1
  - var filteredPosts = site.posts.data.filter(item => item.recommend === true).slice(0,6)
2
- .recent-post-group
2
+ .top-post-group
3
3
  each post in filteredPosts
4
- .recent-post-item
4
+ .top-post-item
5
5
  .post_cover
6
6
  a(href=url_for(post.path), title=post.title)
7
- span.recent-post-top-text= _p('home.recommend')
7
+ span.top-post-top-text= _p('home.recommend')
8
8
  img.post_bg(alt=post.title, src=url_for(post.cover))
9
- .recent-post-info
9
+ .top-post-info
10
10
  a.article-title(href=url_for(post.path), title=post.title)= post.title
11
11
 
12
12
  mixin todayCardContent
@@ -29,4 +29,4 @@ case theme.hometop.recommendList.url.startsWith('/')
29
29
  window.open("#{theme.hometop.recommendList.url}", "_blank");
30
30
  }
31
31
  .todayCard#todayCard(onclick="GoTodayCard()")
32
- +todayCardContent()
32
+ +todayCardContent()
@@ -17,7 +17,6 @@
17
17
  - const data = site.data.links.links
18
18
  - for (let i = 0; i < 2; i++)
19
19
  each x in data
20
- if x.type === "item"
21
20
  - var pairs = []
22
21
  each y, index in x.link_list
23
22
  if (index % 2 === 0)
@@ -29,4 +28,4 @@
29
28
  each y in pair
30
29
  a.tags-group-icon(href=url_for(y.link), title=y.name)
31
30
  img(src=y.avatar + (site.data.links.banner_suffix || ''), title=y.name)
32
- span.tags-group-title=y.name
31
+ span.tags-group-title=y.name
@@ -71,4 +71,4 @@
71
71
  a(href=url_for(theme.post.default.copyright.licenurl))
72
72
  | #{theme.post.default.copyright.license}
73
73
  = _p('post.copyright.original_end')
74
- a(href=url_for("/")) #{config.title}
74
+ a(href=url_for("/")) #{config.title}
@@ -2,7 +2,6 @@
2
2
  - var data = site.data.links.links
3
3
  if(data)
4
4
  each item in data
5
- if item.type === "item"
6
5
  each y in item.link_list
7
6
  - datalinks.push({ name: y.name,link: y.link})
8
7
 
@@ -41,4 +40,4 @@ if theme.footer.randomlink
41
40
  }
42
41
 
43
42
  linkcard.innerHTML = data + '<a class="footer-item" href="#{url_for(/links/)}">#{_p('more')}</a>';
44
- }
43
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.0.9",
4
- "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
3
+ "version": "2.0.11",
4
+ "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -11,7 +11,8 @@
11
11
  "theme",
12
12
  "solitude",
13
13
  "Card UI Design",
14
- "EverFu",
14
+ "everfu",
15
+ "一小只托尼",
15
16
  "hexo-theme-solitude"
16
17
  ],
17
18
  "repository": {
@@ -26,7 +27,7 @@
26
27
  "url": "https://github.com/everfu/hexo-theme-solitude/issues",
27
28
  "email": "o@everfu.org"
28
29
  },
29
- "homepage": "https://everfu.github.io/Solitude/",
30
+ "homepage": "https://solitude.js.org",
30
31
  "author": "Hexo-Theme-Solitude<o@everfu.org>",
31
32
  "license": "MIT"
32
33
  }
package/plugins.yml CHANGED
@@ -81,10 +81,6 @@ busuanzi_js:
81
81
  name: busuanzi
82
82
  file: bsz.pure.mini.js
83
83
  version: 2.3.0
84
- busuanzi_qj_js:
85
- name: pearssauce-busuanzi
86
- file: bsz.pure.js
87
- version: 1.0.0
88
84
  snackbar:
89
85
  name: node-snackbar
90
86
  file: dist/snackbar.min.js
@@ -109,8 +105,18 @@ fancyapps_css:
109
105
  other_name: fancyapps-ui
110
106
  mermaid_js:
111
107
  name: mermaid
112
- file: dist/mermaid.min.js
108
+ file: dist/mermaid.js
113
109
  version: 10.9.1
110
+ chart_js:
111
+ name: chart.js
112
+ file: dist/chart.umd.js
113
+ version: 4.4.1
114
+ other_name: Chart.js
115
+ typeit_js:
116
+ name: typeit
117
+ file: index.umd.min.js
118
+ version: 8.8.4
119
+ other_name: typeit
114
120
  blueimp_md5:
115
121
  name: blueimp-md5
116
122
  file: js/md5.min.js
@@ -120,3 +126,8 @@ qrcode:
120
126
  file: qrcode.min.js
121
127
  version: 1.0.0
122
128
  other_name: qrcodejs
129
+ color_thief:
130
+ name: colorthief
131
+ file: color-thief.min.js
132
+ version: 2.4.0
133
+ other_name: color-thief