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

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 (71) hide show
  1. package/_config.yml +44 -42
  2. package/layout/_meta/counter.ejs +2 -2
  3. package/layout/_partial/_cover/search.ejs +1 -1
  4. package/layout/_partial/archive.ejs +2 -2
  5. package/layout/_partial/article.ejs +4 -4
  6. package/layout/_partial/categories.ejs +1 -1
  7. package/layout/_partial/footer.ejs +1 -1
  8. package/layout/_partial/head.ejs +7 -1
  9. package/layout/_partial/header.ejs +5 -5
  10. package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +2 -2
  11. package/layout/_partial/scripts/global.ejs +36 -3
  12. package/layout/_plugins/aplayer/script.ejs +2 -2
  13. package/layout/_plugins/comments/artalk/script.ejs +1 -1
  14. package/layout/_plugins/comments/disqus/script.ejs +1 -1
  15. package/layout/_plugins/comments/livere/script.ejs +1 -1
  16. package/layout/_plugins/comments/minivaline/script.ejs +1 -1
  17. package/layout/_plugins/comments/twikoo/script.ejs +1 -1
  18. package/layout/_plugins/comments/valine/script.ejs +1 -1
  19. package/layout/_plugins/comments/waline/script.ejs +1 -1
  20. package/layout/_plugins/search/script.ejs +4 -0
  21. package/layout/_widget/webinfo.ejs +4 -4
  22. package/layout/archive.ejs +1 -1
  23. package/layout/category.ejs +1 -1
  24. package/layout/friends.ejs +1 -1
  25. package/layout/layout.ejs +1 -1
  26. package/package.json +1 -1
  27. package/scripts/generator/build-config.js +9 -0
  28. package/source/css/_style/_plugins/_dark/dark_plugins.styl +5 -0
  29. package/source/css/_style/_plugins/fontcolor.styl +5 -0
  30. package/source/js/app.js +40 -40
  31. package/source/js/plugins/aplayer.js +1 -1
  32. package/source/js/plugins/contributors.js +1 -1
  33. package/source/js/plugins/friends.js +1 -1
  34. package/source/js/plugins/rightMenu.js +8 -8
  35. package/source/js/plugins/sites.js +2 -2
  36. package/source/js/search/hexo.js +2 -2
  37. package/source/libs/@fortawesome/fontawesome-free/LICENSE.txt +135 -4
  38. package/source/libs/@fortawesome/fontawesome-free/css/all.min.css +3 -2
  39. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  40. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  41. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  42. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  43. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  44. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  45. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  46. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  47. package/source/libs/@fortawesome/fontawesome-pro/LICENSE.txt +18 -0
  48. package/source/libs/@fortawesome/fontawesome-pro/css/all.min.css +6 -0
  49. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-brands-400.ttf +0 -0
  50. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-brands-400.woff2 +0 -0
  51. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-duotone-900.ttf +0 -0
  52. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-duotone-900.woff2 +0 -0
  53. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-light-300.ttf +0 -0
  54. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-light-300.woff2 +0 -0
  55. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-regular-400.ttf +0 -0
  56. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-regular-400.woff2 +0 -0
  57. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-solid-900.ttf +0 -0
  58. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-solid-900.woff2 +0 -0
  59. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-thin-100.ttf +0 -0
  60. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-thin-100.woff2 +0 -0
  61. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-v4compatibility.ttf +0 -0
  62. package/source/libs/@fortawesome/fontawesome-pro/webfonts/fa-v4compatibility.woff2 +0 -0
  63. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
  64. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg +0 -3637
  65. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
  66. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
  67. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg +0 -805
  68. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
  69. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
  70. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg +0 -5015
  71. package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
package/_config.yml CHANGED
@@ -18,7 +18,7 @@ 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.3' # 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 调试模式
@@ -28,11 +28,11 @@ debug: false
28
28
  # 默认使用 https://cdn.jsdelivr.net/npm/hexo-theme-volantis@<%- theme.info.theme_version %>/source/js/*.min.js 的CDN压缩版本(min.js),注意版本号对应关系!!可以通过修改以下配置项覆盖
29
29
  # 开发者注意 cdn.enable 设置为 false
30
30
  cdn:
31
- enable: true
31
+ enable: false
32
32
  # CDN 前缀,为空使用默认值,链接最后不加 "/",
33
33
  # 例如: https://cdn.jsdelivr.net/gh/volantis-x/volantis-x.github.io@gh-page 填写最后编译生成的源码CDN地址前缀,此路径下应该含有/js与/css目录,
34
34
  # 该配置默认值是:"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
35
+ prefix: https://npm.elemecdn.com/hexo-theme-volantis@5.0.0-rc.3/source
36
36
  # 以下配置可以覆盖 cdn.prefix,配置项的值可以为空,但是要使用CDN必须依据路径填写配置项的键
37
37
  set:
38
38
  js:
@@ -57,22 +57,22 @@ navbar:
57
57
  title:
58
58
  menu:
59
59
  - name: 博客
60
- icon: fas fa-rss
60
+ icon: fa-solid fa-rss
61
61
  url: /
62
62
  - name: 分类
63
- icon: fas fa-folder-open
63
+ icon: fa-solid fa-folder-open
64
64
  url: categories/
65
65
  - name: 标签
66
- icon: fas fa-tags
66
+ icon: fa-solid fa-tags
67
67
  url: tags/
68
68
  - name: 归档
69
- icon: fas fa-archive
69
+ icon: fa-solid fa-archive
70
70
  url: archives/
71
71
  - name: 友链
72
- icon: fas fa-link
72
+ icon: fa-solid fa-link
73
73
  url: friends/
74
74
  - name: 关于
75
- icon: fas fa-info-circle
75
+ icon: fa-solid fa-info-circle
76
76
  url: about/
77
77
  search: Search... # Search bar placeholder
78
78
  ############################### Navigation Bar ############################### > end
@@ -156,7 +156,7 @@ article:
156
156
  # 参考资料、相关资料等 (for layout: post/docs)
157
157
  references:
158
158
  title: 参考资料
159
- icon: fas fa-quote-left
159
+ icon: fa-solid fa-quote-left
160
160
  # 在 front-matter 中:
161
161
  # references:
162
162
  # - title: 某篇文章
@@ -168,7 +168,7 @@ article:
168
168
  related_posts:
169
169
  enable: false
170
170
  title: 相关文章
171
- icon: fas fa-bookmark
171
+ icon: fa-solid fa-bookmark
172
172
  max_count: 5
173
173
  # 设为空则不使用文章头图
174
174
  placeholder_img: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
@@ -200,35 +200,35 @@ article:
200
200
  url: /
201
201
  # 文章创建日期
202
202
  date:
203
- icon: fas fa-calendar-alt
203
+ icon: fa-solid fa-calendar-alt
204
204
  title: '发布于:'
205
205
  format: 'll' # 日期格式 http://momentjs.com/docs/
206
206
  # 文章更新日期
207
207
  updated:
208
- icon: fas fa-edit
208
+ icon: fa-solid fa-edit
209
209
  title: '更新于:'
210
210
  format: 'll' # 日期格式 http://momentjs.com/docs/
211
211
  # 文章分类
212
212
  category:
213
- icon: fas fa-folder-open
213
+ icon: fa-solid fa-folder-open
214
214
  # 文章浏览计数
215
215
  counter:
216
- icon: fas fa-eye
216
+ icon: fa-solid fa-eye
217
217
  unit: '次浏览'
218
218
  # 文章评论数量:支持 valine和waline
219
219
  valinecount:
220
- icon: fas fa-comment-dots
220
+ icon: fa-solid fa-comment-dots
221
221
  desc: '' # 条评论
222
222
  walinecount:
223
- icon: fas fa-comment-dots
223
+ icon: fa-solid fa-comment-dots
224
224
  desc: '' # 条评论
225
225
  # 文章字数和阅读时长
226
226
  wordcount:
227
- icon_wordcount: fas fa-keyboard
228
- icon_duration: fas fa-hourglass-half
227
+ icon_wordcount: fa-solid fa-keyboard
228
+ icon_duration: fa-solid fa-hourglass-half
229
229
  # 文章标签
230
230
  tags:
231
- icon: fas fa-hashtag
231
+ icon: fa-solid fa-hashtag
232
232
  # 分享
233
233
  share:
234
234
  - id: qq
@@ -246,7 +246,7 @@ article:
246
246
 
247
247
  ############################### Comments ############################### > start
248
248
  comments:
249
- title: <i class='fas fa-comments'></i> 评论
249
+ title: <i class='fa-solid fa-comments'></i> 评论
250
250
  subtitle:
251
251
  service: giscus
252
252
  # 可选评论系统 #
@@ -274,8 +274,8 @@ comments:
274
274
  # https://github.com/laymonage/giscus
275
275
  giscus:
276
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
277
+ light: "light" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/light.css
278
+ dark: "dark" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/dark.css
279
279
  # 以下配置按照 yml 格式增删填写即可
280
280
  # repo: xxx/xxx
281
281
  # repo-id: xxx
@@ -284,6 +284,7 @@ comments:
284
284
  # mapping: "pathname"
285
285
  # reactions-enabled: "1"
286
286
  # emit-metadata: "0"
287
+ # lang: "zh-CN"
287
288
 
288
289
  # beaudar
289
290
  # https://beaudar.lipk.org/
@@ -452,13 +453,13 @@ sidebar:
452
453
  subtitle:
453
454
  jinrishici: true # Poetry Today. You can set a string, and it will be displayed when loading fails.
454
455
  social:
455
- - icon: fas fa-rss
456
+ - icon: fa-solid fa-rss
456
457
  url: /atom.xml
457
- - icon: fas fa-envelope
458
+ - icon: fa-solid fa-envelope
458
459
  url: mailto:me@xxx.com
459
460
  - icon: fab fa-github
460
461
  url: https://github.com/volantis-x/
461
- - icon: fas fa-headphones-alt
462
+ - icon: fa-solid fa-headphones-alt
462
463
  url: /
463
464
  # ---------------------------------------
464
465
  # toc widget (valid only in articles)
@@ -466,7 +467,7 @@ sidebar:
466
467
  class: toc
467
468
  display: [desktop, mobile] # [desktop, mobile]
468
469
  header:
469
- icon: fas fa-list
470
+ icon: fa-solid fa-list
470
471
  title: 本文目录
471
472
  list_number: false
472
473
  min_depth: 2
@@ -483,7 +484,7 @@ sidebar:
483
484
  class: category
484
485
  display: [desktop] # [desktop, mobile]
485
486
  header:
486
- icon: fas fa-folder-open
487
+ icon: fa-solid fa-folder-open
487
488
  title: 文章分类
488
489
  url: /blog/categories/
489
490
  # ---------------------------------------
@@ -492,7 +493,7 @@ sidebar:
492
493
  class: tagcloud
493
494
  display: [desktop, mobile] # [desktop, mobile]
494
495
  header:
495
- icon: fas fa-tags
496
+ icon: fa-solid fa-tags
496
497
  title: 热门标签
497
498
  url: /blog/tags/
498
499
  min_font: 14
@@ -515,7 +516,7 @@ sidebar:
515
516
  class: webinfo
516
517
  display: [desktop]
517
518
  header:
518
- icon: fas fa-award
519
+ icon: fa-solid fa-award
519
520
  title: 站点信息
520
521
  type:
521
522
  article:
@@ -552,7 +553,7 @@ sidebar:
552
553
  class: lastupdate
553
554
  display: [desktop, mobile]
554
555
  header:
555
- icon: fas fa-clock WISTERIA
556
+ icon: fa-solid fa-clock WISTERIA
556
557
  title: 最近更新
557
558
  ############################### Sidebar ############################### > end
558
559
 
@@ -564,7 +565,7 @@ tag_plugins:
564
565
  note: # style for default note:
565
566
  icon: '\f054'
566
567
  color: ''
567
- iconfont: 'Font Awesome 5 Free'
568
+ iconfont: 'Font Awesome 6 Free'
568
569
  # {% checkbox %}
569
570
  checkbox:
570
571
  interactive: false # enable interactive for user
@@ -580,7 +581,7 @@ site_footer:
580
581
  # layout of footer: [aplayer, social, license, info, copyright]
581
582
  layout: [aplayer, social, license, analytics, info, copyright]
582
583
  social:
583
- - icon: #fas fa-rss
584
+ - icon: #fa-solid fa-rss
584
585
  url:
585
586
  # or
586
587
  - img:
@@ -592,8 +593,8 @@ site_footer:
592
593
  source: https://github.com/volantis-x/volantis-docs/
593
594
  # analytics using leancloud
594
595
  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>
596
+ <span id="lc-sv">本站总访问量为 <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
597
+ <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
598
  # site copyright
598
599
  copyright: '[Copyright © 2017-2020 XXX](/)'
599
600
  # You can add your own property here. (Support markdown, for example: br: '<br>')
@@ -701,7 +702,8 @@ plugins:
701
702
  css: /libs/node-waves/dist/waves.min.css # https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.css
702
703
  js: /libs/node-waves/dist/waves.min.js # https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.js
703
704
 
704
- # fontawesome animation
705
+ # fontawesome V6: https://fontawesome.com/docs/web/style/animate
706
+ # fontawesome animation for fontawesome V5
705
707
  fontawesome_animation:
706
708
  enable: #true
707
709
  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 +782,7 @@ plugins:
780
782
  # 暗黑模式 darkmode
781
783
  # 开关按钮:在 navbar.menu 中添加:
782
784
  # - name: 暗黑模式 # 可自定义
783
- # icon: fas fa-moon # 可自定义
785
+ # icon: fa-solid fa-moon # 可自定义
784
786
  # toggle: darkmode
785
787
  darkmode:
786
788
  enable: #true
@@ -865,8 +867,8 @@ plugins:
865
867
  message:
866
868
  enable: true
867
869
  icon: # 默认图标,支持对图标添加颜色,可选值:see:/source/css/_style/_plugins/fontcolor.styl
868
- default: fas fa-info-circle light-blue
869
- quection: fas fa-question-circle light-blue
870
+ default: fa-solid fa-info-circle light-blue
871
+ quection: fa-solid fa-question-circle light-blue
870
872
  time: # 默认持续时间
871
873
  default: 5000
872
874
  quection: 20000
@@ -884,8 +886,8 @@ plugins:
884
886
  icon: 'far fa-copyright light-blue'
885
887
  aplayer: # 是否开启音乐通知;播放、暂停、失败 时的图标
886
888
  enable: true
887
- play: fas fa-play
888
- pause: fas fa-pause
889
+ play: fa-solid fa-play
890
+ pause: fa-solid fa-pause
889
891
  rightmenu:
890
892
  enable: true # 是否开启右键模块的消息通知
891
893
  notice: true # 唤醒原右键菜单的通知
@@ -927,7 +929,7 @@ plugins:
927
929
  # 自定义右键菜单
928
930
  rightmenu:
929
931
  enable: true
930
- faicon: fa # 公共图标类型 fa fal fas fad
932
+ faicon: fa # 公共图标类型 fa fal fa-solid fa-duotone
931
933
  # hr: 分割线, music: 音乐控制器
932
934
  layout: [home, hr, help, examples, contributors, hr, source_docs, source_theme, hr, print, darkmode, reading, music]
933
935
  ### 可选功能项 ###
@@ -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,7 +20,7 @@
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>
@@ -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') { %>
@@ -26,7 +26,13 @@
26
26
  <%- open_graph(theme.open_graph) %>
27
27
  <!-- feed -->
28
28
  <%_ if (config.feed && config.feed.path){ _%>
29
- <%- feed_tag(config.feed.path, {title: config.title}) %>
29
+ <%_ if (typeof(config.feed.path)=="string"){ _%>
30
+ <%- feed_tag(config.feed.path, {title: config.title}) %>
31
+ <%_ }else{ _%>
32
+ <%_ ([...config.feed.path]).forEach(function(item){ _%>
33
+ <%- feed_tag(item, {title: config.title}) %>
34
+ <%_ }) _%>
35
+ <%_ } _%>
30
36
  <%_ } _%>
31
37
  <!-- import meta -->
32
38
  <%_ if (config.import && config.import.meta){ _%>
@@ -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') %>
@@ -14,7 +14,7 @@
14
14
  theme.cdn.map.css={}
15
15
  theme.cdn.addJS=(name,source,force)=>{
16
16
  if(force){
17
- theme.cdn.map.js[name]=force
17
+ theme.cdn.map.js[name]=force + '?time=' + Date.now()
18
18
  }else{
19
19
  if(!source){
20
20
  source=name
@@ -32,7 +32,7 @@
32
32
  }
33
33
  theme.cdn.addCSS=(name,source,force)=>{
34
34
  if(force){
35
- theme.cdn.map.css[name]=force
35
+ theme.cdn.map.css[name]=force + '?time=' + Date.now()
36
36
  }else{
37
37
  if(!source){
38
38
  source=name
@@ -2,10 +2,43 @@
2
2
  /************这个文件存放不需要重载的全局变量和全局函数*********/
3
3
  window.volantis = {}; // volantis 全局变量
4
4
  volantis.debug = <%- theme.debug %>; // 开启调试模式
5
- volantis.WEBCONFIG = <%- JSON.stringify(config) %>;
6
- volantis.THEMECONFIG = <%- JSON.stringify(theme) %>;
7
- volantis.LASTUPDATE = new Date('<%- new Date() %>');
8
5
  volantis.dom = {}; // 页面Dom see: /source/js/app.js etc.
6
+
7
+ volantis.GLOBAL_CONFIG ={
8
+ cdn: <%- JSON.stringify(theme.cdn.map) %>,
9
+ default: <%- JSON.stringify(theme.default) %>,
10
+ lastupdate: new Date('<%- new Date() %>'),
11
+ sidebar: {
12
+ for_page: <%- JSON.stringify(theme.sidebar.for_page) %>,
13
+ for_post: <%- JSON.stringify(theme.sidebar.for_post) %>,
14
+ webinfo: {
15
+ lastupd: {
16
+ enable: <%- JSON.stringify(theme.sidebar.widget_library.webinfo.type.lastupd.enable) %>,
17
+ friendlyShow: <%- JSON.stringify(theme.sidebar.widget_library.webinfo.type.lastupd.friendlyShow) %>
18
+ },
19
+ runtime: {
20
+ data: <%- JSON.stringify(theme.sidebar.widget_library.webinfo.type.runtime.data) %>,
21
+ unit: <%- JSON.stringify(theme.sidebar.widget_library.webinfo.type.runtime.unit) %>
22
+ }
23
+ }
24
+ },
25
+ plugins: {
26
+ message: <%- JSON.stringify(theme.plugins.message) %>,
27
+ fancybox: <%- JSON.stringify(theme.plugins.fancybox) %>,
28
+ aplayer: {
29
+ id: <%- JSON.stringify(theme.plugins.aplayer.id) %>,
30
+ enable:<%- JSON.stringify(theme.plugins.aplayer.enable) %>
31
+ },
32
+ rightmenu: {
33
+ faicon: <%- JSON.stringify(theme.rightmenu.faicon) %>,
34
+ layout: <%- JSON.stringify(theme.rightmenu.layout) %>,
35
+ music_alwaysShow: <%- JSON.stringify(theme.rightmenu.music.alwaysShow) %>,
36
+ customPicUrl: <%- JSON.stringify(theme.rightmenu.customPicUrl) %>,
37
+ print: <%- JSON.stringify(theme.rightmenu.print.defaultStyles) %>
38
+ }
39
+ }
40
+ }
41
+
9
42
  /******************** volantis.EventListener ********************************/
10
43
  // 事件监听器 see: /source/js/app.js
11
44
  volantis.EventListener = {}
@@ -24,8 +24,8 @@
24
24
  setTimeout(() => {
25
25
  Metings.forEach((item, index) => {
26
26
  const aplayerItem = item.aplayer; if(!aplayerItem) return;
27
- const rightAplayerCheck = volantis.THEMECONFIG.rightmenu.layout.includes('music')
28
- && item.meta.id === volantis.THEMECONFIG.plugins.aplayer.id;
27
+ const rightAplayerCheck = '<%= theme.rightmenu.layout.includes("music") %>' === 'true'
28
+ && item.meta.id === '<%= theme.plugins.aplayer.id %>';
29
29
  if(rightAplayerCheck) RightMenuAplayer.checkAPlayer();
30
30
  if(aplayerItem.events.events.play.every(item => {return item.name !== 'messagePlay'})) {
31
31
  aplayerItem.on('play', function messagePlay() {
@@ -1,5 +1,5 @@
1
1
  <script>
2
- volantis.layoutHelper("comments",`<div id="artalk_container"><i class="fas fa-cog fa-spin fa-fw fa-2x"></i></div>`);
2
+ volantis.layoutHelper("comments",`<div id="artalk_container"><i class="fa-solid fa-cog fa-spin fa-fw fa-2x"></i></div>`);
3
3
  function load_artalk() {
4
4
  if(!document.querySelectorAll("#artalk_container")[0])return;
5
5
  volantis.css("<%- theme.comments.artalk.css %>");
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  volantis.layoutHelper("comments",`<div id="disqus_thread">
3
- <div id="notShowDisqus" style="display: none;text-align: center;"><i class='fas fa-exclamation-triangle'></i>&nbsp;<%- __('post.comments_placeholder', 'Disqus') %></div>
3
+ <div id="notShowDisqus" style="display: none;text-align: center;"><i class='fa-solid fa-exclamation-triangle'></i>&nbsp;<%- __('post.comments_placeholder', 'Disqus') %></div>
4
4
  <div id="load-btns"><a class="load-comments" onclick="needLoadDisqus()"><%- __('post.comments_load', 'Disqus') %></a></div>
5
5
  <div id="loading-comments" style="display: none"><i class="fa fa-cog fa-spin fa-fw fa-2x"></i><br><%- __('post.comments_check', 'Disqus') %></div>
6
6
  </div>
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  volantis.layoutHelper("comments",`<div id="lv-container" data-id="city" data-uid="<%= theme.comments.livere.uid %>">
3
- <noscript><div><i class='fas fa-exclamation-triangle'>&nbsp;<%- __('post.comments_placeholder', 'Livere') %></div></noscript>
3
+ <noscript><div><i class='fa-solid fa-exclamation-triangle'>&nbsp;<%- __('post.comments_placeholder', 'Livere') %></div></noscript>
4
4
  </div>`)
5
5
  </script>
6
6
  <script data-pjax type="text/javascript">
@@ -1,5 +1,5 @@
1
1
  <script>
2
- volantis.layoutHelper("comments",`<div id="minivaline_container"><i class="fas fa-cog fa-spin fa-fw fa-2x"></i></div>`)
2
+ volantis.layoutHelper("comments",`<div id="minivaline_container"><i class="fa-solid fa-cog fa-spin fa-fw fa-2x"></i></div>`)
3
3
  function load_minivaline() {
4
4
  if(!document.querySelector("#minivaline_container"))return;
5
5
  volantis.js("<%- theme.comments.minivaline.js %>", pjax_minivaline)
@@ -1,5 +1,5 @@
1
1
  <script>
2
- volantis.layoutHelper("comments",`<div id="twikoo_container"><i class="fas fa-cog fa-spin fa-fw fa-2x"></i></div>`)
2
+ volantis.layoutHelper("comments",`<div id="twikoo_container"><i class="fa-solid fa-cog fa-spin fa-fw fa-2x"></i></div>`)
3
3
  function load_twikoo() {
4
4
  if(!document.querySelectorAll("#twikoo_container")[0])return;
5
5
  volantis.js("<%- theme.comments.twikoo.js %>", pjax_twikoo)
@@ -1,5 +1,5 @@
1
1
  <script>
2
- volantis.layoutHelper("comments",`<div id="valine_container"><i class="fas fa-cog fa-spin fa-fw fa-2x"></i></div>`)
2
+ volantis.layoutHelper("comments",`<div id="valine_container"><i class="fa-solid fa-cog fa-spin fa-fw fa-2x"></i></div>`)
3
3
  function emoji(path, idx, ext) {
4
4
  return path + "/" + path + "-" + idx + "." + ext;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <script>
2
- volantis.layoutHelper("comments",`<div id="waline"><i class="fas fa-cog fa-spin fa-fw fa-2x"></i></div>`)
2
+ volantis.layoutHelper("comments",`<div id="waline"><i class="fa-solid fa-cog fa-spin fa-fw fa-2x"></i></div>`)
3
3
  function pjax_waline() {
4
4
  if(!document.querySelector("#waline"))return;
5
5
  let pagePlaceholder = pdata.commentPlaceholder || "<%= theme.comments.waline.placeholder %>";
@@ -14,6 +14,10 @@
14
14
  document.querySelectorAll(".input.u-search-input").forEach((e) => {
15
15
  e.removeEventListener("focus", loadSearchService, false);
16
16
  });
17
+
18
+ document.querySelectorAll(".u-search-form").forEach((e) => {
19
+ e.addEventListener("submit", (event)=>{event.preventDefault();}, false);
20
+ });
17
21
  }
18
22
 
19
23
  // 打开并搜索 字符串 s
@@ -29,9 +29,9 @@
29
29
  <div class="webinfo-item">
30
30
  <div><%= item.type.visitcounter.siteuv.text %></div>
31
31
  <% if (item.type.visitcounter.service == "busuanzi") {%>
32
- <div><span id="busuanzi_value_site_uv"><i class="fas fa-fan fa-spin fa-fw" aria-hidden="true"></i></span> <%= item.type.visitcounter.siteuv.unit %></div>
32
+ <div><span id="busuanzi_value_site_uv"><i class="fa-solid fa-fan fa-spin fa-fw" aria-hidden="true"></i></span> <%= item.type.visitcounter.siteuv.unit %></div>
33
33
  <% } else if (item.type.visitcounter.service == "leancloud") { %>
34
- <div><span id="lc-uv"><span id='number'><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span></span> <%= item.type.visitcounter.siteuv.unit %></div>
34
+ <div><span id="lc-uv"><span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span></span> <%= item.type.visitcounter.siteuv.unit %></div>
35
35
  <% } %>
36
36
  </div>
37
37
  <% } %>
@@ -40,9 +40,9 @@
40
40
  <div class="webinfo-item">
41
41
  <div><%= item.type.visitcounter.sitepv.text %></div>
42
42
  <% if (item.type.visitcounter.service == "busuanzi") {%>
43
- <div><span id="busuanzi_value_site_pv"><i class="fas fa-fan fa-spin fa-fw" aria-hidden="true"></i></span> <%= item.type.visitcounter.sitepv.unit %></div>
43
+ <div><span id="busuanzi_value_site_pv"><i class="fa-solid fa-fan fa-spin fa-fw" aria-hidden="true"></i></span> <%= item.type.visitcounter.sitepv.unit %></div>
44
44
  <% } else if (item.type.visitcounter.service == "leancloud") { %>
45
- <div><span id="lc-sv"><span id='number'><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span></span> <%= item.type.visitcounter.sitepv.unit %></div>
45
+ <div><span id="lc-sv"><span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span></span> <%= item.type.visitcounter.sitepv.unit %></div>
46
46
  <% } %>
47
47
  </div>
48
48
  <% } %>
@@ -21,7 +21,7 @@
21
21
  <%= date(post.date, config.date_format) %>
22
22
  <% } %>
23
23
  <% if(theme.plugins.aplayer && theme.plugins.aplayer.enable && post.music && post.music.enable != false){ %>
24
- &nbsp;<i class="fas fa-headphones-alt music" aria-hidden="true"></i>
24
+ &nbsp;<i class="fa-solid fa-headphones-alt music" aria-hidden="true"></i>
25
25
  <% } %>
26
26
  <% if (post.icon) { %>
27
27
  &nbsp;<i class="<%- post.icon %>" aria-hidden="true"></i>
@@ -15,7 +15,7 @@ if (!page.robots) {
15
15
  <% if (site.categories.length){ %>
16
16
  <% site.categories.sort('path').each(function(category){ %>
17
17
  <a class="<%= category.parent ? ' child' : ''%>" href="<%= url_for(category.path) %>">
18
- <span><i class='fas fa-folder-open fa-fw' aria-hidden="true"></i>&nbsp;&nbsp;<%= category.name %></span>
18
+ <span><i class='fa-solid fa-folder-open fa-fw' aria-hidden="true"></i>&nbsp;&nbsp;<%= category.name %></span>
19
19
  <span class="title">
20
20
  (<%- category.posts.length %>)
21
21
  </span>
@@ -29,7 +29,7 @@
29
29
  <% if (item.keywords) { %>
30
30
  <div class='friend-tags-wrapper'>
31
31
  <% (item.keywords||[]).forEach(function(keyword){ %>
32
- <p class="tags"><i class="fas fa-hashtag fa-fw" aria-hidden="true"></i><%= keyword %></p>
32
+ <p class="tags"><i class="fa-solid fa-hashtag fa-fw" aria-hidden="true"></i><%= keyword %></p>
33
33
  <% }) %>
34
34
  </div>
35
35
  <% } %>