hexo-theme-solitude 1.4.6 → 1.5.0

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 (87) hide show
  1. package/CONTRIBUTING.md +16 -3
  2. package/README.md +2 -2
  3. package/README_EN.md +2 -2
  4. package/_config.yml +155 -230
  5. package/languages/en-US.yml +5 -2
  6. package/languages/zh-CN.yml +5 -2
  7. package/languages/zh-TW.yml +5 -2
  8. package/layout/404.pug +2 -2
  9. package/layout/includes/footer.pug +8 -6
  10. package/layout/includes/head/config.pug +7 -7
  11. package/layout/includes/head/opengraph.pug +5 -4
  12. package/layout/includes/head/pwa.pug +2 -3
  13. package/layout/includes/inject/body.pug +17 -19
  14. package/layout/includes/inject/head.pug +3 -2
  15. package/layout/includes/mixins/pagination.pug +1 -1
  16. package/layout/includes/nav.pug +3 -3
  17. package/layout/includes/page/says.pug +44 -7
  18. package/layout/includes/sidebar.pug +1 -1
  19. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
  20. package/layout/includes/widgets/home/banner.pug +11 -4
  21. package/layout/includes/widgets/home/bbTimeList.pug +13 -7
  22. package/layout/includes/widgets/home/categoryGroup.pug +11 -8
  23. package/layout/includes/widgets/home/hometop.pug +1 -2
  24. package/layout/includes/widgets/home/postList.pug +3 -3
  25. package/layout/includes/widgets/nav/group.pug +13 -0
  26. package/layout/includes/widgets/nav/menu.pug +20 -16
  27. package/layout/includes/widgets/page/about/award.pug +1 -1
  28. package/layout/includes/widgets/page/banner.pug +8 -13
  29. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  30. package/layout/includes/widgets/page/links/linksCard.pug +0 -1
  31. package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
  32. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
  33. package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
  34. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
  35. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  36. package/layout/index.pug +6 -6
  37. package/layout/page.pug +0 -2
  38. package/package.json +1 -1
  39. package/plugins.yml +0 -5
  40. package/scripts/event/init.js +18 -17
  41. package/scripts/event/welcome.js +1 -1
  42. package/scripts/generator/gallery.js +29 -27
  43. package/scripts/helper/getArchiveLength.js +5 -9
  44. package/scripts/helper/related_post.js +28 -39
  45. package/scripts/helper/stylus.js +23 -8
  46. package/source/css/_global/animation.styl +313 -0
  47. package/source/css/_layout/basic.styl +10 -1
  48. package/source/css/_layout/header.styl +5 -5
  49. package/source/css/_layout/index.styl +0 -1
  50. package/source/css/_page/_about/skills.styl +1 -1
  51. package/source/css/_page/_home/category-bar.styl +14 -14
  52. package/source/css/_page/_home/home-top.styl +57 -45
  53. package/source/css/_page/_home/recent-post.styl +1 -1
  54. package/source/css/_page/equipment.styl +3 -2
  55. package/source/css/_page/home.styl +0 -15
  56. package/source/css/_page/index.styl +0 -2
  57. package/source/css/_page/links.styl +9 -8
  58. package/source/css/_page/says.styl +1 -2
  59. package/source/css/_page/share.styl +30 -67
  60. package/source/css/_widgets/_aside/index.styl +1 -1
  61. package/source/css/_widgets/_aside/info.styl +1 -1
  62. package/source/css/_widgets/_comment/twikoo.styl +4 -6
  63. package/source/css/_widgets/_comment/waline.styl +435 -72
  64. package/source/css/_widgets/_extra/console.styl +1 -1
  65. package/source/css/_widgets/_extra/fullpage.styl +1 -1
  66. package/source/css/_widgets/_mixins/footer.styl +1 -1
  67. package/source/css/_widgets/_post/content.styl +1 -11
  68. package/source/css/_widgets/_post/meta.styl +2 -2
  69. package/source/css/_widgets/_post/relatedPost.styl +1 -1
  70. package/source/css/_widgets/_post/tools.styl +1 -1
  71. package/source/css/_widgets/_search/algolia-search.styl +4 -2
  72. package/source/css/_widgets/_tags/note.styl +4 -0
  73. package/source/css/index.styl +0 -1
  74. package/source/js/comment/twikoo_commentBarrage.js +76 -75
  75. package/source/js/covercolor/local.js +11 -10
  76. package/source/js/main.js +27 -35
  77. package/source/js/music.js +89 -49
  78. package/layout/includes/page/rss.pug +0 -20
  79. package/layout/includes/widgets/home/bb/json.pug +0 -25
  80. package/layout/includes/widgets/home/bb/local.pug +0 -20
  81. package/layout/includes/widgets/home/bb/memos.pug +0 -28
  82. package/layout/includes/widgets/nav/left.pug +0 -10
  83. package/layout/includes/widgets/page/says/json.pug +0 -82
  84. package/layout/includes/widgets/page/says/local.pug +0 -44
  85. package/layout/includes/widgets/page/says/memos.pug +0 -111
  86. package/source/css/_global/animation.css +0 -813
  87. package/source/css/_page/rss.styl +0 -82
package/CONTRIBUTING.md CHANGED
@@ -15,8 +15,8 @@
15
15
  * 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/Hexo-Theme-Solitude`,然后 `clone` 到本地Hexo主题目录,并设置用户信息。
16
16
 
17
17
  ```bash
18
- $ git clone git@github.com:{your-github-username}/Hexo-Theme-Solitude.git themes/Solitude
19
- $ cd Solitude
18
+ $ git clone git@github.com:{your-github-username}/hexo-theme-solitude.git themes/solitude
19
+ $ cd solitude
20
20
  $ git config user.name "yourname"
21
21
  $ git config user.email "your email"
22
22
  ```
@@ -38,4 +38,17 @@ $ git fetch upstream
38
38
  $ git checkout dev
39
39
  $ git rebase upstream/dev
40
40
  $ git push -f origin dev
41
- ```
41
+ ```
42
+
43
+ * 不得添加任何第三方的创作,请自行创作插件并`PR`到 `solitude-pugins` 仓库
44
+
45
+ ### 插件创作
46
+ * 插件创作
47
+
48
+ ```
49
+ $ git clone git@github.com:{your-github-username}/solitude-plugins.git
50
+ $ git config user.name "yourname"
51
+ $ git config user.email "your email"
52
+ ```
53
+
54
+ * 根据 `README` 进行添加。
package/README.md CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
14
14
 
15
- 主题预览: [王卓Sco](https://blog.wzsco.top/) | [Demo](https://solitude.wzsco.top/)
15
+ 主题预览: [王卓Sco](https://blog.wzsco.cn/) | [Demo](https://solitude.wzsco.cn/)
16
16
 
17
- 主题文档: [中文](https://docs.wzsco.top/) | [ English ](https://docs.wzsco.top/en/)
17
+ 主题文档: [中文](https://docs.wzsco.cn/) | [ English ](https://docs.wzsco.cn/en/)
18
18
 
19
19
  主题交流群:`文档内有群二维码和链接`
20
20
 
package/README_EN.md CHANGED
@@ -13,9 +13,9 @@
13
13
 
14
14
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
15
15
 
16
- Theme Preview: [王卓Sco](https://blog.wzsco.top/)|[Demo](https://solitude.wzsco.top/)
16
+ Theme Preview: [王卓Sco](https://blog.wzsco.cn/)|[Demo](https://solitude.wzsco.cn/)
17
17
 
18
- Theme Document: [中文](https://docs.wzsco.top/)|[ English ](https://docs.wzsco.top/en/)
18
+ Theme Document: [中文](https://docs.wzsco.cn/)|[ English ](https://docs.wzsco.cn/en/)
19
19
 
20
20
  Theme discussion group:`The usage document above contains a QR code`
21
21
 
package/_config.yml CHANGED
@@ -1,3 +1,4 @@
1
+ ---
1
2
  #---------------------------
2
3
  # Hexo Theme Solitude
3
4
  # Author: wleelw(王卓Sco)、yife68(亦封)
@@ -45,91 +46,56 @@ nav:
45
46
  # 导航栏显示的内容
46
47
  # Content displayed in the navigation bar
47
48
  menu:
48
- # # 显示分类名
49
- # # Display category name
50
- # 项目:
51
- # # 显示子类
52
- # # Display subcategories
53
- # Solitude:
54
- # # 显示的图标
55
- # # Displayed icon
56
- # icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
57
- # # 点击的跳转链接
58
- # # Click the jump link
59
- # url: https://github.com/wleelw/Hexo-Theme-solitude
49
+ # 显示分类名
50
+ # Display category name
51
+ 项目:
52
+ # # 显示子类
53
+ # # Display subcategories
54
+ # Solitude:
55
+ # # 显示的图标
56
+ # # Displayed icon
57
+ # icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
58
+ # # 点击的跳转链接
59
+ # # Click the jump link
60
+ # url: https://github.com/wleelw/Hexo-Theme-solitude
60
61
 
61
62
  # 导航栏内容
62
63
  # Navigation bar content
63
64
  # tip:此部分内容是顶部导航栏中间菜单区域
64
65
  # tip: This part of the content is the menu area in the middle of the top navigation bar
65
66
  menu:
66
- # 显示的大分类名称
67
- # Displayed category name
68
- # 文库:
69
- # # 点击跳转链接
70
- # # Click the jump link
71
- # # tip:如果没有子类就填跳转链接,例如:/archives,否则填false
72
- # # tip: If there is no subcategory, fill in the jump link, for example: /archives, otherwise fill in false
73
- # url: false
74
- # # 子类数组
75
- # # Subcategory array
76
- # child:
77
- # # 子类名称
78
- # # Subcategory name
79
- # 文章列表:
80
- # # 点击跳转链接
81
- # # Click the jump link
82
- # url: /archives/
83
- # # 子类名称左侧图标
84
- # # Subcategory name left icon
85
- # icon: sco-folder-fill
86
- # 全部分类:
87
- # url: /categories/
88
- # icon: sco-checkbox-multiple-blank-fill
89
- # 全部标签:
90
- # url: /tags/
91
- # icon: sco-price-tag-fill
92
- # 友链:
93
- # url: false
94
- # child:
95
- # 友情链接:
96
- # url: /links/
97
- # icon: sco-group-fill
98
- # 宝藏博主:
99
- # url: javascript:travelling()
100
- # icon: sco-gift-fill
101
- # 我的:
102
- # url: false
103
- # child:
104
- # 装备:
105
- # url: /equipment/
106
- # icon: sco-laptop-line
107
- # 工具箱:
108
- # url: /tlink/
109
- # icon: sco-tools-fill
110
- # 关于:
111
- # url: false
112
- # child:
113
- # 关于本站:
114
- # url: /about/
115
- # icon: sco-contacts-fill
116
-
67
+ # 首页: / # 显示名称:路径 / Display name: path
68
+ # 文库: # 显示名称 / Display name
69
+ # 文章列表: /archives/ || sco-folder-fill # 子菜单名称:路径 || 图标 / Submenu name: path || icon
70
+ # 全部分类: /categories/ || sco-checkbox-multiple-blank-fill
71
+ # 全部标签: /tags/ || sco-price-tag-fill
72
+ # 友链:
73
+ # 友链鱼塘: /moments/ || sco-wifi-fill
74
+ # 友情链接: /links/ || sco-group-fill
75
+ # 宝藏博主: javascript:travelling() || sco-gift-fill
76
+ # 我的:
77
+ # 相册集: /gallery/ || sco-image-fill
78
+ # 装备: /equipment/ || sco-laptop-line
79
+ # 工具箱: /tlink/ || sco-tools-fill
80
+ # 音乐馆: /music/ || sco-disc-fill
81
+ # 关于:
82
+ # 关于本站: /about/ || sco-contacts-fill
117
83
 
118
84
  # 导航栏右侧按钮
119
85
  # Button on the right side of the navigation bar
120
86
  # tip:只需填写true和false即可
121
87
  # tip: Just fill in true and false
122
88
  right:
123
- random: false # 随机文章跳转 true:开启 / false:关闭 : random post jump true: on / false: off
124
- console: false #控制台 true:开启 / false:关闭 : console true: on / false: off
89
+ random: false # 随机文章跳转 true:开启 / false:关闭 : random post jump true: on / false: off
90
+ console: false #控制台 true:开启 / false:关闭 : console true: on / false: off
125
91
  # 从左至右
126
92
  # From left to right
127
93
  custom:
128
- # - name: 开往 - 友链接力 # 显示文字 / Displayed text
129
- # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
130
- # icon: sco-train-line # 图标 / Icon
131
- # onclick: # 点击事件 / Click event
132
- # id: travellings_button # id
94
+ # - name: 开往 - 友链接力 # 显示文字 / Displayed text
95
+ # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
96
+ # icon: sco-train-line # 图标 / Icon
97
+ # onclick: # 点击事件 / Click event
98
+ # id: travellings_button # id
133
99
 
134
100
  # 首页顶部样式
135
101
  # Home top style
@@ -151,61 +117,40 @@ hometop:
151
117
  # 轮播icon
152
118
  # Carousel icon
153
119
  icon:
154
- # 名字 / Name
155
- # HTML:
156
- # # 图片 / Image
157
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/HTML.png
158
- # # 背景色 / Background color
159
- # color: '#e9572b'
160
- # JS:
161
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/JS.png
162
- # color: '#f7cb4f'
163
- # Kotlin:
164
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/kotlin-logo.svg
165
- # color: '#ffffff'
166
- # Docker:
167
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/docker.png
168
- # color: '#57b6e6'
169
- # Flutter:
170
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/flutter.png
171
- # color: '#ffffff'
172
- # WebPack:
173
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/webpack.png
174
- # color: '#2e3a41'
175
- # Git:
176
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/git.png
177
- # color: '#df5b40'
178
- # VS:
179
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/vs-logo.svg
180
- # color: '#ffffff'
181
-
182
- # 顶部三大分类
183
- # Top three categories
184
- categoryGroup:
185
- # 左侧
186
- # Left
187
- G1:
188
- # 显示文字
189
- # Displayed text
190
- name: 必看精选
191
- # 显示图标
192
- # Displayed icon
193
- icon: scoicon sco-star-smile-fill
194
- # 跳转链接
195
- # Jump link
196
- url: /tags/精选/
197
- # 中间
198
- # Middle
199
- G2:
200
- name: 热门文章
201
- icon: scoicon sco-fire-fill
202
- url: /categories/热门/
203
- # 右侧
204
- # Right
205
- G3:
206
- name: 实用教程
207
- icon: scoicon sco-book-mark-fill
208
- url: /tags/教程/
120
+ # # 名字 / Name
121
+ # HTML:
122
+ # # 图片 / Image
123
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/HTML.png
124
+ # # 背景色 / Background color
125
+ # color: "#e9572b"
126
+ # JS:
127
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/JS.png
128
+ # color: "#f7cb4f"
129
+ # Kotlin:
130
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/kotlin-logo.svg
131
+ # color: "#ffffff"
132
+ # Docker:
133
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/docker.png
134
+ # color: "#57b6e6"
135
+ # Flutter:
136
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/flutter.png
137
+ # color: "#ffffff"
138
+ # WebPack:
139
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/webpack.png
140
+ # color: "#2e3a41"
141
+ # Git:
142
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/git.png
143
+ # color: "#df5b40"
144
+ # VS:
145
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/vs-logo.svg
146
+ # color: "#ffffff"
147
+
148
+ # banner 左下跳转按钮
149
+ # Banner lower left jump button
150
+ group:
151
+ # 热门: /tags/热门/ || sco-fire-fill || linear-gradient(to right,#f65,#ffbf37)
152
+ # 教程: /tags/教程/ || sco-book-mark-fill || linear-gradient(to right,#358bff,#15c6ff)
153
+ # 精选: /tags/精选/ || sco-star-smile-fill || linear-gradient(to right,#18e7ae,#1eebeb)
209
154
 
210
155
  # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
211
156
  # Right top list (add "recommend: true" in the front matter of the article)
@@ -224,7 +169,7 @@ hometop:
224
169
  img: /img/default.png
225
170
  # 阴影颜色
226
171
  # Shadow color
227
- color: '#ff0000'
172
+ color: "#ff0000"
228
173
 
229
174
  # --------------------------------------
230
175
  # Aside Settings
@@ -303,16 +248,10 @@ aside:
303
248
  - 🧱 团队小组发动机
304
249
  - 💢 壮汉人狠话不多
305
250
  - 🎮 电竞游戏爱好者
251
+ # 个人信息卡片底部的小图标,按照例子填写
306
252
  information:
307
- # # 悬停显示文字
308
- # Github:
309
- # # 图标
310
- # icon: scoicon sco-github-line
311
- # # 跳转链接
312
- # url: https://github.com/wleelw/Hexo-Theme-slitude
313
- # Bilibili:
314
- # icon: scoicon sco-bilibili-line
315
- # url: https://space.bilibili.com/1329819902
253
+ # Github: https://github.com/wleelw || sco-github-line # 名称:链接 || 图标 / Name: link || icon
254
+ # Bilibili: https://space.bilibili.com/1329819902 || sco-bilibili-line
316
255
 
317
256
  # 二维码
318
257
  # Official account QR code
@@ -358,14 +297,14 @@ aside:
358
297
  # 高亮显示标签列表
359
298
  # Highlighted tag list
360
299
  list:
361
- - 'Solitude-使用'
300
+ - "Solitude-使用"
362
301
 
363
302
  # 侧边栏归档
364
303
  # aside archive
365
304
  archive:
366
305
  enable: false
367
306
  # 显示类型
368
- type: 'month' # monthly: 按月 / yearly: 按年 : monthly: by month / yearly: by year
307
+ type: "month" # monthly: 按月 / yearly: 按年 : monthly: by month / yearly: by year
369
308
 
370
309
  # 建站信息
371
310
  # Website information
@@ -390,7 +329,7 @@ aside:
390
329
  runtimeenable: true
391
330
  # 格式:yyyy-MM-dd hh-mm-ss
392
331
  # Format: yyyy-MM-dd hh-mm-ss
393
- runtime: '2023-04-20 00:00:00'
332
+ runtime: "2023-04-20 00:00:00"
394
333
 
395
334
  # -------------------------
396
335
  # 文章页、页面配置
@@ -399,7 +338,7 @@ aside:
399
338
  # 页面默认设置
400
339
  # page default settings
401
340
  page:
402
- error: true # 404页面 / 404 page
341
+ error: true # 404页面 / 404 page
403
342
  tags: true # 标签页 / Tags page
404
343
  categories: true # 分类页 / Categories page
405
344
  default: # 默认值 / Default value
@@ -476,13 +415,13 @@ post:
476
415
  # --------------------------------------
477
416
  theme_color:
478
417
  dark: "#ffc848" # 暗色模式 / Dark mode
479
- dark_op: '#f2b94b23' # 暗色模式透明 / Dark mode transparent
480
- dark_op_deep: '#f2b94bdd' # 暗色模式透明深色 / Dark mode transparent dark
481
- dark_none: '#f2b94b00' # 暗色模式透明无色 / Dark mode transparent colorless
418
+ dark_op: "#f2b94b23" # 暗色模式透明 / Dark mode transparent
419
+ dark_op_deep: "#f2b94bdd" # 暗色模式透明深色 / Dark mode transparent dark
420
+ dark_none: "#f2b94b00" # 暗色模式透明无色 / Dark mode transparent colorless
482
421
  light: "#425AEF" # 亮色模式 / Light mode
483
- light_op: '#4259ef23' # 亮色模式透明 / Light mode transparent
484
- light_op_deep: '#4259efdd' # 亮色模式透明深色 / Light mode transparent dark
485
- light_none: '#4259ef01' # 亮色模式透明无色 / Light mode transparent colorless
422
+ light_op: "#4259ef23" # 亮色模式透明 / Light mode transparent
423
+ light_op_deep: "#4259efdd" # 亮色模式透明深色 / Light mode transparent dark
424
+ light_none: "#4259ef01" # 亮色模式透明无色 / Light mode transparent colorless
486
425
 
487
426
  # 主题显示模式调整
488
427
  # theme display mode adjustment
@@ -515,38 +454,30 @@ footer:
515
454
  # 底部上方一排图标
516
455
  # Bottom row of icons
517
456
  information:
518
- left: # 左侧显示图标 / Left display icon
519
- # Github:
520
- # icon: scoicon sco-bilibili-line
521
- # url: https://github.com/wleelw
522
- # Mail:
523
- # icon: scoicon sco-mail-line
524
- # url: mailto:wleelw@wzsco.top
525
- right: # 右侧显示图标 / Right display icon
526
- # Bilibili:
527
- # icon: scoicon sco-bilibili-line
528
- # url: https://space.bilibili.com/1329819902
529
- # 抖音:
530
- # icon: scoicon sco-douyin-fill
531
- # url: https://v.douyin.com/iJsLc8jt/
457
+ left: # 左侧显示图标
458
+ # Github: https://github.com/wleelw || sco-github-line # 名称:链接 || 图标 / Name: link || icon
459
+ # Mail: mailto:wleelw@wzsco.top || sco-mail-line
460
+ right: # 右侧显示图标
461
+ # Bilibili: https://space.bilibili.com/1329819902 || sco-bilibili-line
462
+ # 抖音: https://v.douyin.com/iJsLc8jt/ || sco-douyin-fill
532
463
 
533
464
  # 底部导航栏
534
465
  # Bottom navigation bar
535
- group: # 从左至右 / From left to right
536
- # 导航:
537
- # 归档: /archives/
538
- # 分类: /categories/
539
- # 标签: /tags/
540
- # 服务:
541
- # 阿里云: https://aliyun.com/
542
- # 51la统计: https://v6.51.la/
543
- # 百度统计: https://tongji.baidu.com/
544
- # 支持:
545
- # 打赏记录: /about/
546
- # 协议:
547
- # Cookies: /cookies/
548
- # 用户协议: /privacy/
549
- # 版权协议: /copyright/
466
+ group:
467
+ # 导航:
468
+ # 归档: /archives/
469
+ # 分类: /categories/
470
+ # 标签: /tags/
471
+ # 服务:
472
+ # 阿里云: https://aliyun.com/
473
+ # 51la统计: https://v6.51.la/
474
+ # 百度统计: https://tongji.baidu.com/
475
+ # 支持:
476
+ # 打赏记录: /about/
477
+ # 协议:
478
+ # Cookies: /cookies/
479
+ # 用户协议: /privacy/
480
+ # 版权协议: /copyright/
550
481
 
551
482
  # 底部随机友链
552
483
  # Random links at the bottom
@@ -605,12 +536,6 @@ says:
605
536
  # 即刻短文仅展示前n条
606
537
  # Jike short text only shows the first n
607
538
  strip: 30
608
- # 模式选择。local:本地静态 / json:动态json / memos:动态Memos
609
- # Mode selection. Local: local static/JSON: dynamic JSON/memory: dynamic Memos
610
- mode: local
611
- # 动态模式地址。如为json或memos模式,此项为必填。链接获取以及格式可查看主题文档。
612
- # Dynamic mode address. If it is in JSON or Memos mode, this field is mandatory. The link acquisition and format can be viewed in the theme document.
613
- mode_link: # https://example.com/api/v1/memo?creatorId=1&tag=says
614
539
 
615
540
  # -------------------------
616
541
  # meeting-api,用于界面中的音乐胶囊和音乐馆页,可自定义api,不会请勿动。
@@ -682,18 +607,18 @@ keyboard:
682
607
  # sco: sco built-in method
683
608
  # url: 跳转链接
684
609
  # url: Jump link
685
- # - name: 关闭快捷键功能
686
- # key: K
687
- # func: keyboard
688
- # - name: 打开中控台
689
- # key: A
690
- # sco: showConsole
691
- # - name: 播放/暂停音乐
692
- # key: M
693
- # sco: musicToggle
694
- # - name: 打开友情链接
695
- # key: L
696
- # url: '/links/'
610
+ # - name: 关闭快捷键功能
611
+ # key: K
612
+ # func: keyboard
613
+ # - name: 打开中控台
614
+ # key: A
615
+ # sco: showConsole
616
+ # - name: 播放/暂停音乐
617
+ # key: M
618
+ # sco: musicToggle
619
+ # - name: 打开友情链接
620
+ # key: L
621
+ # url: "/links/"
697
622
 
698
623
  # 懒加载
699
624
  # lazyload
@@ -760,13 +685,13 @@ translate:
760
685
  opengraph:
761
686
  enable: false
762
687
  options:
763
- # twitter_card:
764
- # twitter_image:
765
- # twitter_id:
766
- # twitter_site:
767
- # google_plus:
768
- # fb_admins:
769
- # fb_app_id:
688
+ # twitter_card:
689
+ # twitter_image:
690
+ # twitter_id:
691
+ # twitter_site:
692
+ # google_plus:
693
+ # fb_admins:
694
+ # fb_app_id:
770
695
 
771
696
  # 字数统计
772
697
  # word count
@@ -843,24 +768,24 @@ comment:
843
768
  newComment: false # 最新评论开关 / Latest comment switch
844
769
  # 匿名评论前部分随机信息 / Anonymous comment front random information
845
770
  randomInfoStart:
846
- - '聪敏的'
847
- - '可爱的'
848
- - '美丽的'
771
+ - "聪敏的"
772
+ - "可爱的"
773
+ - "美丽的"
849
774
  # 匿名评论后部分随机信息 / Anonymous comment after random information
850
775
  randomInfoEnd:
851
- - '白菜'
852
- - '小可爱'
853
- - '小仙女'
776
+ - "白菜"
777
+ - "小可爱"
778
+ - "小仙女"
854
779
  # twikoo 配置信息
855
780
  # twikoo settings
856
781
  twikoo: # https://twikoo.js.org/
857
782
  envId: # url: https://twikoo.sondy.top/
858
- lang: 'zh-CN' # 语言
859
- accessToken: # accessToken
783
+ lang: "zh-CN" # 语言
784
+ accessToken: # accessToken
860
785
  # waline 配置信息
861
786
  # waline settings
862
787
  waline: # https://waline.js.org/
863
- envId: # url: https://waline.wzsco.top
788
+ envId: # url: https://waline.wzsco.top
864
789
  pageview: true # 是否开启页面访问量统计 / Whether to enable page access statistics
865
790
  option: # waline配置项 / waline configuration item
866
791
 
@@ -896,7 +821,7 @@ extends:
896
821
  pwa:
897
822
  enable: false
898
823
  manifest: /manifest.json # manifest.json 文件路径
899
- theme_color: '#ffffff' # 主题颜色
824
+ theme_color: "#ffffff" # 主题颜色
900
825
  mask_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 遮罩图标
901
826
  apple_touch_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 苹果触摸图标
902
827
  bookmark_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 书签图标
@@ -926,24 +851,24 @@ CDN:
926
851
  scoicon_css: https://cdn.cbd.int/solitude-source/icon/scoicon.min.css
927
852
  waterfall: https://cdn.cbd.int/solitude-source/js/waterfall.min.js
928
853
  universe_js: https://cdn.cbd.int/solitude-source/js/universe.min.js
929
- # algolia_search:
930
- # instantsearch:
931
- # pjax:
932
- # twikoo:
933
- # waline_js:
934
- # waline_css:
935
- # sharejs:
936
- # sharejs_css:
937
- # katex:
938
- # katex_copytex:
939
- # lazyload:
940
- # aplayer_css:
941
- # aplayer_js:
942
- # meting_js:
943
- # pace_js:
944
- # lunr_js:
945
- # swiper_css:
946
- # swiper_js:
947
- # busuanzi_js:
948
- # snackbar_css:
949
- # snackbar_js:
854
+ # algolia_search:
855
+ # instantsearch:
856
+ # pjax:
857
+ # twikoo:
858
+ # waline_js:
859
+ # waline_css:
860
+ # sharejs:
861
+ # sharejs_css:
862
+ # katex:
863
+ # katex_copytex:
864
+ # lazyload:
865
+ # aplayer_css:
866
+ # aplayer_js:
867
+ # meting_js:
868
+ # pace_js:
869
+ # lunr_js:
870
+ # swiper_css:
871
+ # swiper_js:
872
+ # busuanzi_js:
873
+ # snackbar_css:
874
+ # snackbar_js:
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: Please enable JavaScript to view the site
78
- console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.6 😄'
78
+ console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.5.0 😄'
79
79
 
80
80
  aside:
81
81
  postcount: 'Posts :'
@@ -144,4 +144,7 @@ rightmenu:
144
144
  dark: Dark
145
145
  light: Light
146
146
  chs_to_cht: Traditional
147
- cht_to_chs: Simplified
147
+ cht_to_chs: Simplified
148
+
149
+ 404:
150
+ button: Back to home
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 开启JavaScript才能访问本站哦~
78
- console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.6 😄'
78
+ console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.5.0 😄'
79
79
 
80
80
  aside:
81
81
  postcount: '文章总数 :'
@@ -144,4 +144,7 @@ rightmenu:
144
144
  dark: 深色模式
145
145
  light: 浅色模式
146
146
  chs_to_cht: 轉為繁體
147
- cht_to_chs: 转为简体
147
+ cht_to_chs: 转为简体
148
+
149
+ 404:
150
+ button: 返回首页
@@ -75,7 +75,7 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 開啟JavaScript才能訪問本站哦~
78
- console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.6 😄'
78
+ console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.5.0 😄'
79
79
 
80
80
  aside:
81
81
  postcount: '文章數:'
@@ -144,4 +144,7 @@ rightmenu:
144
144
  dark: 深色模式
145
145
  light: 淺色模式
146
146
  chs_to_cht: 轉為繁體
147
- cht_to_chs: 转为简体
147
+ cht_to_chs: 转为简体
148
+
149
+ 404:
150
+ button: 返回首頁
package/layout/404.pug CHANGED
@@ -3,13 +3,13 @@ extends includes/layout.pug
3
3
  block content
4
4
  #error-wrap
5
5
  .error-content
6
- .error-img(style='background-image: url(' + url_for(theme.errorpage.img) + ')')
6
+ .error-img(style=`background-image: url(${url_for(theme.errorpage.img)})`)
7
7
  .error-info
8
8
  h1.error_title 404
9
9
  .error_subtitle= theme.errorpage.text
10
10
  a.button--animated(href="/")
11
11
  i.scoicon.sco-external-link
12
- | 回到主页
12
+ =_p('404.button')
13
13
 
14
14
  if theme.errorpage.recommendList
15
15
  .aside-list