hexo-theme-volantis 5.8.1 → 6.0.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 (112) hide show
  1. package/CHANGELOG.md +3 -44
  2. package/_cdn.yml +449 -0
  3. package/_config.yml +155 -157
  4. package/languages/en.yml +9 -10
  5. package/languages/zh-CN.yml +11 -15
  6. package/languages/zh-TW.yml +10 -11
  7. package/layout/_meta/category.ejs +10 -5
  8. package/layout/_meta/counter.ejs +14 -17
  9. package/layout/_meta/tags.ejs +3 -0
  10. package/layout/_meta/walinecount.ejs +1 -1
  11. package/layout/_partial/article.ejs +8 -3
  12. package/layout/_partial/cover.ejs +4 -4
  13. package/layout/_partial/footer.ejs +1 -1
  14. package/layout/_partial/head.ejs +7 -18
  15. package/layout/_partial/header.ejs +6 -6
  16. package/layout/_partial/post.ejs +3 -3
  17. package/layout/_partial/scripts/_ctrl.ejs +43 -2
  18. package/layout/_partial/scripts/config.ejs +69 -0
  19. package/layout/_partial/scripts/global.ejs +137 -60
  20. package/layout/_partial/scripts/index.ejs +16 -23
  21. package/layout/_plugins/_page_plugins/artitalk/index.ejs +1 -1
  22. package/layout/_plugins/_page_plugins/bbtalk/index.ejs +1 -1
  23. package/layout/_plugins/_page_plugins/fcircle/index.ejs +9 -8
  24. package/layout/_plugins/_page_plugins/katex/index.ejs +3 -3
  25. package/layout/_plugins/_page_plugins/mathjax/index.ejs +1 -1
  26. package/layout/_plugins/aplayer/layout.ejs +31 -23
  27. package/layout/_plugins/aplayer/script.ejs +93 -65
  28. package/layout/_plugins/comments/artalk/script.ejs +31 -40
  29. package/layout/_plugins/comments/discuss/script.ejs +1 -1
  30. package/layout/_plugins/comments/disqusjs/script.ejs +2 -2
  31. package/layout/_plugins/comments/gitalk/script.ejs +1 -1
  32. package/layout/_plugins/comments/twikoo/script.ejs +1 -1
  33. package/layout/_plugins/comments/vssue/script.ejs +3 -3
  34. package/layout/_plugins/comments/waline/script.ejs +2 -2
  35. package/layout/_plugins/github-api/script.ejs +3 -3
  36. package/layout/_plugins/lazyload/script.ejs +1 -1
  37. package/layout/_plugins/nodewaves/script.ejs +1 -1
  38. package/layout/_plugins/pace/script.ejs +15 -0
  39. package/layout/_plugins/parallax/script.ejs +1 -1
  40. package/layout/_plugins/pjax/index.ejs +66 -11
  41. package/layout/_plugins/pjax/pdata.ejs +5 -5
  42. package/layout/_plugins/preload/script.ejs +2 -2
  43. package/layout/_plugins/rightmenus/layout.ejs +4 -4
  44. package/layout/_plugins/scrollreveal/script.ejs +2 -2
  45. package/layout/_plugins/search/script.ejs +11 -8
  46. package/layout/_plugins/swiper/script.ejs +2 -2
  47. package/layout/{_partial/scripts/toc.ejs → _plugins/toc/script.ejs} +40 -36
  48. package/layout/_widget/webinfo.ejs +13 -14
  49. package/layout/friends.ejs +2 -2
  50. package/layout/layout.ejs +1 -15
  51. package/package.json +4 -4
  52. package/scripts/events/lib/cdn.js +206 -0
  53. package/scripts/events/lib/check-configuration.js +7 -7
  54. package/scripts/events/lib/check-environment.js +17 -17
  55. package/scripts/events/lib/config.js +0 -24
  56. package/scripts/events/lib/render-stylus.js +5 -5
  57. package/scripts/events/lib/stellar-tag-utils.js +2 -2
  58. package/scripts/filters/hexo-blog-encrypt-callback.js +44 -0
  59. package/scripts/filters/img.js +1 -1
  60. package/scripts/filters/replace.js +3 -3
  61. package/scripts/filters/z-lazyload.js +3 -5
  62. package/scripts/helpers/first-style.js +2 -2
  63. package/scripts/helpers/head/generate_seo.js +11 -9
  64. package/scripts/helpers/head/generate_title__keywords__description.js +19 -6
  65. package/scripts/helpers/related-posts.js +3 -3
  66. package/scripts/helpers/structured-data/lib/blogposting.js +1 -1
  67. package/scripts/helpers/structured-data/lib/breadcrumblist.js +1 -1
  68. package/scripts/helpers/structured-data/lib/config.js +1 -1
  69. package/scripts/helpers/structured-data/lib/website.js +1 -1
  70. package/scripts/helpers//346/226/207/347/253/240/346/216/250/350/215/220.js +184 -0
  71. package/scripts/tags/btn.js +2 -2
  72. package/scripts/tags/btns.js +3 -3
  73. package/scripts/tags/checkbox.js +6 -6
  74. package/scripts/tags/contributors.js +7 -7
  75. package/scripts/tags/dropmenu.js +8 -8
  76. package/scripts/tags/fancybox.js +6 -6
  77. package/scripts/tags/folding.js +5 -5
  78. package/scripts/tags/frame.js +3 -3
  79. package/scripts/tags/friends.js +8 -8
  80. package/scripts/tags/ghcard.js +7 -7
  81. package/scripts/tags/image.js +6 -6
  82. package/scripts/tags/inline-labels.js +6 -6
  83. package/scripts/tags/link.js +5 -5
  84. package/scripts/tags/md.js +4 -4
  85. package/scripts/tags/media.js +5 -5
  86. package/scripts/tags/note.js +12 -12
  87. package/scripts/tags/pandown.js +29 -29
  88. package/scripts/tags/site.js +4 -4
  89. package/scripts/tags/span.js +4 -4
  90. package/scripts/tags/table.js +2 -2
  91. package/scripts/tags/tabs.js +23 -23
  92. package/scripts/tags/timeline.js +5 -5
  93. package/source/css/_first/base_first.styl +1 -1
  94. package/source/css/_style/_layout/article.styl +43 -0
  95. package/source/css/_style/_layout/main.styl +1 -1
  96. package/source/css/_style/_layout/search.styl +206 -14
  97. package/source/css/_style/_plugins/index.styl +1 -3
  98. package/source/js/app.js +133 -160
  99. package/source/js/plugins/parallax.js +1 -1
  100. package/source/js/plugins/rightMenus.js +24 -20
  101. package/source/js/search/algolia.js +239 -0
  102. package/source/js/search/hexo.js +8 -2
  103. package/source/js/search/meilisearch.js +220 -0
  104. package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +0 -127
  105. package/layout/_partial/scripts/_ctrl/coverCtrl.ejs +0 -43
  106. package/layout/_plugins/analytics/LCCounter.ejs +0 -207
  107. package/layout/_plugins/pjax/animate.ejs +0 -31
  108. package/layout/_plugins/rightmenu/layout.ejs +0 -119
  109. package/scripts/helpers/revisioned.js +0 -167
  110. package/source/css/_style/_plugins/pjaxanimate.styl +0 -160
  111. package/source/js/plugins/rightMenu.js +0 -577
  112. /package/layout/{_partial/scripts/content-visibility-scroll-fix.ejs → _plugins/content-visibility/script.ejs} +0 -0
package/_config.yml CHANGED
@@ -1,16 +1,85 @@
1
+
2
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3
+ # 这里是 6.x 分支
4
+ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
+
1
6
  ############################### Volantis ###############################
2
7
  info:
3
8
  theme_name: Volantis # This is theme's name.
4
9
  theme_docs: https://volantis.js.org/ # This is theme's URL.
5
10
  theme_repo: https://github.com/volantis-x/hexo-theme-volantis
6
11
  # Debug 调试模式
7
- debug: env # false: 关闭调试模式, env:环境配置检查, pjax:调试pjax,rightMenus: 调试右键
12
+ debug: env # false: 关闭调试模式, env:环境配置检查, pjax:调试pjax,rightMenus: 调试右键, cdn: 调试 CDN System
8
13
  ############################### 默认占位图 ###############################
9
14
  default:
10
15
  avatar: volantis-static/media/placeholder/avatar/round/3442075.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
11
16
  link: volantis-static/media/placeholder/link/8f277b4ee0ecd.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg
12
17
  cover: volantis-static/media/placeholder/cover/76b86c0226ffd.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg
13
18
  image: volantis-static/media/placeholder/image/2659360.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/image/2659360.svg
19
+
20
+
21
+ ############################### CDN System ###############################
22
+
23
+ cdn_system:
24
+ # CDN 优先级 从高到低排序 写入 priority 列表即表示启用(enable)
25
+ priority: [custom, local, cdnjs, npm, static]
26
+ # ========================================================================
27
+ # cdn数据配置文件见 "theme/_cdn.yml", 可以在 source/_data/cdn.yml 覆盖 theme/_cdn.yml
28
+ # 变量说明:
29
+ # 以下变量只能在 `prefix` 中使用。
30
+ # ${site_root} 站点根目录 一般是 "/"
31
+ # 以下变量只能在 `format` 中使用。
32
+ # ${prefix} CDN 链接前缀
33
+ # ${name} package 名称 见 "theme/_cdn.yml"
34
+ # ${version} package 版本 见 "theme/_cdn.yml"
35
+ # ${file} 文件路径 见 "theme/_cdn.yml"
36
+ # ${min_file} 文件路径 ${file} 后添加 .min. (jsdelivr、cdnjs 官方自带压缩)
37
+ # ${timestamp} Hexo运行时的时间戳(eg:1661246702300), 可用于静态资源版本控制 format: ${prefix}${file}?v=${timestamp}
38
+ system_config:
39
+ # 自定义配置 使用 "theme/_cdn.yml" 中的名称作为配置项的键
40
+ custom:
41
+ busuanzi: https://npm.elemecdn.com/penndu@1.0.0/bsz.js # 杜老师友情赞助
42
+ #volantis_style: /css/style.css
43
+ #volantis_app: /js/app.js
44
+
45
+ # 主题 /js与/css目录 (一般放在本地,可以在此处配置站点CDN),"theme/_cdn.yml" 中以 "volantis_" 开头的名称
46
+ # Tip: 在本配置文件中 匹配以 "volantis-local" 开头的链接路径替换为该格式的前缀开头 prefix
47
+ local:
48
+ # CDN 链接前缀
49
+ prefix: ${site_root}
50
+ # local CDN 格式
51
+ format: ${prefix}${file}
52
+ # npm
53
+ # https://www.npmjs.com/
54
+ # Tip: 在本配置文件中 匹配以 "volantis-npm" 开头的链接路径替换为该格式的前缀开头 prefix
55
+ npm:
56
+ # CDN 链接前缀
57
+ prefix: https://unpkg.com
58
+ # npm CDN 格式
59
+ format: ${prefix}/${name}@${version}/${file}
60
+ # volantis static 静态资源文件 npm 包 CDN 地址
61
+ # https://github.com/volantis-x/volantis-static
62
+ # Tip: 在本配置文件中 匹配以 "volantis-static" 开头的链接路径替换为该格式的前缀开头 prefix
63
+ static:
64
+ # CDN 链接前缀
65
+ prefix: https://unpkg.com/volantis-static@0.0.1660614606622
66
+ # volantis-static CDN 格式
67
+ format: ${prefix}/libs/${name}/${file}
68
+ # cdnjs
69
+ # https://cdnjs.com/
70
+ # Tip: 在本配置文件中 匹配以 "volantis-cdnjs" 开头的链接路径替换为该格式的前缀开头 prefix
71
+ cdnjs:
72
+ # CDN 链接前缀
73
+ prefix: https://cdn.bootcdn.net/ajax/libs
74
+ # cdnjs CDN 格式
75
+ format: ${prefix}/${name}/${version}/${min_file}
76
+ # ========================================================================
77
+
78
+
79
+
80
+
81
+
82
+
14
83
  ############################### CSP ###############################
15
84
  # 内容安全策略( CSP ) meta 标签 http-equiv="Content-Security-Policy"
16
85
  # https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP
@@ -35,31 +104,9 @@ csp:
35
104
  style-src 'self' https: 'unsafe-inline' *;
36
105
  "
37
106
  # 可以使用自动程序替换默认的 'unsafe-inline' 和 * 生成更严格的内容安全策略.
38
- # 另可以参考官网的 gulp 方案.
39
- # gulpfile.js https://github.com/volantis-x/community/blob/main/gulpfile.js
40
- ############################### CDN ###############################
41
- # 本地静态文件使用 CDN 加速
42
- # 默认使用 https://unpkg.com/hexo-theme-volantis@<%- theme.info.theme_version %>/source/js/*.js ,注意版本号对应关系!!可以通过修改以下配置项覆盖
43
- # 开发者注意 cdn.enable 设置为 false
44
- cdn:
45
- enable: false
46
- # CDN 前缀,为空使用默认值,链接最后不加 "/",
47
- # 例如: https://cdn.jsdelivr.net/gh/volantis-x/volantis-x.github.io@gh-page 填写最后编译生成的源码CDN地址前缀,此路径下应该含有/js与/css目录,
48
- # 该配置默认值是:"https://unpkg.com/hexo-theme-volantis@"+ theme.info.theme_version +"/source"
49
- prefix: #https://unpkg.com/hexo-theme-volantis/source
50
- # 以下配置可以覆盖 cdn.prefix,配置项的值可以为空,但是要使用CDN必须依据路径填写配置项的键
51
- set:
52
- js:
53
- #app: /js/app.js
54
- css:
55
- #style: /css/style.css # (异步加载样式)
56
- # 静态资源版本控制
57
- # 本地文件使用文件内容的hash值作为版本号(app.8c1e7c88.js) 其他为时间戳 (?time=1648684470140)
58
- # 建议静态资源设置标头 浏览器缓存一年边缘缓存一个月 cache-control: max-age=86400, s-maxage=31536000 如果有更新记得刷新缓存
59
- cdn_version: false
60
- # volantis static 静态资源文件 npm 包 CDN 地址 (后面加 "/" )
61
- # https://github.com/volantis-x/volantis-static
62
- volantis_static_cdn: https://unpkg.com/volantis-static@0.0.1654736714924/
107
+ # 另可以参考官网之前的 gulp 方案.(CSP Level 3 :Safari 15.4+ Chrome 59+ Firefox 58+ Edge 79+)
108
+ # gulpfile.js https://gist.github.com/MHuiG/e50ce64fd94f641f679a0736fef925e4
109
+
63
110
  ########################################################################
64
111
  # https://web.dev/content-visibility/
65
112
  # https://www.caniuse.com/?search=content-visibility
@@ -74,6 +121,7 @@ replace:
74
121
  # dns-prefetch preconnect x-dns-prefetch-control
75
122
  dns_prefetch:
76
123
  - https://unpkg.com
124
+ - https://cdn.bootcdn.net
77
125
 
78
126
 
79
127
  # 平滑滚动效果
@@ -197,6 +245,21 @@ article:
197
245
  # url: https://
198
246
  # 即可显示此组件。
199
247
  # ----------------
248
+ # 文章推荐 (for layout: post/docs)
249
+ # 推荐算法需要依赖中文分词工具,nodejieba只支持中英文 npm i nodejieba -S
250
+ recommended_article:
251
+ enable: false
252
+ layout: ["post", "docs"]
253
+ title: 推荐阅读
254
+ icon: fa-solid fa-bookmark
255
+ max_count: 6
256
+ placeholder_img: https://gcore.jsdelivr.net/gh/MHG-LAB/cron@gh-pages/bing/bing.jpg
257
+ # 不展示文章推荐
258
+ # front-matter 使用 skip_recommended_article: true 关闭
259
+ # 不在以下文件夹文章中展示文章推荐 根目录是source/
260
+ skip_dirs:
261
+ - wiki/
262
+ # ----------------
200
263
  # 相关文章,需要安装插件 (for layout: post)
201
264
  # npm i hexo-related-popular-posts
202
265
  related_posts:
@@ -230,7 +293,7 @@ article:
230
293
  #############################
231
294
  rules:
232
295
  type1:
233
- text: <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#" target="_blank">CC BY-NC-SA 4.0</a>
296
+ text: <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans#" target="_blank">CC BY-NC-SA 4.0</a>
234
297
  desc: 署名-非商业性使用-相同方式共享 4.0 国际。
235
298
  type2:
236
299
  text: 禁止转载引用
@@ -321,11 +384,11 @@ comments:
321
384
  # https://artalk.js.org/
322
385
  # https://github.com/ArtalkJS/Artalk
323
386
  artalk:
324
- js: https://yours-artalk-domain/dist/Artalk.js # or https://unpkg.com/artalk@2.2.8/dist/Artalk.js
325
- css: https://yours-artalk-domain/dist/Artalk.css # or https://unpkg.com/artalk@2.2.8/dist/Artalk.css
326
387
  server: https://yours-artalk-domain # 修改为自建的后端服务地址
327
388
  path: # 全局评论地址
328
389
  placeholder: # 评论占位
390
+ visitor: true # 是否显示文章阅读数
391
+ latex: false # 启用 Latex 支持
329
392
  # artalk 有三类图片:1.上传至服务端 2.上传至服务端后利用upgit上传至图床 3.前端上传至图床(本配置为此类)
330
393
  # 配置此项时将覆盖服务端上传能力
331
394
  imageUploader:
@@ -395,8 +458,6 @@ comments:
395
458
  # https://github.com/SukkaW/DisqusJS
396
459
  disqusjs:
397
460
  path: # 全局评论地址
398
- js: https://unpkg.com/disqusjs@1.3/dist/disqus.js
399
- css: https://unpkg.com/disqusjs@1.3/dist/disqusjs.css
400
461
  # 配置项按照yml格式继续填写即可 除了 [siteName url identifier] 选项
401
462
  #shortname:
402
463
  #api:
@@ -407,7 +468,6 @@ comments:
407
468
  # Gitalk
408
469
  # https://gitalk.github.io/
409
470
  gitalk:
410
- js: https://unpkg.com/gitalk@1/dist/gitalk.min.js
411
471
  # 配置项按照yml格式继续填写即可 除了 [id distractionFreeMode] 选项
412
472
  clientID:
413
473
  clientSecret:
@@ -419,9 +479,6 @@ comments:
419
479
  # Vssue 暂不支持Pjax
420
480
  # https://vssue.js.org/zh/
421
481
  vssue:
422
- js: https://cdn.jsdelivr.net/gh/meteorlxy/vssue@1.4.4/packages/vssue/dist/vssue.github.min.js
423
- css: https://cdn.jsdelivr.net/gh/meteorlxy/vssue@1.4.4/packages/vssue/dist/vssue.min.css
424
- vue: https://cdn.jsdelivr.net/gh/vuejs/vue@2.6.11/dist/vue.runtime.min.js
425
482
  owner:
426
483
  repo:
427
484
  clientId:
@@ -448,17 +505,15 @@ comments:
448
505
  # Twikoo
449
506
  # https://twikoo.js.org/
450
507
  twikoo:
451
- js: https://unpkg.com/twikoo@latest # 建议锁定版本
452
508
  path: # 全局评论地址
453
509
  # 其他配置项按照yml格式继续填写即可 除了 [el path] 选项
454
510
  envId: xxxxxxxxxxxxxxx # 腾讯云环境id
455
511
  placeholder: #全局评论占位,也可以在管理面板中的配置管理处设置(此处优先级更高)
512
+ visitor: true # 是否显示文章阅读数
456
513
 
457
514
  # Waline
458
515
  # https://waline.js.org/
459
516
  waline:
460
- js: https://unpkg.com/@waline/client@v2/dist/waline.js
461
- css: https://unpkg.com/@waline/client@v2/dist/waline.css
462
517
  path: # 全局评论地址 目前设置全局评论地址后visitor失效,这是waline的问题
463
518
  placeholder: # 评论占位提示
464
519
  serverURL: # Waline 的服务端地址(必填) 测试用地址: https://waline.vercel.app
@@ -470,8 +525,8 @@ comments:
470
525
  api: # 图床地址
471
526
  token: # 图床验证
472
527
  resp: # 图片地址返回值的字段
473
- pageview: true # 浏览量统计
474
- comment: true # 评论数统计
528
+ pageview: true # 是否显示文章阅读数
529
+ comment: true # 是否显示文章评论数
475
530
  # 其他配置项按照yml格式继续填写即可 除了 [el path imageUploader] 选项
476
531
  # 组件属性地址:https://waline.js.org/reference/component.html
477
532
  # meta: ['nick', 'mail', 'link']
@@ -479,8 +534,8 @@ comments:
479
534
  # Discuss
480
535
  # https://discuss.js.org
481
536
  discuss:
482
- js: https://cdn.jsdelivr.net/npm/discuss/dist/discuss.js # 建议锁定版本
483
537
  serverURLs: # Discuss server address url
538
+ visitStat: true # 是否显示文章阅读数
484
539
  # https://discuss.js.org/Quick-Start.html#path
485
540
 
486
541
 
@@ -588,12 +643,11 @@ sidebar:
588
643
  text: '本站总字数:' # 需要启用 wordcount
589
644
  unit: '字'
590
645
  visitcounter:
646
+ enable: true
591
647
  siteuv:
592
- enable: false
593
648
  text: '本站访客数:'
594
649
  unit: '人'
595
650
  sitepv:
596
- enable: false
597
651
  text: '本站总访问量:'
598
652
  unit: '次'
599
653
  lastupd:
@@ -633,7 +687,7 @@ tag_plugins:
633
687
  ############################### Site Footer ############################### > start
634
688
  site_footer:
635
689
  # layout of footer: [aplayer, social, license, info, copyright]
636
- layout: [aplayer, social, license, analytics, info, copyright]
690
+ layout: [aplayer, social, license, info, copyright]
637
691
  social:
638
692
  - icon: #fa-solid fa-rss
639
693
  url:
@@ -645,10 +699,10 @@ site_footer:
645
699
  url:
646
700
  # site source
647
701
  source: https://github.com/volantis-x/volantis-docs/
648
- # analytics using leancloud
702
+ # analytics using busuanzi
649
703
  analytics: >
650
- <span id="lc-sv">本站总访问量为 <span id='number'><i class="fa-solid fa-loader fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
651
- <span id="lc-uv">访客数为 <span id='number'><i class="fa-solid fa-loader fa-spin fa-fw" aria-hidden="true"></i></span> 人</span>
704
+ <span>本站总访问量为 <span id='busuanzi_value_site_pv'><i class="fa-solid fa-loader fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
705
+ <span>访客数为 <span id='busuanzi_value_site_uv'><i class="fa-solid fa-loader fa-spin fa-fw" aria-hidden="true"></i></span> 人</span>
652
706
  # site copyright
653
707
  copyright: '[Copyright © since 2017 XXX](/)'
654
708
  # You can add your own property here. (Support markdown, for example: br: '<br>')
@@ -660,26 +714,8 @@ plugins:
660
714
  ################ required plugins ################
661
715
  # jquery
662
716
  globalJquery: false # 全局引入 jquery
663
- jquery: volantis-static/libs/jquery/dist/jquery.min.js # https://unpkg.com/jquery@3.6.0/dist/jquery.min.js
664
- # fontawesome Pro 版本:https://cdn.jsdelivr.net/gh/inkss/fontawesome@6.0.0/css/all.min.css
665
- fontawesome: volantis-static/libs/@fortawesome/fontawesome-free/css/all.min.css # https://unpkg.com/@fortawesome/fontawesome-free@6.1/css/all.min.css
666
- # katex@0.15.2
667
- katex:
668
- js: volantis-static/libs/katex/katex.min.js # https://unpkg.com/katex@0.15.2/dist/katex.min.js
669
- css: volantis-static/libs/katex/katex.min.css # https://unpkg.com/katex@0.15.2/dist/katex.min.css
670
- render: volantis-static/libs/katex/contrib/auto-render.min.js # https://unpkg.com/katex@0.15.2/dist/contrib/auto-render.min.js
671
- # mathjax@3.2.0
672
- mathjax: volantis-static/libs/mathjax/es5/tex-mml-chtml.js # https://unpkg.com/mathjax@3.2.0/es5/tex-mml-chtml.js
673
- # github-markdown-css@5.1.0
674
- markdown: volantis-static/libs/github-markdown-css/github-markdown.css # https://unpkg.com/github-markdown-css@5.1.0/github-markdown.min.css
675
- # marked@4.0.10
676
- marked: volantis-static/libs/marked/marked.min.js # https://unpkg.com/marked@4.0.10/marked.min.js
677
- # hls.js@1.1.3
678
- hlsjs: volantis-static/libs/hls.js/dist/hls.min.js # https://unpkg.com/hls.js@1.1.3
679
- # @fancyapps/ui@4.0.12
680
- fancybox:
681
- css: volantis-static/libs/@fancyapps/ui/dist/fancybox.css # https://unpkg.com/@fancyapps/ui@4.0.12/dist/fancybox.css
682
- js: volantis-static/libs/@fancyapps/ui/dist/fancybox.umd.js # https://unpkg.com/@fancyapps/ui@4.0.12/dist/fancybox.umd.js
717
+ # fontawesome
718
+ fontawesome: true
683
719
  ################ optional plugins ################
684
720
  # issues api
685
721
  sitesjs:
@@ -694,8 +730,6 @@ plugins:
694
730
  preload:
695
731
  enable: true
696
732
  service: flying_pages # instant_page, flying_pages
697
- instant_page: volantis-static/libs/instant_page/instant_page.js # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/instant_page.js
698
- flying_pages: volantis-static/libs/flying-pages/flying-pages.min.js # https://cdn.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js
699
733
 
700
734
  # 图片懒加载
701
735
  # https://www.npmjs.com/package/vanilla-lazyload
@@ -704,7 +738,6 @@ plugins:
704
738
  # 在支持 srcset 的浏览器或者 RSS 阅读器(还会有人使用老旧的阅读器?)上会优先读取 srcset 加载的图片(懒加载占位图), 对于 RSS 中图片丢失变成懒加载占位图的问题, 建议 自行使用脚本移除 srcset 属性 或 关闭图片懒加载 或 在 RSS 中插入 vanilla-lazyload
705
739
  lazyload:
706
740
  enable: true
707
- js: volantis-static/libs/vanilla-lazyload/dist/lazyload.min.js # https://unpkg.com/vanilla-lazyload@17.1.0/dist/lazyload.min.js
708
741
  onlypost: false
709
742
  loadingImg: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@3/img/placeholder/c617bfd2497fcea598e621413e315c368f8d8e.svg # 不建议使用占位图, 建议loadingImg为空, 当前占位图会产生布局偏移, loadingImg 为空占位图是一个 1X1 像素的图片
710
743
  blurIn: true # 模糊加载效果 (loadingImg为空时有效)
@@ -738,35 +771,33 @@ plugins:
738
771
  # https://scrollrevealjs.org/api/reveal.html
739
772
  scrollreveal:
740
773
  enable: #true
741
- js: volantis-static/libs/scrollreveal/dist/scrollreveal.min.js # https://unpkg.com/scrollreveal@4.0.9/dist/scrollreveal.min.js
742
774
  distance: 32px
743
775
  duration: 800 # ms
744
776
  interval: 20 # ms
745
777
  scale: 1 # 0.1~1
746
778
 
747
- ######## Plugins for SEO:
779
+ ######## Plugins for Count:
748
780
  # npm i hexo-wordcount
749
781
  wordcount:
750
782
  enable: #true
751
783
 
784
+ busuanzi:
785
+ enable: #true
786
+
752
787
  ######## Plugins for ...
753
788
  # Button Ripple Effect
754
789
  nodewaves:
755
790
  enable: #true
756
- css: volantis-static/libs/node-waves/dist/waves.min.css # https://unpkg.com/node-waves@0.7.6/dist/waves.min.css
757
- js: volantis-static/libs/node-waves/dist/waves.min.js # https://unpkg.com/node-waves@0.7.6/dist/waves.min.js
758
791
 
759
792
  # fontawesome V6: https://fontawesome.com/docs/web/style/animate
760
793
  # fontawesome animation for fontawesome V5
761
794
  fontawesome_animation:
762
795
  enable: #true
763
- css: volantis-static/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
764
-
796
+
765
797
  # Typing Effects
766
798
  comment_typing:
767
799
  enable: #true
768
- js: volantis-static/libs/comment_typing/comment_typing.js # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/comment_typing.js
769
-
800
+
770
801
  # 视差滚动效果 Slide Background
771
802
  parallax:
772
803
  enable: #true
@@ -798,17 +829,31 @@ plugins:
798
829
  - volantis-static/media/wallpaper/minimalist/2020/056.webp
799
830
 
800
831
  # APlayer is only available in mainland China.
832
+ # https://aplayer.js.org/#/zh-Hans/
801
833
  # APlayer config: https://github.com/metowolf/MetingJS
802
834
  aplayer:
803
835
  enable: #true
804
- js:
805
- aplayer: volantis-static/libs/aplayer/dist/APlayer.min.js # https://unpkg.com/aplayer@1.10/dist/APlayer.min.js
806
- meting: volantis-static/libs/meting/dist/Meting.min.js # https://unpkg.com/meting@2.0/dist/Meting.min.js
807
- css: volantis-static/libs/aplayer/dist/APlayer.min.css # https://unpkg.com/aplayer@1.10/dist/APlayer.min.css
836
+ source: meting # meting:从 MetingJS API 获取音乐数据(API经常不稳定) / local:本地音乐数据
837
+ # ============= meting begin =============
808
838
  # Required
809
839
  server: netease # netease, tencent, kugou, xiami, baidu
810
840
  type: playlist # song, playlist, album, search, artist
811
841
  id: 3175833810 # song id / playlist id / album id / search keyword
842
+ # ============= meting end =============
843
+ # ============= local begin ==============
844
+ # local 暂时没有适配右键 和 post.music 迷你模式
845
+ audio:
846
+ - name: 'Fly'
847
+ artist: 'Marshmello'
848
+ url: '/music/fly.mp3'
849
+ lrc: '/music/fly.lrc'
850
+ cover: '/music/fly.jpg'
851
+ - name: 'Avem'
852
+ artist: 'Alan Walker'
853
+ url: '/music/Avem.mp3'
854
+ lrc: '/music/Avem.lrc'
855
+ cover: '/music/Avem.jpg'
856
+ # ============= local end ================
812
857
  # Optional
813
858
  fixed: false # enable fixed mode
814
859
  theme: '#1BCDFC' # main color
@@ -822,17 +867,22 @@ plugins:
822
867
 
823
868
  # Pjax
824
869
  pjax:
825
- js: volantis-static/libs/pjax/pjax.min.js # https://unpkg.com/pjax@0.2.8/pjax.min.js
826
870
  enable: true
827
871
  cover: true # 封面是否pjax处理 false:每次切换页面封面都重载,适合封面较少的情况 true:封面经过Pjax处理,适合封面较多的情况
828
872
  timeout: 5000 # The timeout in milliseconds for the XHR requests. Set to 0 to disable the timeout.
829
873
  cacheBust: false # When set to true, Pjax appends a timestamp to skip the browser cache.
830
- animation: false # false, nprogress, circle
831
- nprogress: volantis-static/libs/nprogress/nprogress.js # https://unpkg.com/nprogress@0.2.0/nprogress.min.js
832
- banUrl: # 被屏蔽的 url 地址将不启用 pjax 跳转,可以在控制台下使用 window.location.pathname 获取
874
+ exclude: # 被屏蔽的 url 地址将不启用 pjax 跳转,可以在控制台下使用 window.location.pathname 获取
833
875
  # - '/artitalk/' # artitalk 不支持 pjax
834
876
  # - '/bbtalk/' # bbtalk 不支持 pjax
835
877
 
878
+ # pace
879
+ # An automatic web page progress bar.
880
+ # https://github.com/CodeByZach/pace
881
+ pace:
882
+ enable: true
883
+ color: blue # black, blue, green, orange, pink, purple, red, silver, white, yellow
884
+ theme: minimal # big-counter, bounce, barber-shop, center-atom, center-circle, center-radar, center-simple, corner-indicator, fill-left, flat-top, flash, loading-bar, mac-osx, material, minimal
885
+
836
886
  # 暗黑模式 darkmode
837
887
  # 开关按钮:在 navbar.menu 中添加:
838
888
  # - name: 暗黑模式 # 可自定义
@@ -861,7 +911,6 @@ plugins:
861
911
  # Set `plugins: ["artitalk"]` to enable in front-matter
862
912
  # 不支持 Pjax
863
913
  # 配置项按照yml格式继续填写即可
864
- js: https://unpkg.com/artitalk
865
914
  appId: ogP8qj3veMh0LFpFWMPOyF0X-MdYXbMMI # your appID
866
915
  appKey: nHXLd3N3Jgh460t2iRQKWAtr # your appKEY
867
916
  # serverURL: #leancloud绑定的api访问域名,使用国际版的话不需要填写
@@ -880,7 +929,6 @@ plugins:
880
929
  bbtalk:
881
930
  # Set `plugins: ["bbtalk"]` to enable in front-matter
882
931
  # 不支持 Pjax
883
- js: https://unpkg.com/bbtalk@0.1.5/dist/bbtalk.js # BBtalk.js
884
932
  appId: 0KzOX4vC7Jsk6vzUGNeEiUaI-gzGzoHsz # your appID
885
933
  appKey: HwCiWuxfpvKiLm4teCUgTIba # your appKEY
886
934
  serverURLs: https://bbapi.heson10.com # Request Api 域名
@@ -891,17 +939,17 @@ plugins:
891
939
  fcircle:
892
940
  # Set `plugins: ["fcircle"]` to enable in front-matter
893
941
  # 支持 Pjax
894
- api: https://fcircle-api.example.com/ # api 地址
895
- message: 与主机通讯中…… # 占位文字
896
- css: volantis-static/libs/fcircle/fcircle.css
897
- js: volantis-static/libs/fcircle/fcircle.js
942
+ private_api_url: https://fcircle-api.example.com/ # api 地址
943
+ page_turning_number: 10 # 点击加载更多时,一次最多加载几篇文章,默认10
944
+ error_img: https://cravatar.cn/avatar/57d8260dfb55501c37dde588e7c3852c # 头像加载失败时,默认头像地址
945
+ sort_rule: created # 进入页面时第一次的排序规则,可选值:created/updated
946
+ app: https://npm.elemecdn.com/fcircle-theme-yyyz@1.0.5/dist/app.min.js # app.min.js的url
947
+ bundle: https://npm.elemecdn.com/fcircle-theme-yyyz@1.0.5/dist/bundle.js # bundle.js的url
898
948
 
899
949
  # 消息提示
900
- # izitoast@1.4.0
950
+ # izitoast
901
951
  message:
902
952
  enable: true
903
- css: volantis-static/libs/izitoast/dist/css/iziToast.min.css
904
- js: volantis-static/libs/izitoast/dist/js/iziToast.min.js
905
953
  icon: # 默认图标,支持对图标添加颜色,可选值:see:/source/css/_style/_plugins/fontcolor.styl
906
954
  default: fa-solid fa-info-circle light-blue
907
955
  quection: fa-solid fa-question-circle light-blue
@@ -945,14 +993,12 @@ plugins:
945
993
  # https://www.swiper.com.cn/
946
994
  swiper:
947
995
  enable: true
948
- css: volantis-static/libs/swiper/swiper-bundle.min.css # https://unpkg.com/swiper@6/swiper-bundle.min.css
949
- js: volantis-static/libs/swiper/swiper-bundle.min.js # https://unpkg.com/swiper@6/swiper-bundle.min.js
950
996
 
951
997
  ############################### Plugins ############################### > end
952
998
 
953
999
  ############################### Rightmenu ############################### > start
954
1000
 
955
- ### 自定义右键
1001
+ ### 自定义右键
956
1002
  rightmenus:
957
1003
  enable: false
958
1004
  # 右键菜单项及加载顺序
@@ -1044,59 +1090,23 @@ rightmenus:
1044
1090
  - {id: 'darkMode', name: '暗黑模式', icon: 'fa-solid fa-moon', event: 'volantis.dark.toggle()', group: 'darkMode'}
1045
1091
  ###
1046
1092
 
1047
- # 自定义右键菜单
1048
- rightmenu:
1049
- enable: false
1050
- faicon: fa # 公共图标类型 fa fal fa-solid fa-duotone
1051
- # hr: 分割线, music: 音乐控制器
1052
- layout: [home, hr, help, examples, contributors, hr, source_docs, source_theme, hr, print, darkmode, reading, music]
1053
- ### 可选功能项 ###
1054
- print: # 只有文章页才允许自定义打印
1055
- name: 打印页面
1056
- icon: fa fa-print
1057
- darkmode: # 需开启 plugins.darkmodejs
1058
- name: 暗黑模式
1059
- icon: fa fa-moon
1060
- reading:
1061
- name: 阅读模式
1062
- icon: fa fa-book-open
1063
- customPicUrl: # 右键的图片复制:只有 Chrome 支持,且只支持 PNG 格式的图片。
1064
- enable: false # 如果使用了对象存储且开启了自适应 Webp,那么可以提供额外的链接用以替换图片的访问地址
1065
- old: #https://static.inkss.cn/img/article/
1066
- new: #https://cdn.jsdelivr.net/gh/inkss/inkss-cdn@master/img/article/
1067
- music: # 当设定全局音乐播放器时,是否一直显示音乐控制菜单。false:仅当音乐播放时启用
1068
- alwaysShow: true
1069
- ### 自定义菜单 ###
1070
- help:
1071
- name: 常见问题
1072
- icon: fa fa-question
1073
- url: https://volantis.js.org/faqs/
1074
- examples:
1075
- name: 示例博客
1076
- icon: fa fa-rss
1077
- url: https://volantis.js.org/examples/
1078
- contributors:
1079
- name: 加入社区
1080
- icon: fa fa-fan fa-spin
1081
- url: https://volantis.js.org/contributors/
1082
- source_docs:
1083
- name: 本站源码
1084
- icon: fa fa-code-branch
1085
- url: https://github.com/volantis-x/volantis-docs/
1086
- source_theme:
1087
- name: 主题源码
1088
- icon: fa fa-code-branch
1089
- url: https://github.com/volantis-x/hexo-theme-volantis/
1090
- ############################### Rightmenu ############################### > end
1091
-
1092
1093
 
1093
1094
  ############################### Search ############################### > start
1094
1095
  # To use hexo search, you need to install the following plugins:
1095
1096
  # npm i hexo-generator-json-content
1096
1097
  search:
1097
1098
  enable: true
1098
- service: hexo # hexo
1099
- js:
1099
+ service: hexo # hexo, algolia, meilisearch
1100
+ algolia:
1101
+ searchAsYouType: true # If false, triggers the search only on submit.
1102
+ hitsPerPage: 5 # Set the number of hits per page.
1103
+ placeholder: 'Search...' # The placeholder text of the input.
1104
+ meilisearch:
1105
+ placeholder: 'Search...'
1106
+ searchKey: ''
1107
+ indexName: ''
1108
+ hostUrl: ''
1109
+
1100
1110
  ############################### Search ############################### > end
1101
1111
 
1102
1112
  ############################### Color Scheme ############################### > start
@@ -1219,8 +1229,6 @@ custom_css:
1219
1229
  scrollbar:
1220
1230
  size: 4px
1221
1231
  border: 2px
1222
- background: rgb(84,181,160) linear-gradient(45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent)
1223
- hover_background: rgb(84,181,160) linear-gradient(45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent)
1224
1232
  navbar:
1225
1233
  height: 64px
1226
1234
  width: auto # auto, max
@@ -1282,16 +1290,6 @@ custom_css:
1282
1290
  # style: normal
1283
1291
  ############################### Custom css ############################### > end
1284
1292
 
1285
-
1286
- ############################### Analytics ############################### > start
1287
- analytics:
1288
- busuanzi: #volantis-static/libs/busuanzi/js/busuanzi.pure.mini.js #https://cdn.jsdelivr.net/gh/volantis-x/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js
1289
- leancloud: # 请使用自己的 id & key 以防止数据丢失
1290
- app_id: # u9j57bwJod4EDmXWdxrwuqQT-MdYXbMMI
1291
- app_key: # jfHtEKVE24j0IVCGHbvuFClp
1292
- custom_api_server: # 国际版一般不需要写,除非自定义了 API Server
1293
- ############################### Analytics ############################### > end
1294
-
1295
1293
  ############################### SEO ############################### > start
1296
1294
  seo:
1297
1295
  # When there are no keywords in the article's front-matter, use tags as keywords.
package/languages/en.yml CHANGED
@@ -2,6 +2,7 @@ navbar:
2
2
  archive: Archive
3
3
  category: Category
4
4
  tag: Tag
5
+
5
6
  post:
6
7
  pin: Top
7
8
  readmore: Read More
@@ -27,6 +28,7 @@ post:
27
28
  updated: Update
28
29
  references: References
29
30
  license: License
31
+
30
32
  footer:
31
33
  license: 'Blog content follows the [Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)'
32
34
  use: Use
@@ -36,6 +38,7 @@ footer:
36
38
  times: times
37
39
  site_source: Uses %s as theme. You can find [source](%s) in %s.
38
40
  site_views: The visits is about %s, and the visitors is about %s.
41
+
39
42
  symbol:
40
43
  comma: ", "
41
44
  period: ". "
@@ -43,18 +46,14 @@ symbol:
43
46
  brackets_l: "("
44
47
  brackets_r: ")"
45
48
 
46
- rightmenu:
47
- back: "Back"
48
- forward: "Forward"
49
- reload: "Reload"
50
- search_word: "Site Search"
51
- copy_text: "Copy Text"
52
- copy_image_src: "Copy Image Link"
53
- copy_link: "Copy Link"
54
- open_in_new_tab: "Open Link in New Tab"
55
-
56
49
  kill:
57
50
  title: "Sorry, your browser cannot access this site"
58
51
  more: "Learn more >"
59
52
  noscript: "This page requires browser support (enable) JavaScript"
60
53
  ie: "Microsoft has terminated support for Internet Explorer (IE) 10 and earlier versions in 2016. <br/>There are great security risks to continue using it. Please use contemporary mainstream browsers to access."
54
+
55
+ search:
56
+ title: Search
57
+ load_data: Loading the Database
58
+ hits_empty: "We didn't find any results for the search: ${query}."
59
+ hits_stats: '${hits} results found in ${time} ms'