hexo-theme-volantis 5.0.0-rc.2 → 5.0.0-rc.5

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 (89) hide show
  1. package/README.md +2 -0
  2. package/_config.yml +83 -117
  3. package/layout/_meta/counter.ejs +2 -22
  4. package/layout/_partial/_cover/search.ejs +1 -1
  5. package/layout/_partial/archive.ejs +2 -2
  6. package/layout/_partial/article.ejs +4 -4
  7. package/layout/_partial/categories.ejs +1 -1
  8. package/layout/_partial/footer.ejs +1 -1
  9. package/layout/_partial/head.ejs +8 -9
  10. package/layout/_partial/header.ejs +5 -5
  11. package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +12 -6
  12. package/layout/_partial/scripts/global.ejs +57 -15
  13. package/layout/_plugins/_page_plugins/fcircle/index.ejs +9 -223
  14. package/layout/_plugins/aplayer/script.ejs +2 -2
  15. package/layout/_plugins/comments/artalk/script.ejs +1 -1
  16. package/layout/_plugins/comments/disqus/script.ejs +1 -1
  17. package/layout/_plugins/comments/livere/script.ejs +1 -1
  18. package/layout/_plugins/comments/twikoo/script.ejs +1 -1
  19. package/layout/_plugins/comments/waline/script.ejs +1 -1
  20. package/layout/_plugins/parallax/script.ejs +8 -4
  21. package/layout/_plugins/pjax/index.ejs +1 -1
  22. package/layout/_plugins/search/script.ejs +4 -0
  23. package/layout/_widget/webinfo.ejs +4 -4
  24. package/layout/archive.ejs +1 -1
  25. package/layout/category.ejs +1 -1
  26. package/layout/friends.ejs +1 -1
  27. package/layout/layout.ejs +1 -1
  28. package/package.json +1 -1
  29. package/scripts/events/lib/config.js +1 -1
  30. package/scripts/filters/CSP.js +71 -0
  31. package/scripts/tags/contributors.js +1 -1
  32. package/scripts/tags/friends.js +1 -1
  33. package/scripts/tags/site.js +2 -2
  34. package/source/css/_style/_layout/main.styl +2 -0
  35. package/source/css/_style/_layout/sidebar.styl +0 -1
  36. package/source/css/_style/_plugins/_dark/dark_async.styl +0 -9
  37. package/source/css/_style/_plugins/_dark/dark_plugins.styl +5 -38
  38. package/source/css/_style/_plugins/fontcolor.styl +5 -0
  39. package/source/css/_style/_tag-plugins/Readme.md +0 -3
  40. package/source/css/_style/index.styl +1 -2
  41. package/source/js/app.js +40 -40
  42. package/source/js/plugins/aplayer.js +1 -1
  43. package/source/js/plugins/contributors.js +2 -2
  44. package/source/js/plugins/friends.js +2 -2
  45. package/source/js/plugins/rightMenu.js +40 -42
  46. package/source/js/plugins/sites.js +4 -4
  47. package/source/js/search/hexo.js +2 -2
  48. package/source/libs/@fortawesome/fontawesome-free/LICENSE.txt +135 -4
  49. package/source/libs/@fortawesome/fontawesome-free/css/all.min.css +3 -2
  50. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  51. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  52. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  53. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  54. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  55. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  56. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  57. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  58. package/source/libs/@fortawesome/fontawesome-pro/LICENSE.txt +18 -0
  59. package/source/libs/@fortawesome/fontawesome-pro/css/all.min.css +6 -0
  60. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-brands-400.ttf +0 -0
  61. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-brands-400.woff2 +0 -0
  62. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-duotone-900.ttf +0 -0
  63. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-duotone-900.woff2 +0 -0
  64. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-light-300.ttf +0 -0
  65. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-light-300.woff2 +0 -0
  66. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-regular-400.ttf +0 -0
  67. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-regular-400.woff2 +0 -0
  68. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-solid-900.ttf +0 -0
  69. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-solid-900.woff2 +0 -0
  70. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-thin-100.ttf +0 -0
  71. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-thin-100.woff2 +0 -0
  72. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-v4compatibility.ttf +0 -0
  73. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-v4compatibility.woff2 +0 -0
  74. package/layout/_meta/valinecount.ejs +0 -15
  75. package/layout/_plugins/_page_plugins/hpptalk/index.ejs +0 -14
  76. package/layout/_plugins/comments/minivaline/script.ejs +0 -45
  77. package/layout/_plugins/comments/valine/script.ejs +0 -53
  78. package/scripts/helpers/tag-plugins-style/index.js +0 -199
  79. package/source/css/_style/_plugins/valine.styl +0 -183
  80. package/source/js/thirdparty/valine.js +0 -5137
  81. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
  82. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg +0 -3637
  83. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
  84. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
  85. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg +0 -805
  86. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
  87. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
  88. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg +0 -5015
  89. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
package/README.md CHANGED
@@ -31,6 +31,8 @@ npm i hexo-theme-volantis
31
31
 
32
32
  See docs: https://volantis.js.org
33
33
 
34
+ or: https://vlts.cc
35
+
34
36
  or: https://volantis.vercel.app
35
37
 
36
38
  ## Examples
package/_config.yml CHANGED
@@ -18,27 +18,56 @@ default:
18
18
  ############################### Volantis ###############################
19
19
  info:
20
20
  theme_name: Volantis # This is theme's name.
21
- theme_version: '5.0.0-rc.2' # This is theme's version.
21
+ theme_version: '5.0.0-rc.5' # This is theme's version.
22
22
  theme_docs: https://volantis.js.org/ # This is theme's URL.
23
23
  theme_repo: https://github.com/volantis-x/hexo-theme-volantis
24
24
  # Debug 调试模式
25
25
  debug: false
26
+ ############################### CSP ###############################
27
+ # 内容安全策略( CSP )
28
+ # https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP
29
+ # https://content-security-policy.com/
30
+ csp:
31
+ content: "
32
+ default-src 'self' https:;
33
+ block-all-mixed-content;
34
+ base-uri 'self' https:;
35
+ form-action 'self' https:;
36
+ worker-src 'self' https:;
37
+ connect-src 'self' https: *;
38
+ img-src 'self' data: https: *;
39
+ media-src 'self' https: *;
40
+ font-src 'self' data: https: *;
41
+ frame-src 'self' https: *;
42
+ manifest-src 'self' https: *;
43
+ child-src https:;
44
+ script-src 'self' https: 'unsafe-inline' *;
45
+ style-src 'self' https: 'unsafe-inline' *;
46
+ "
47
+ # 可以使用自动程序替换默认的 'unsafe-inline' 和 * 生成更严格的内容安全策略.
48
+ # hexo_fliter_sha256 用于 hexo g 时替换 'unsafe-inline' 生成 script-src 'sha256-' , 只适用于外层不含有压缩工具得场景.
49
+ # 如果外层含有压缩工具会改变 hash 导致无效,hexo_fliter_sha256 需设为false, 使用 gulp 方案.
50
+ hexo_fliter_sha256: false
51
+ # 另可以参考官网的 gulp 方案.
52
+ # gulpfile.js https://github.com/volantis-x/community/blob/main/gulpfile.js
26
53
  ############################### CDN ###############################
27
54
  # 本地静态文件使用jsdelivr的min版本加速 https://www.jsdelivr.com/features
28
55
  # 默认使用 https://cdn.jsdelivr.net/npm/hexo-theme-volantis@<%- theme.info.theme_version %>/source/js/*.min.js 的CDN压缩版本(min.js),注意版本号对应关系!!可以通过修改以下配置项覆盖
29
56
  # 开发者注意 cdn.enable 设置为 false
30
57
  cdn:
31
- enable: true
58
+ enable: false
32
59
  # CDN 前缀,为空使用默认值,链接最后不加 "/",
33
60
  # 例如: https://cdn.jsdelivr.net/gh/volantis-x/volantis-x.github.io@gh-page 填写最后编译生成的源码CDN地址前缀,此路径下应该含有/js与/css目录,
34
61
  # 该配置默认值是:"https://cdn.jsdelivr.net/npm/hexo-theme-volantis@"+ theme.info.theme_version +"/source"
35
- prefix: https://npm.elemecdn.com/hexo-theme-volantis@5.0.0-rc.2/source
62
+ prefix: https://npm.elemecdn.com/hexo-theme-volantis@5.0.0-rc.5/source
36
63
  # 以下配置可以覆盖 cdn.prefix,配置项的值可以为空,但是要使用CDN必须依据路径填写配置项的键
37
64
  set:
38
65
  js:
39
66
  app: /js/app.js
40
67
  css:
41
68
  style: /css/style.css # (异步加载样式)
69
+ # 请求静态资源添加时间戳 ?time=1648684470140
70
+ cdn_version: true
42
71
  ########################################################################
43
72
  # 全局页面字符串替换 A => B (可用于临时修改错字等)
44
73
  replace:
@@ -57,22 +86,22 @@ navbar:
57
86
  title:
58
87
  menu:
59
88
  - name: 博客
60
- icon: fas fa-rss
89
+ icon: fa-solid fa-rss
61
90
  url: /
62
91
  - name: 分类
63
- icon: fas fa-folder-open
92
+ icon: fa-solid fa-folder-open
64
93
  url: categories/
65
94
  - name: 标签
66
- icon: fas fa-tags
95
+ icon: fa-solid fa-tags
67
96
  url: tags/
68
97
  - name: 归档
69
- icon: fas fa-archive
98
+ icon: fa-solid fa-archive
70
99
  url: archives/
71
100
  - name: 友链
72
- icon: fas fa-link
101
+ icon: fa-solid fa-link
73
102
  url: friends/
74
103
  - name: 关于
75
- icon: fas fa-info-circle
104
+ icon: fa-solid fa-info-circle
76
105
  url: about/
77
106
  search: Search... # Search bar placeholder
78
107
  ############################### Navigation Bar ############################### > end
@@ -156,7 +185,7 @@ article:
156
185
  # 参考资料、相关资料等 (for layout: post/docs)
157
186
  references:
158
187
  title: 参考资料
159
- icon: fas fa-quote-left
188
+ icon: fa-solid fa-quote-left
160
189
  # 在 front-matter 中:
161
190
  # references:
162
191
  # - title: 某篇文章
@@ -168,7 +197,7 @@ article:
168
197
  related_posts:
169
198
  enable: false
170
199
  title: 相关文章
171
- icon: fas fa-bookmark
200
+ icon: fa-solid fa-bookmark
172
201
  max_count: 5
173
202
  # 设为空则不使用文章头图
174
203
  placeholder_img: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
@@ -200,35 +229,32 @@ article:
200
229
  url: /
201
230
  # 文章创建日期
202
231
  date:
203
- icon: fas fa-calendar-alt
232
+ icon: fa-solid fa-calendar-alt
204
233
  title: '发布于:'
205
234
  format: 'll' # 日期格式 http://momentjs.com/docs/
206
235
  # 文章更新日期
207
236
  updated:
208
- icon: fas fa-edit
237
+ icon: fa-solid fa-edit
209
238
  title: '更新于:'
210
239
  format: 'll' # 日期格式 http://momentjs.com/docs/
211
240
  # 文章分类
212
241
  category:
213
- icon: fas fa-folder-open
242
+ icon: fa-solid fa-folder-open
214
243
  # 文章浏览计数
215
244
  counter:
216
- icon: fas fa-eye
245
+ icon: fa-solid fa-eye
217
246
  unit: '次浏览'
218
- # 文章评论数量:支持 valine和waline
219
- valinecount:
220
- icon: fas fa-comment-dots
221
- desc: '' # 条评论
247
+ # waline 文章评论数量
222
248
  walinecount:
223
- icon: fas fa-comment-dots
249
+ icon: fa-solid fa-comment-dots
224
250
  desc: '' # 条评论
225
251
  # 文章字数和阅读时长
226
252
  wordcount:
227
- icon_wordcount: fas fa-keyboard
228
- icon_duration: fas fa-hourglass-half
253
+ icon_wordcount: fa-solid fa-keyboard
254
+ icon_duration: fa-solid fa-hourglass-half
229
255
  # 文章标签
230
256
  tags:
231
- icon: fas fa-hashtag
257
+ icon: fa-solid fa-hashtag
232
258
  # 分享
233
259
  share:
234
260
  - id: qq
@@ -246,7 +272,7 @@ article:
246
272
 
247
273
  ############################### Comments ############################### > start
248
274
  comments:
249
- title: <i class='fas fa-comments'></i> 评论
275
+ title: <i class='fa-solid fa-comments'></i> 评论
250
276
  subtitle:
251
277
  service: giscus
252
278
  # 可选评论系统 #
@@ -273,9 +299,6 @@ comments:
273
299
  # https://giscus.app
274
300
  # https://github.com/laymonage/giscus
275
301
  giscus:
276
- theme:
277
- light: https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/light.css
278
- dark: https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/dark.css
279
302
  # 以下配置按照 yml 格式增删填写即可
280
303
  # repo: xxx/xxx
281
304
  # repo-id: xxx
@@ -284,6 +307,11 @@ comments:
284
307
  # mapping: "pathname"
285
308
  # reactions-enabled: "1"
286
309
  # emit-metadata: "0"
310
+ # lang: "zh-CN"
311
+ # 以上配置按照 yml 格式增删填写即可
312
+ theme:
313
+ light: "light" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/light.css
314
+ dark: "dark" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/dark.css
287
315
 
288
316
  # beaudar
289
317
  # https://beaudar.lipk.org/
@@ -310,36 +338,6 @@ comments:
310
338
  dark: github-dark
311
339
  label: ✨💬✨
312
340
 
313
- # Valine
314
- # https://valine.js.org/
315
- valine:
316
- js: https://cdn.jsdelivr.net/npm/valine@1.4/dist/Valine.min.js
317
- emojiCDN: https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/valine/
318
- path: # 全局评论地址 目前设置全局评论地址后visitor失效,这是valine的问题
319
- placeholder: 快来评论吧~ # 评论占位提示
320
- # 其他配置项按照yml格式继续填写即可 除了 [el path placeholder emojiCDN emojiMaps] 选项
321
- appId: # your appId
322
- appKey: # your appKey
323
- meta: [nick,mail,link] # valine comment header info
324
- requiredFields: [nick,mail]
325
- enableQQ: true # Unstable avatar link
326
- recordIP: false # Record commenter IP
327
- avatar: robohash # gravatar style https://valine.js.org/avatar
328
- pageSize: 10 # comment list page size
329
- lang: zh-cn
330
- highlight: true
331
- mathJax: false
332
-
333
- # MiniValine
334
- # https://github.com/MiniValine/MiniValine
335
- minivaline:
336
- js: https://cdn.jsdelivr.net/npm/minivaline@latest
337
- path: # 全局评论地址
338
- placeholder: 快来评论吧~ # 全局评论占位提示
339
- # 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el path placeholder] 选项)
340
- # 下面是一个例子:
341
- serverURL: https://hello.com
342
-
343
341
  # Disqus
344
342
  # https://disqus.com
345
343
  disqus:
@@ -414,7 +412,7 @@ comments:
414
412
  # Waline
415
413
  # https://waline.js.org/
416
414
  waline:
417
- js: https://cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js
415
+ js: https://npm.elemecdn.com/@waline/client@1.6.0/dist/Waline.min.js
418
416
  path: # 全局评论地址 目前设置全局评论地址后visitor失效,这是waline的问题
419
417
  placeholder: 快来评论吧~ # 评论占位提示
420
418
  # imageHosting: https://7bu.top/api/upload?token=7ffe9d626fe4315c953758efbdb6ee2e # 图床api(默认注释使用base64)
@@ -452,13 +450,13 @@ sidebar:
452
450
  subtitle:
453
451
  jinrishici: true # Poetry Today. You can set a string, and it will be displayed when loading fails.
454
452
  social:
455
- - icon: fas fa-rss
453
+ - icon: fa-solid fa-rss
456
454
  url: /atom.xml
457
- - icon: fas fa-envelope
455
+ - icon: fa-solid fa-envelope
458
456
  url: mailto:me@xxx.com
459
457
  - icon: fab fa-github
460
458
  url: https://github.com/volantis-x/
461
- - icon: fas fa-headphones-alt
459
+ - icon: fa-solid fa-headphones-alt
462
460
  url: /
463
461
  # ---------------------------------------
464
462
  # toc widget (valid only in articles)
@@ -466,7 +464,7 @@ sidebar:
466
464
  class: toc
467
465
  display: [desktop, mobile] # [desktop, mobile]
468
466
  header:
469
- icon: fas fa-list
467
+ icon: fa-solid fa-list
470
468
  title: 本文目录
471
469
  list_number: false
472
470
  min_depth: 2
@@ -483,7 +481,7 @@ sidebar:
483
481
  class: category
484
482
  display: [desktop] # [desktop, mobile]
485
483
  header:
486
- icon: fas fa-folder-open
484
+ icon: fa-solid fa-folder-open
487
485
  title: 文章分类
488
486
  url: /blog/categories/
489
487
  # ---------------------------------------
@@ -492,7 +490,7 @@ sidebar:
492
490
  class: tagcloud
493
491
  display: [desktop, mobile] # [desktop, mobile]
494
492
  header:
495
- icon: fas fa-tags
493
+ icon: fa-solid fa-tags
496
494
  title: 热门标签
497
495
  url: /blog/tags/
498
496
  min_font: 14
@@ -515,7 +513,7 @@ sidebar:
515
513
  class: webinfo
516
514
  display: [desktop]
517
515
  header:
518
- icon: fas fa-award
516
+ icon: fa-solid fa-award
519
517
  title: 站点信息
520
518
  type:
521
519
  article:
@@ -552,7 +550,7 @@ sidebar:
552
550
  class: lastupdate
553
551
  display: [desktop, mobile]
554
552
  header:
555
- icon: fas fa-clock WISTERIA
553
+ icon: fa-solid fa-clock WISTERIA
556
554
  title: 最近更新
557
555
  ############################### Sidebar ############################### > end
558
556
 
@@ -564,7 +562,7 @@ tag_plugins:
564
562
  note: # style for default note:
565
563
  icon: '\f054'
566
564
  color: ''
567
- iconfont: 'Font Awesome 5 Free'
565
+ iconfont: 'Font Awesome 6 Free'
568
566
  # {% checkbox %}
569
567
  checkbox:
570
568
  interactive: false # enable interactive for user
@@ -580,7 +578,7 @@ site_footer:
580
578
  # layout of footer: [aplayer, social, license, info, copyright]
581
579
  layout: [aplayer, social, license, analytics, info, copyright]
582
580
  social:
583
- - icon: #fas fa-rss
581
+ - icon: #fa-solid fa-rss
584
582
  url:
585
583
  # or
586
584
  - img:
@@ -592,10 +590,10 @@ site_footer:
592
590
  source: https://github.com/volantis-x/volantis-docs/
593
591
  # analytics using leancloud
594
592
  analytics: >
595
- <span id="lc-sv">本站总访问量为 <span id='number'><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
596
- <span id="lc-uv">访客数为 <span id='number'><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 人</span>
593
+ <span id="lc-sv">本站总访问量为 <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
594
+ <span id="lc-uv">访客数为 <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 人</span>
597
595
  # site copyright
598
- copyright: '[Copyright © 2017-2020 XXX](/)'
596
+ copyright: '[Copyright © since 2017 XXX](/)'
599
597
  # You can add your own property here. (Support markdown, for example: br: '<br>')
600
598
  br: '<br>'
601
599
  ############################### Site Footer ############################### > end
@@ -606,8 +604,8 @@ plugins:
606
604
  # jquery
607
605
  globalJquery: false # 全局引入 jquery
608
606
  jquery: /libs/jquery/dist/jquery.min.js # https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js
609
- # fontawesome Pro 版本:https://cdn.jsdelivr.net/gh/inkss/fontawesome@5.15.3/css/all.min.css
610
- fontawesome: /libs/@fortawesome/fontawesome-free/css/all.min.css # https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.14/css/all.min.css
607
+ # fontawesome Pro 版本:https://cdn.jsdelivr.net/gh/inkss/fontawesome@6.0.0/css/all.min.css
608
+ fontawesome: /libs/@fortawesome/fontawesome-free/css/all.min.css # https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1/css/all.min.css
611
609
  # katex@0.15.2
612
610
  katex:
613
611
  js: /libs/katex/katex.min.js # https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.js
@@ -701,7 +699,8 @@ plugins:
701
699
  css: /libs/node-waves/dist/waves.min.css # https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.css
702
700
  js: /libs/node-waves/dist/waves.min.js # https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.js
703
701
 
704
- # fontawesome animation
702
+ # fontawesome V6: https://fontawesome.com/docs/web/style/animate
703
+ # fontawesome animation for fontawesome V5
705
704
  fontawesome_animation:
706
705
  enable: #true
707
706
  css: /libs/font-awesome-animation/font-awesome-animation.min.css # https://cdn.jsdelivr.net/gh/l-lin/font-awesome-animation/dist/font-awesome-animation.min.css
@@ -780,7 +779,7 @@ plugins:
780
779
  # 暗黑模式 darkmode
781
780
  # 开关按钮:在 navbar.menu 中添加:
782
781
  # - name: 暗黑模式 # 可自定义
783
- # icon: fas fa-moon # 可自定义
782
+ # icon: fa-solid fa-moon # 可自定义
784
783
  # toggle: darkmode
785
784
  darkmode:
786
785
  enable: #true
@@ -829,44 +828,23 @@ plugins:
829
828
  appKey: HwCiWuxfpvKiLm4teCUgTIba # your appKEY
830
829
  serverURLs: https://bbapi.heson10.com # Request Api 域名
831
830
 
832
- # HexoPlusPlus
833
- # https://github.com/HexoPlusPlus/HexoPlusPlus
834
- # https://hexoplusplus.js.org/
835
- # 无服务器Hexo后端,支持文章编辑,自带图床功能.目标:解决静态博客所有痛点[文章编辑、图片上传、博主活跃信息统计、博主说说、Twikoo加强版、阅读量统计等
836
- hpp:
837
- # 说说功能
838
- # Set `plugins: ["hpptalk"]` to enable in front-matter
839
- # 支持 Pjax
840
- hpp_talk:
841
- css: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@latest/talk.css # 建议锁定版本
842
- js: https://cdn.jsdelivr.net/gh/HexoPlusPlus/HexoPlusPlus@latest/talk_user.js # 建议锁定版本
843
- limit: 10
844
- start: 0
845
- # 配置项按照yml格式继续填写即可
846
- # domain:
847
- # themecss:
848
- # HexoPlusPlus其他功能暂未集成
849
-
850
831
  # 友链朋友圈 hexo-circle-of-friends
851
832
  # https://github.com/Rock-Candy-Tea/hexo-circle-of-friends
852
- # https://zfe.space/post/friend-link-circle.html
833
+ # https://fcircle-doc.js.cool/
853
834
  fcircle:
854
835
  # Set `plugins: ["fcircle"]` to enable in front-matter
855
836
  # 支持 Pjax
856
837
  api: '' # api 地址
857
- max_number: 20 # 页面展示文章数量
858
- add_number: 10 # 每次加载增加的篇数
859
- opentype: '_blank' # '_blank'打开新标签,'_self'本窗口打开
860
- nofollow: true # 禁止搜索引擎抓取
861
- imgError: https://cdn.jsdelivr.net/gh/Zfour/Butterfly-friend-poor-html/friendcircle/404.png
862
- # loadingCutom: # 自定义loading图 例如: <i class="fa fa-spinner fa-spin"></i> | <img src="你的图片地址" alt="加载中...">
838
+ message: '与主机通讯中……' # 占位文字
839
+ css: 'https://cdn.jsdelivr.net/gh/lmm214/immmmm/themes/hello-friend/static/fcircle-beta.css'
840
+ js: 'https://cdn.jsdelivr.net/gh/lmm214/immmmm/themes/hello-friend/static/fcircle-beta.js'
863
841
 
864
842
  # 消息提示
865
843
  message:
866
844
  enable: true
867
845
  icon: # 默认图标,支持对图标添加颜色,可选值:see:/source/css/_style/_plugins/fontcolor.styl
868
- default: fas fa-info-circle light-blue
869
- quection: fas fa-question-circle light-blue
846
+ default: fa-solid fa-info-circle light-blue
847
+ quection: fa-solid fa-question-circle light-blue
870
848
  time: # 默认持续时间
871
849
  default: 5000
872
850
  quection: 20000
@@ -884,22 +862,11 @@ plugins:
884
862
  icon: 'far fa-copyright light-blue'
885
863
  aplayer: # 是否开启音乐通知;播放、暂停、失败 时的图标
886
864
  enable: true
887
- play: fas fa-play
888
- pause: fas fa-pause
865
+ play: fa-solid fa-play
866
+ pause: fa-solid fa-pause
889
867
  rightmenu:
890
868
  enable: true # 是否开启右键模块的消息通知
891
869
  notice: true # 唤醒原右键菜单的通知
892
-
893
- # 标签插件样式按需加载
894
- # 注意这个配置是带缓存的, 如果修改标签插件样式每次调试需要刷新两次页面, 建议开发者关闭该配置
895
- tag_plugin_load_on_demand:
896
- enable: #true
897
- # 每个页面强制加载以下标签插件样式
898
- plugins:
899
- - note
900
- - btns
901
- - p
902
- - gallery
903
870
 
904
871
  # 聊天功能
905
872
  chat_service: # tidio or gitter
@@ -927,14 +894,13 @@ plugins:
927
894
  # 自定义右键菜单
928
895
  rightmenu:
929
896
  enable: true
930
- faicon: fa # 公共图标类型 fa fal fas fad
897
+ faicon: fa # 公共图标类型 fa fal fa-solid fa-duotone
931
898
  # hr: 分割线, music: 音乐控制器
932
899
  layout: [home, hr, help, examples, contributors, hr, source_docs, source_theme, hr, print, darkmode, reading, music]
933
900
  ### 可选功能项 ###
934
901
  print: # 只有文章页才允许自定义打印
935
902
  name: 打印页面
936
903
  icon: fa fa-print
937
- defaultStyles: true # 是否使用预制的打印样式
938
904
  darkmode: # 需开启 plugins.darkmodejs
939
905
  name: 暗黑模式
940
906
  icon: fa fa-moon
@@ -9,7 +9,7 @@
9
9
  %>
10
10
  <div id="lc-pv" data-title="<%- post.title || page.title %>" data-path="<%- url_for(path) %>">
11
11
  <i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
12
- <span id='number'><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
12
+ <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
13
13
  <%- theme.article.body.meta_library.counter.unit %>
14
14
  </div>
15
15
  </a>
@@ -20,32 +20,12 @@
20
20
  <i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
21
21
  <p>
22
22
  <span id="busuanzi_value_page_pv">
23
- <i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
23
+ <i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
24
24
  </span>
25
25
  <%- theme.article.body.meta_library.counter.unit %>
26
26
  </p>
27
27
  </a>
28
28
  </div>
29
- <% } else if (
30
- (theme.comments.service=='valine' && theme.comments.valine.visitor) ||
31
- (theme.comments.service=='minivaline' && theme.comments.minivaline.visitor) ||
32
- (theme.comments.service=='waline' && theme.comments.waline.visitor)) { %>
33
- <div class="new-meta-item browse">
34
- <a class='notlink'>
35
- <i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
36
- <%
37
- var path = post.path || page.path;
38
- if (path.length > 9 && (path.substring(path.length - 10) == 'index.html')) {
39
- path = path.substring(0, path.length - 10);
40
- }
41
- %>
42
- <span id="<%- url_for(path) %>" class="leancloud_visitors" data-flag-title="<%- post.title || page.title %>">
43
- <p>
44
- <span class="leancloud-visitors-count"></span>
45
- </p>
46
- </span>
47
- </a>
48
- </div>
49
29
  <% } else if (theme.comments.service=='twikoo' && !!page.comments) { %>
50
30
  <div class="new-meta-item browse">
51
31
  <a class='notlink'>
@@ -15,7 +15,7 @@
15
15
  <div class="m_search">
16
16
  <form name="searchform" class="form u-search-form">
17
17
  <input type="text" class="input u-search-input" placeholder="<%- theme.cover && theme.cover.search %>" />
18
- <i class="icon fas fa-search fa-fw"></i>
18
+ <i class="icon fa-solid fa-search fa-fw"></i>
19
19
  </form>
20
20
  </div>
21
21
  <% } %>
@@ -47,7 +47,7 @@
47
47
  <% if (page.prev != 0) { %>
48
48
  <a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>">
49
49
  <section class="post prev white-box <%- theme.custom_css.body.effect.join(' ') %>" >
50
- <i class="fas fa-chevron-left" aria-hidden="true"></i>&nbsp;<%- __('post.prev_page') %>&nbsp;
50
+ <i class="fa-solid fa-chevron-left" aria-hidden="true"></i>&nbsp;<%- __('post.prev_page') %>&nbsp;
51
51
  </section>
52
52
  </a>
53
53
  <% } %>
@@ -57,7 +57,7 @@
57
57
  <% if (page.next != 0) { %>
58
58
  <a class="next" rel="next" href="<%= url_for(page.next_link) %>">
59
59
  <section class="post next white-box <%- theme.custom_css.body.effect.join(' ') %>">
60
- &nbsp;<%- __('post.next_page') %>&nbsp;<i class="fas fa-chevron-right" aria-hidden="true"></i>
60
+ &nbsp;<%- __('post.next_page') %>&nbsp;<i class="fa-solid fa-chevron-right" aria-hidden="true"></i>
61
61
  </section>
62
62
  </a>
63
63
  <% } %>
@@ -96,13 +96,13 @@
96
96
  <div class="prev-next">
97
97
  <% if (prev.path) { %>
98
98
  <a class='prev' href='<%- url_for(prev.path) %>'>
99
- <p class='title'><i class="fas fa-chevron-left" aria-hidden="true"></i><%- prev.title || '' %></p>
99
+ <p class='title'><i class="fa-solid fa-chevron-left" aria-hidden="true"></i><%- prev.title || '' %></p>
100
100
  <p class='content'><%- prev.exp %></p>
101
101
  </a>
102
102
  <% } %>
103
103
  <% if (next.path) { %>
104
104
  <a class='next' href='<%- url_for(next.path) %>'>
105
- <p class='title'><%- next.title || '' %><i class="fas fa-chevron-right" aria-hidden="true"></i></p>
105
+ <p class='title'><%- next.title || '' %><i class="fa-solid fa-chevron-right" aria-hidden="true"></i></p>
106
106
  <p class='content'><%- next.exp %></p>
107
107
  </a>
108
108
  <% } %>
@@ -114,13 +114,13 @@
114
114
  <div class="prev-next">
115
115
  <% if (post.prev) { %>
116
116
  <a class='prev' href='<%- url_for(post.prev.path) %>'>
117
- <p class='title'><i class="fas fa-chevron-left" aria-hidden="true"></i><%- post.prev.title || '' %></p>
117
+ <p class='title'><i class="fa-solid fa-chevron-left" aria-hidden="true"></i><%- post.prev.title || '' %></p>
118
118
  <p class='content'><%- truncate(strip_html(page.prev.content), {length: 100}) %></p>
119
119
  </a>
120
120
  <% } %>
121
121
  <% if (post.next) { %>
122
122
  <a class='next' href='<%- url_for(post.next.path) %>'>
123
- <p class='title'><%- post.next.title || '' %><i class="fas fa-chevron-right" aria-hidden="true"></i></p>
123
+ <p class='title'><%- post.next.title || '' %><i class="fa-solid fa-chevron-right" aria-hidden="true"></i></p>
124
124
  <p class='content'><%- truncate(strip_html(page.next.content), {length: 100}) %></p>
125
125
  </a>
126
126
  <% } %>
@@ -6,6 +6,6 @@
6
6
  });
7
7
  %>
8
8
  <div class='metatag cats'>
9
- <i class="fas fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;<%- cats.join('&nbsp;/&nbsp;') %>
9
+ <i class="fa-solid fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;<%- cats.join('&nbsp;/&nbsp;') %>
10
10
  </div>
11
11
  <% } %>
@@ -41,7 +41,7 @@
41
41
  <%- __('footer.use') %>
42
42
  <a href="https://github.com/volantis-x/hexo-theme-volantis/tree/<%- theme_version %>" target="_blank" class="codename">Volantis</a>
43
43
  <%- __('footer.theme') %><% if (theme.analytics.busuanzi) { %><%- __('symbol.comma') %><%- __('footer.total_views') %>
44
- <span id="busuanzi_value_site_pv"><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
44
+ <span id="busuanzi_value_site_pv"><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
45
45
  <%- __('footer.times') %>
46
46
  <% } %>
47
47
  <% } else if (item == 'source') { %>
@@ -11,6 +11,7 @@
11
11
  <meta name="renderer" content="webkit">
12
12
  <meta name="force-rendering" content="webkit">
13
13
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
14
+ <meta http-equiv="Content-Security-Policy" content="<%- theme.csp.content %>">
14
15
  <meta name="HandheldFriendly" content="True" >
15
16
  <meta name="apple-mobile-web-app-capable" content="yes">
16
17
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
@@ -26,7 +27,13 @@
26
27
  <%- open_graph(theme.open_graph) %>
27
28
  <!-- feed -->
28
29
  <%_ if (config.feed && config.feed.path){ _%>
29
- <%- feed_tag(config.feed.path, {title: config.title}) %>
30
+ <%_ if (typeof(config.feed.path)=="string"){ _%>
31
+ <%- feed_tag(config.feed.path, {title: config.title}) %>
32
+ <%_ }else{ _%>
33
+ <%_ ([...config.feed.path]).forEach(function(item){ _%>
34
+ <%- feed_tag(item, {title: config.title}) %>
35
+ <%_ }) _%>
36
+ <%_ } _%>
30
37
  <%_ } _%>
31
38
  <!-- import meta -->
32
39
  <%_ if (config.import && config.import.meta){ _%>
@@ -48,14 +55,6 @@
48
55
  /* 首屏样式 */
49
56
  <%- FirstCSS() %>
50
57
  </style>
51
- <%_ if (theme.plugins.tag_plugin_load_on_demand.enable) { _%>
52
- <pjax>
53
- <style>
54
- /* 按需加载的标签插件样式 */
55
- <%- TagCSS(page) %>
56
- </style>
57
- </pjax>
58
- <%_ } _%>
59
58
  <link rel="stylesheet" href="<%- theme.cdn.map.css.style %>" media="print" onload="this.media='all';this.onload=null">
60
59
  <noscript><link rel="stylesheet" href="<%- theme.cdn.map.css.style %>"></noscript>
61
60
  <%_ if (theme.plugins.darkmode.enable) { _%>
@@ -4,9 +4,9 @@
4
4
  <div class='nav-sub'>
5
5
  <p class="title"></p>
6
6
  <ul class='switcher nav-list-h m-phone' id="pjax-header-nav-list">
7
- <li><a id="s-comment" class="fas fa-comments fa-fw" target="_self" href="/" onclick="return false;" title="comment"></a></li>
7
+ <li><a id="s-comment" class="fa-solid fa-comments fa-fw" target="_self" href="/" onclick="return false;" title="comment"></a></li>
8
8
  <% if (page.sidebar == undefined || page.sidebar != false) { %>
9
- <li><a id="s-toc" class="s-toc fas fa-list fa-fw" target="_self" href="/" onclick="return false;" title="toc"></a></li>
9
+ <li><a id="s-toc" class="s-toc fa-solid fa-list fa-fw" target="_self" href="/" onclick="return false;" title="toc"></a></li>
10
10
  <% } %>
11
11
  </ul>
12
12
  </div>
@@ -93,7 +93,7 @@
93
93
  <% if (theme.search.enable) { %>
94
94
  <div class="m_search">
95
95
  <form name="searchform" class="form u-search-form">
96
- <i class="icon fas fa-search fa-fw"></i>
96
+ <i class="icon fa-solid fa-search fa-fw"></i>
97
97
  <input type="text" class="input u-search-input" placeholder="<%- theme.navbar && theme.navbar.search %>" />
98
98
  </form>
99
99
  </div>
@@ -101,10 +101,10 @@
101
101
 
102
102
  <ul class='switcher nav-list-h m-phone'>
103
103
  <% if (theme.search.enable === true) { %>
104
- <li><a class="s-search fas fa-search fa-fw" target="_self" href="/" onclick="return false;" title="search"></a></li>
104
+ <li><a class="s-search fa-solid fa-search fa-fw" target="_self" href="/" onclick="return false;" title="search"></a></li>
105
105
  <% } %>
106
106
  <li>
107
- <a class="s-menu fas fa-bars fa-fw" target="_self" href="/" onclick="return false;" title="menu"></a>
107
+ <a class="s-menu fa-solid fa-bars fa-fw" target="_self" href="/" onclick="return false;" title="menu"></a>
108
108
  <ul class="menu-phone list-v navigation white-box">
109
109
  <% menu_list.forEach(function(value){ %>
110
110
  <% menu(value, 'mobile') %>