hexo-theme-volantis 4.2.0 → 5.0.0-alpha.112
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.
- package/README.md +7 -5
- package/_config.yml +651 -234
- package/languages/en.yml +7 -0
- package/languages/zh-CN.yml +13 -2
- package/languages/zh-TW.yml +7 -0
- package/layout/404.ejs +1 -2
- package/layout/_meta/author.ejs +4 -4
- package/layout/_meta/category.ejs +11 -8
- package/layout/_meta/counter.ejs +51 -2
- package/layout/_meta/date.ejs +1 -1
- package/layout/_meta/music.ejs +1 -1
- package/layout/_meta/share.ejs +1 -1
- package/layout/_meta/tags.ejs +3 -0
- package/layout/_meta/thumbnail.ejs +3 -1
- package/layout/_meta/updated.ejs +1 -1
- package/layout/_meta/{valinecount.ejs → walinecount.ejs} +16 -15
- package/layout/{_cover → _partial/_cover}/blank.ejs +0 -0
- package/layout/{_cover → _partial/_cover}/dock.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/featured.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/focus.ejs +1 -1
- package/layout/_partial/_cover/layout.ejs +8 -0
- package/layout/{_cover → _partial/_cover}/search.ejs +2 -2
- package/layout/_partial/archive.ejs +2 -2
- package/layout/_partial/article.ejs +21 -13
- package/layout/_partial/categories.ejs +1 -1
- package/layout/_partial/cover.ejs +10 -30
- package/layout/_partial/footer.ejs +19 -11
- package/layout/_partial/head.ejs +70 -110
- package/layout/_partial/header.ejs +17 -11
- package/layout/_partial/meta.ejs +18 -4
- package/layout/_partial/post.ejs +35 -9
- package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +126 -0
- package/layout/_partial/scripts/{coverCtrl.ejs → _ctrl/coverCtrl.ejs} +22 -26
- package/layout/_partial/scripts/_ctrl.ejs +2 -0
- package/layout/_partial/scripts/content-visibility-scroll-fix.ejs +88 -0
- package/layout/_partial/scripts/global.ejs +423 -0
- package/layout/_partial/scripts/index.ejs +89 -73
- package/layout/_partial/scripts/toc.ejs +98 -68
- package/layout/_partial/side.ejs +4 -1
- package/layout/_plugins/_page_plugins/artitalk/index.ejs +15 -0
- package/layout/_plugins/_page_plugins/bbtalk/index.ejs +10 -0
- package/layout/_plugins/_page_plugins/fcircle/index.ejs +12 -0
- package/layout/_plugins/_page_plugins/gitter/index.ejs +14 -0
- package/layout/_plugins/_page_plugins/indent/index.ejs +16 -0
- package/layout/_plugins/_page_plugins/index.ejs +27 -0
- package/layout/_plugins/_page_plugins/katex/index.ejs +13 -0
- package/layout/{_third-party/math/mathjax/script.ejs → _plugins/_page_plugins/mathjax/index.ejs} +2 -2
- package/layout/_plugins/_page_plugins/snackbar/index.ejs +55 -0
- package/layout/{_partial/scripts/counter.ejs → _plugins/analytics/LCCounter.ejs} +0 -0
- package/layout/_plugins/analytics/script.ejs +74 -0
- package/layout/{_third-party → _plugins}/aplayer/layout.ejs +0 -0
- package/layout/_plugins/aplayer/script.ejs +74 -0
- package/layout/_plugins/chat/gitter/script.ejs +17 -0
- package/layout/_plugins/chat/index.ejs +1 -0
- package/layout/_plugins/chat/tidio/script.ejs +1 -0
- package/layout/_plugins/comments/artalk/script.ejs +59 -0
- package/layout/_plugins/comments/beaudar/script.ejs +61 -0
- package/layout/_plugins/comments/discuss/script.ejs +30 -0
- package/layout/_plugins/comments/disqus/script.ejs +98 -0
- package/layout/_plugins/comments/disqusjs/script.ejs +35 -0
- package/layout/_plugins/comments/giscus/script.ejs +47 -0
- package/layout/_plugins/comments/gitalk/script.ejs +24 -0
- package/layout/_plugins/comments/hashover/script.ejs +5 -0
- package/layout/{_third-party → _plugins}/comments/index.ejs +10 -3
- package/layout/_plugins/comments/isso/script.ejs +27 -0
- package/layout/_plugins/comments/livere/script.ejs +15 -0
- package/layout/_plugins/comments/twikoo/script.ejs +40 -0
- package/layout/_plugins/comments/utterances/script.ejs +43 -0
- package/layout/_plugins/comments/vssue/script.ejs +37 -0
- package/layout/_plugins/comments/waline/script.ejs +62 -0
- package/layout/_plugins/comments/z-custom/script.ejs +1 -0
- package/layout/_plugins/darkmode/script.ejs +114 -0
- package/layout/_plugins/end-of-support/script.ejs +62 -0
- package/layout/_plugins/github-api/script.ejs +27 -0
- package/layout/_plugins/highlight/highlightjs/script.ejs +26 -0
- package/layout/_plugins/highlight/prismjs/script.ejs +25 -0
- package/layout/_plugins/highlight/script.ejs +1 -0
- package/layout/{_third-party → _plugins}/lazyload/script.ejs +1 -1
- package/layout/_plugins/nodewaves/script.ejs +12 -0
- package/layout/_plugins/parallax/script.ejs +74 -0
- package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -26
- package/layout/_plugins/pjax/index.ejs +73 -0
- package/layout/_plugins/pjax/pdata.ejs +56 -0
- package/layout/_plugins/preload/script.ejs +14 -0
- package/layout/_plugins/rightmenu/layout.ejs +119 -0
- package/layout/_plugins/rightmenus/layout.ejs +137 -0
- package/layout/_plugins/scrollreveal/script.ejs +25 -0
- package/layout/_plugins/search/script.ejs +50 -0
- package/layout/{_third-party → _plugins}/share/layout.ejs +0 -0
- package/layout/_plugins/swiper/script.ejs +37 -0
- package/layout/_pre.ejs +2 -2
- package/layout/_widget/_pre.ejs +5 -0
- package/layout/_widget/blogger.ejs +1 -1
- package/layout/_widget/category.ejs +2 -2
- package/layout/_widget/copyright.ejs +1 -1
- package/layout/_widget/grid.ejs +3 -3
- package/layout/_widget/lastupdate.ejs +27 -0
- package/layout/_widget/list.ejs +2 -2
- package/layout/_widget/load.ejs +18 -0
- package/layout/_widget/music.ejs +3 -2
- package/layout/_widget/page.ejs +1 -1
- package/layout/_widget/qrcode.ejs +1 -1
- package/layout/_widget/related_posts.ejs +1 -1
- package/layout/_widget/tagcloud.ejs +1 -1
- package/layout/_widget/text.ejs +1 -1
- package/layout/_widget/toc.ejs +6 -2
- package/layout/_widget/webinfo.ejs +13 -76
- package/layout/archive.ejs +4 -4
- package/layout/category.ejs +9 -4
- package/layout/docs.ejs +1 -1
- package/layout/friends.ejs +6 -25
- package/layout/index.ejs +1 -1
- package/layout/layout.ejs +40 -24
- package/layout/list.ejs +1 -1
- package/layout/page.ejs +1 -1
- package/layout/post.ejs +1 -1
- package/layout/tag.ejs +8 -3
- package/package.json +6 -2
- package/scripts/events/index.js +13 -0
- package/scripts/events/lib/check-configuration.js +43 -0
- package/scripts/events/lib/check-environment.js +74 -0
- package/scripts/events/lib/config.js +35 -10
- package/scripts/events/lib/render-stylus.js +78 -0
- package/scripts/events/lib/stellar-tag-utils.js +76 -0
- package/scripts/filters/content-visibility.js +25 -0
- package/scripts/{render → filters}/img.js +1 -1
- package/scripts/filters/replace.js +15 -0
- package/scripts/{z-lazyload/lib/process.js → filters/z-lazyload.js} +18 -15
- package/scripts/helpers/custom-files.js +165 -0
- package/scripts/helpers/first-style.js +19 -0
- package/scripts/helpers/head/autoCanonical.js +15 -0
- package/scripts/helpers/head/generate_preload_fontfamily.js +22 -0
- package/scripts/helpers/head/generate_seo.js +24 -0
- package/scripts/helpers/head/generate_title__keywords__description.js +101 -0
- package/scripts/{related_posts/index.js → helpers/related-posts.js} +9 -9
- package/scripts/helpers/revisioned.js +158 -0
- package/scripts/helpers/structured-data/index.js +2 -0
- package/scripts/helpers/structured-data/lib/blogposting.js +77 -0
- package/scripts/helpers/structured-data/lib/breadcrumblist.js +152 -0
- package/scripts/helpers/structured-data/lib/config.js +31 -0
- package/scripts/helpers/structured-data/lib/index.js +30 -0
- package/scripts/helpers/structured-data/lib/organization.js +15 -0
- package/scripts/helpers/structured-data/lib/person.js +16 -0
- package/scripts/helpers/structured-data/lib/website.js +42 -0
- package/scripts/tags/btn.js +31 -26
- package/scripts/tags/btns.js +18 -13
- package/scripts/tags/checkbox.js +32 -22
- package/scripts/tags/contributors.js +100 -0
- package/scripts/tags/dropmenu.js +50 -35
- package/scripts/tags/fancybox.js +44 -10
- package/scripts/tags/folding.js +14 -9
- package/scripts/tags/frame.js +8 -3
- package/scripts/tags/friends.js +99 -0
- package/scripts/tags/ghcard.js +11 -6
- package/scripts/tags/image.js +18 -6
- package/scripts/tags/link.js +15 -10
- package/scripts/tags/md.js +59 -0
- package/scripts/tags/media.js +32 -8
- package/scripts/tags/note.js +41 -8
- package/scripts/tags/site.js +87 -51
- package/scripts/tags/span.js +16 -6
- package/scripts/tags/swiper.js +38 -0
- package/scripts/tags/table.js +1 -1
- package/scripts/tags/tabs.js +33 -3
- package/scripts/tags/timeline.js +9 -4
- package/source/css/Readme.md +28 -0
- package/source/css/_defines/AutoPrefixCSS.styl +347 -0
- package/source/css/_defines/Readme.md +3 -0
- package/source/css/_defines/color.styl +41 -1
- package/source/css/_defines/effect.styl +0 -13
- package/source/css/_defines/fonts.styl +17 -18
- package/source/css/_defines/func.styl +12 -30
- package/source/css/_first/base_first.styl +118 -0
- package/source/css/_first/{cover.styl → cover_first.styl} +113 -87
- package/source/css/_first/dark_first.styl +76 -0
- package/source/css/_first/fontfamily_first.styl +17 -0
- package/source/css/_first/{navbar.styl → navbar_first.styl} +4 -10
- package/source/css/_first/search_first.styl +12 -0
- package/source/css/{_base/index.styl → _style/_base/base.styl} +9 -93
- package/source/css/_style/_base/fontfamily_async.styl +8 -0
- package/source/css/{_layout → _style/_layout}/archive.styl +0 -0
- package/source/css/{_layout → _style/_layout}/article.styl +3 -30
- package/source/css/{_layout → _style/_layout}/footer.styl +0 -0
- package/source/css/_style/_layout/friends-simpleuser.styl +23 -0
- package/source/css/_style/_layout/friends-traditional.styl +81 -0
- package/source/css/{_layout → _style/_layout}/img.styl +0 -0
- package/source/css/_style/_layout/loading.styl +14 -0
- package/source/css/{_layout → _style/_layout}/main.styl +20 -7
- package/source/css/{_layout → _style/_layout}/md.styl +0 -0
- package/source/css/{_layout → _style/_layout}/pagination.styl +1 -1
- package/source/css/{_layout → _style/_layout}/posts.styl +2 -0
- package/source/css/{_first → _style/_layout}/search.styl +0 -103
- package/source/css/{_layout → _style/_layout}/sidebar.styl +23 -3
- package/source/css/{_layout → _style/_layout}/snackbar.styl +2 -1
- package/source/css/{_layout → _style/_layout}/toc.styl +3 -3
- package/source/css/{_layout → _style/_layout}/video.styl +0 -0
- package/source/css/_style/_plugins/_dark/dark_async.styl +41 -0
- package/source/css/_style/_plugins/_dark/dark_plugins.styl +136 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/clipboard.styl +36 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/color.styl +96 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/index.styl +102 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/language.styl +63 -0
- package/source/css/_style/_plugins/_highlight/index.styl +1 -0
- package/source/css/_style/_plugins/_highlight/prismjs/clipboard.styl +33 -0
- package/source/css/_style/_plugins/_highlight/prismjs/index.styl +8 -0
- package/source/css/_style/_plugins/_highlight/prismjs/language.styl +63 -0
- package/source/css/_style/_plugins/_rightmenu/reading.styl +56 -0
- package/source/css/{_plugins → _style/_plugins/_rightmenu}/rightmenu.styl +22 -2
- package/source/css/{_plugins → _style/_plugins}/aplayer.styl +11 -0
- package/source/css/{_plugins → _style/_plugins}/cursor.styl +49 -19
- package/source/css/_style/_plugins/fontcolor.styl +84 -0
- package/source/css/{_plugins → _style/_plugins}/gitalk.styl +0 -0
- package/source/css/_style/_plugins/index.styl +24 -0
- package/source/css/{_plugins → _style/_plugins}/mathjax.styl +0 -0
- package/source/css/_style/_plugins/message.styl +14 -0
- package/source/css/{_plugins → _style/_plugins}/pjaxanimate.styl +0 -0
- package/source/css/_style/_tag-plugins/Readme.md +6 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/btns.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/checkbox.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/dropmenu.styl +0 -0
- package/source/css/{_plugins → _style/_tag-plugins}/fancybox.styl +8 -9
- package/source/css/{_tag-plugins → _style/_tag-plugins}/folding.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/frame.styl +0 -0
- package/source/css/_style/_tag-plugins/friends.styl +72 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/ghcard.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/image.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/link.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/media.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/note.styl +0 -0
- package/source/css/_style/_tag-plugins/sites.styl +87 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/span.styl +0 -0
- package/source/css/_style/_tag-plugins/swiper.styl +44 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/table.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/tabs.styl +0 -0
- package/source/css/_style/_tag-plugins/tag.json +35 -0
- package/source/css/_style/_tag-plugins/text.styl +31 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/timeline.styl +0 -0
- package/source/css/_style/index.styl +8 -0
- package/source/css/first.styl +17 -6
- package/source/css/style.styl +9 -7
- package/source/js/app.js +1128 -359
- package/source/js/plugins/aplayer.js +186 -0
- package/source/js/plugins/parallax.js +191 -0
- package/source/js/plugins/rightMenu.js +577 -0
- package/source/js/plugins/rightMenus.js +616 -0
- package/source/js/plugins/tags/contributors.js +92 -0
- package/source/js/plugins/tags/friends.js +93 -0
- package/source/js/plugins/tags/sites.js +96 -0
- package/source/js/search/hexo.js +180 -378
- package/layout/_partial/rightmenu.ejs +0 -204
- package/layout/_partial/scripts/cover.ejs +0 -45
- package/layout/_partial/scripts/darkmode.ejs +0 -96
- package/layout/_partial/scripts/import.ejs +0 -3
- package/layout/_partial/scripts/loadfunction.ejs +0 -72
- package/layout/_partial/scripts/search.ejs +0 -62
- package/layout/_partial/snackbar.ejs +0 -22
- package/layout/_third-party/analytics/script.ejs +0 -24
- package/layout/_third-party/aplayer/script.ejs +0 -24
- package/layout/_third-party/clipboard/script.ejs +0 -53
- package/layout/_third-party/comments/disqus/layout.ejs +0 -5
- package/layout/_third-party/comments/disqus/script.ejs +0 -93
- package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
- package/layout/_third-party/comments/gitalk/script.ejs +0 -29
- package/layout/_third-party/comments/hashover/layout.ejs +0 -2
- package/layout/_third-party/comments/hashover/script.ejs +0 -1
- package/layout/_third-party/comments/isso/layout.ejs +0 -1
- package/layout/_third-party/comments/isso/script.ejs +0 -1
- package/layout/_third-party/comments/livere/layout.ejs +0 -3
- package/layout/_third-party/comments/livere/script.ejs +0 -10
- package/layout/_third-party/comments/minivaline/layout.ejs +0 -3
- package/layout/_third-party/comments/minivaline/script.ejs +0 -29
- package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
- package/layout/_third-party/comments/twikoo/script.ejs +0 -17
- package/layout/_third-party/comments/valine/layout.ejs +0 -3
- package/layout/_third-party/comments/valine/script.ejs +0 -75
- package/layout/_third-party/comments/vssue/layout.ejs +0 -1
- package/layout/_third-party/comments/vssue/script.ejs +0 -22
- package/layout/_third-party/fancybox/script.ejs +0 -50
- package/layout/_third-party/issues/script.ejs +0 -15
- package/layout/_third-party/pjax/index.ejs +0 -143
- package/layout/_third-party/pjax/pdata.ejs +0 -47
- package/layout/_third-party/scrollreveal/script.ejs +0 -15
- package/layout/artitalk.ejs +0 -48
- package/scripts/tags/issues.js +0 -41
- package/scripts/z-lazyload/index.js +0 -4
- package/source/css/_highlight/index.styl +0 -316
- package/source/css/_layout/friends.styl +0 -79
- package/source/css/_plugins/clipboard.styl +0 -37
- package/source/css/_plugins/dark.styl +0 -149
- package/source/css/_plugins/darkmode.styl +0 -9
- package/source/css/_plugins/index.styl +0 -16
- package/source/css/_plugins/valine.styl +0 -173
- package/source/css/_tag-plugins/simpleuser.styl +0 -21
- package/source/css/_tag-plugins/site-card.styl +0 -70
- package/source/js/aplayer.js +0 -161
- package/source/js/issues.js +0 -186
- package/source/js/search/algolia.js +0 -348
- package/source/js/search/azure.js +0 -359
- package/source/js/search/baidu.js +0 -342
- package/source/js/search/google.js +0 -343
- package/source/js/twikoo.js +0 -13
- package/source/js/valine.js +0 -5265
package/_config.yml
CHANGED
|
@@ -1,45 +1,106 @@
|
|
|
1
1
|
############################### Volantis ###############################
|
|
2
|
-
# 仅限/source/js/中的JS文件
|
|
3
|
-
# 默认使用 https://cdn.jsdelivr.net/npm/hexo-theme-volantis/source/js/ 的CDN压缩版本,注意版本号对应关系!!可以通过修改以下配置项覆盖
|
|
4
|
-
# 开发者注意 use_cdn 设置为 false
|
|
5
|
-
use_cdn: false
|
|
6
2
|
info:
|
|
7
3
|
theme_name: Volantis # This is theme's name.
|
|
8
|
-
theme_version: '
|
|
9
|
-
theme_docs: https://volantis
|
|
4
|
+
theme_version: '5.0.0-alpha.112' # This is theme's version.
|
|
5
|
+
theme_docs: https://volantis.js.org/ # This is theme's URL.
|
|
10
6
|
theme_repo: https://github.com/volantis-x/hexo-theme-volantis
|
|
11
|
-
|
|
7
|
+
# Debug 调试模式
|
|
8
|
+
debug: false
|
|
9
|
+
############################### 默认占位图 ###############################
|
|
10
|
+
default:
|
|
11
|
+
avatar: volantis-static/media/placeholder/avatar/round/3442075.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
|
|
12
|
+
link: volantis-static/media/placeholder/link/8f277b4ee0ecd.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg
|
|
13
|
+
cover: volantis-static/media/placeholder/cover/76b86c0226ffd.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg
|
|
14
|
+
image: volantis-static/media/placeholder/image/2659360.svg # https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/image/2659360.svg
|
|
15
|
+
############################### CSP ###############################
|
|
16
|
+
# 内容安全策略( CSP ) meta 标签 http-equiv="Content-Security-Policy"
|
|
17
|
+
# https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP
|
|
18
|
+
# https://content-security-policy.com/
|
|
19
|
+
# 也可以设为 false 在 HTTP 标头中设置 https://volantis.js.org/v5/advanced-settings/#设置-HTTP-响应标头
|
|
20
|
+
csp:
|
|
21
|
+
enable: true
|
|
22
|
+
content: "
|
|
23
|
+
default-src 'self' https:;
|
|
24
|
+
block-all-mixed-content;
|
|
25
|
+
base-uri 'self' https:;
|
|
26
|
+
form-action 'self' https:;
|
|
27
|
+
worker-src 'self' https:;
|
|
28
|
+
connect-src 'self' https: *;
|
|
29
|
+
img-src 'self' data: https: *;
|
|
30
|
+
media-src 'self' https: *;
|
|
31
|
+
font-src 'self' data: https: *;
|
|
32
|
+
frame-src 'self' https: *;
|
|
33
|
+
manifest-src 'self' https: *;
|
|
34
|
+
child-src https:;
|
|
35
|
+
script-src 'self' https: 'unsafe-inline' *;
|
|
36
|
+
style-src 'self' https: 'unsafe-inline' *;
|
|
37
|
+
"
|
|
38
|
+
# 可以使用自动程序替换默认的 'unsafe-inline' 和 * 生成更严格的内容安全策略.
|
|
39
|
+
# 另可以参考官网的 gulp 方案.
|
|
40
|
+
# gulpfile.js https://github.com/volantis-x/community/blob/main/gulpfile.js
|
|
41
|
+
############################### CDN ###############################
|
|
42
|
+
# 本地静态文件使用 CDN 加速
|
|
43
|
+
# 默认使用 https://unpkg.com/hexo-theme-volantis@<%- theme.info.theme_version %>/source/js/*.js ,注意版本号对应关系!!可以通过修改以下配置项覆盖
|
|
44
|
+
# 开发者注意 cdn.enable 设置为 false
|
|
45
|
+
cdn:
|
|
46
|
+
enable: false
|
|
47
|
+
# CDN 前缀,为空使用默认值,链接最后不加 "/",
|
|
48
|
+
# 例如: https://cdn.jsdelivr.net/gh/volantis-x/volantis-x.github.io@gh-page 填写最后编译生成的源码CDN地址前缀,此路径下应该含有/js与/css目录,
|
|
49
|
+
# 该配置默认值是:"https://unpkg.com/hexo-theme-volantis@"+ theme.info.theme_version +"/source"
|
|
50
|
+
prefix: #https://npm.elemecdn.com/hexo-theme-volantis/source
|
|
51
|
+
# 以下配置可以覆盖 cdn.prefix,配置项的值可以为空,但是要使用CDN必须依据路径填写配置项的键
|
|
52
|
+
set:
|
|
12
53
|
js:
|
|
54
|
+
app: /js/app.js
|
|
13
55
|
css:
|
|
14
|
-
|
|
15
|
-
|
|
56
|
+
style: /css/style.css # (异步加载样式)
|
|
57
|
+
# 静态资源版本控制
|
|
58
|
+
# 本地文件使用文件内容的hash值作为版本号(app.8c1e7c88.js) 其他为时间戳 (?time=1648684470140)
|
|
59
|
+
# 建议静态资源设置标头 浏览器缓存一年边缘缓存一个月 cache-control: max-age=86400, s-maxage=31536000 如果有更新记得刷新缓存
|
|
60
|
+
cdn_version: true
|
|
61
|
+
# volantis static 静态资源文件 npm 包 CDN 地址 (后面加 "/" )
|
|
62
|
+
# https://github.com/volantis-x/volantis-static
|
|
63
|
+
volantis_static_cdn: https://unpkg.com/volantis-static@0.0.1649552113628/
|
|
16
64
|
########################################################################
|
|
65
|
+
# 全局页面字符串替换 A => B (可用于临时修改错字等)
|
|
66
|
+
replace:
|
|
67
|
+
- https://cdn.jsdelivr.net/npm/ => https://unpkg.com/
|
|
68
|
+
- https://cdn.jsdelivr.net/gh/ => https://fastly.jsdelivr.net/gh/
|
|
69
|
+
# - https://unpkg.com/ => https://npm.elemecdn.com/
|
|
70
|
+
|
|
71
|
+
# dns-prefetch preconnect x-dns-prefetch-control
|
|
72
|
+
dns_prefetch:
|
|
73
|
+
- https://unpkg.com
|
|
74
|
+
# - https://npm.elemecdn.com
|
|
17
75
|
|
|
76
|
+
# 平滑滚动效果
|
|
77
|
+
scroll_smooth: true
|
|
18
78
|
############################### Navigation Bar ############################### > start
|
|
79
|
+
# 注意事项:建议规范全站路径 URL 最后带一个 "/" 例如 "about/"
|
|
19
80
|
navbar:
|
|
20
81
|
visiable: auto # always, auto
|
|
21
82
|
logo: # choose [img] or [icon + title]
|
|
22
|
-
img: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png
|
|
83
|
+
img: volantis-static/media/org.volantis/blog/Logo-NavBar@3x.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png
|
|
23
84
|
icon:
|
|
24
85
|
title:
|
|
25
86
|
menu:
|
|
26
87
|
- name: 博客
|
|
27
|
-
icon:
|
|
88
|
+
icon: fa-solid fa-rss
|
|
28
89
|
url: /
|
|
29
90
|
- name: 分类
|
|
30
|
-
icon:
|
|
91
|
+
icon: fa-solid fa-folder-open
|
|
31
92
|
url: categories/
|
|
32
93
|
- name: 标签
|
|
33
|
-
icon:
|
|
94
|
+
icon: fa-solid fa-tags
|
|
34
95
|
url: tags/
|
|
35
96
|
- name: 归档
|
|
36
|
-
icon:
|
|
97
|
+
icon: fa-solid fa-archive
|
|
37
98
|
url: archives/
|
|
38
99
|
- name: 友链
|
|
39
|
-
icon:
|
|
100
|
+
icon: fa-solid fa-link
|
|
40
101
|
url: friends/
|
|
41
102
|
- name: 关于
|
|
42
|
-
icon:
|
|
103
|
+
icon: fa-solid fa-info-circle
|
|
43
104
|
url: about/
|
|
44
105
|
search: Search... # Search bar placeholder
|
|
45
106
|
############################### Navigation Bar ############################### > end
|
|
@@ -53,7 +114,8 @@ cover:
|
|
|
53
114
|
home: true
|
|
54
115
|
archive: true
|
|
55
116
|
others: false # can be written in front-matter 'cover: true'
|
|
56
|
-
background: https://
|
|
117
|
+
background: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
|
|
118
|
+
# background: https://bing.ioliu.cn/v1/rand?w=1920&h=1200
|
|
57
119
|
logo: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-Cover@3x.png
|
|
58
120
|
title: 'Volantis'
|
|
59
121
|
subtitle: ''
|
|
@@ -61,34 +123,34 @@ cover:
|
|
|
61
123
|
features:
|
|
62
124
|
- name: 文档
|
|
63
125
|
icon: #
|
|
64
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f5c3.svg
|
|
126
|
+
img: volantis-static/media/twemoji/assets/svg/1f5c3.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f5c3.svg
|
|
65
127
|
url: /v4/getting-started/
|
|
66
128
|
- name: 帮助
|
|
67
129
|
icon: #
|
|
68
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f516.svg
|
|
130
|
+
img: volantis-static/media/twemoji/assets/svg/1f516.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f516.svg
|
|
69
131
|
url: faqs/
|
|
70
132
|
- name: 示例
|
|
71
133
|
icon: #
|
|
72
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f396.svg
|
|
134
|
+
img: volantis-static/media/twemoji/assets/svg/1f396.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f396.svg
|
|
73
135
|
url: /examples/
|
|
74
136
|
- name: 社区
|
|
75
137
|
icon: #
|
|
76
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f389.svg
|
|
138
|
+
img: volantis-static/media/twemoji/assets/svg/1f389.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f389.svg
|
|
77
139
|
url: /contributors/
|
|
78
140
|
- name: 博客
|
|
79
141
|
icon: #
|
|
80
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f4f0.svg
|
|
142
|
+
img: volantis-static/media/twemoji/assets/svg/1f4f0.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f4f0.svg
|
|
81
143
|
url: /archives/
|
|
82
144
|
- name: 源码
|
|
83
145
|
icon: #
|
|
84
|
-
img: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f9ec.svg
|
|
146
|
+
img: volantis-static/media/twemoji/assets/svg/1f9ec.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f9ec.svg
|
|
85
147
|
url: https://github.com/volantis-x/hexo-theme-volantis/
|
|
86
148
|
############################### Cover ############################### > end
|
|
87
149
|
|
|
88
150
|
pages:
|
|
89
151
|
# 友链页面配置
|
|
90
152
|
friends:
|
|
91
|
-
layout_scheme: traditional # simple: 简单布局, traditional:
|
|
153
|
+
layout_scheme: traditional # simple: 简单布局, traditional: 传统布局
|
|
92
154
|
|
|
93
155
|
############################### Article Layout ############################### > start
|
|
94
156
|
# 文章布局
|
|
@@ -97,11 +159,13 @@ article:
|
|
|
97
159
|
preview:
|
|
98
160
|
scheme: landscape # landscape
|
|
99
161
|
# pin icon for post
|
|
100
|
-
pin_icon: https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f4cc.svg
|
|
162
|
+
pin_icon: volantis-static/media/twemoji/assets/svg/1f4cc.svg # https://cdn.jsdelivr.net/gh/twitter/twemoji@13.0/assets/svg/1f4cc.svg
|
|
101
163
|
# auto generate title if not exist
|
|
102
164
|
auto_title: true # false, true
|
|
103
165
|
# auto generate excerpt if not exist
|
|
104
166
|
auto_excerpt: true # false, true
|
|
167
|
+
# hide excerpt
|
|
168
|
+
hide_excerpt: false
|
|
105
169
|
# show split line or not
|
|
106
170
|
line_style: solid # hidden, solid, dashed, dotted
|
|
107
171
|
# show author
|
|
@@ -112,7 +176,7 @@ article:
|
|
|
112
176
|
body:
|
|
113
177
|
# 文章顶部信息
|
|
114
178
|
# 从 meta_library 中取
|
|
115
|
-
top_meta: [author, category, date, counter]
|
|
179
|
+
top_meta: [author, category, date, counter] #启用评论数量需在此添加
|
|
116
180
|
# ----------------
|
|
117
181
|
# 文章页脚组件
|
|
118
182
|
footer_widget:
|
|
@@ -120,7 +184,7 @@ article:
|
|
|
120
184
|
# 参考资料、相关资料等 (for layout: post/docs)
|
|
121
185
|
references:
|
|
122
186
|
title: 参考资料
|
|
123
|
-
icon:
|
|
187
|
+
icon: fa-solid fa-quote-left
|
|
124
188
|
# 在 front-matter 中:
|
|
125
189
|
# references:
|
|
126
190
|
# - title: 某篇文章
|
|
@@ -132,10 +196,10 @@ article:
|
|
|
132
196
|
related_posts:
|
|
133
197
|
enable: false
|
|
134
198
|
title: 相关文章
|
|
135
|
-
icon:
|
|
199
|
+
icon: fa-solid fa-bookmark
|
|
136
200
|
max_count: 5
|
|
137
201
|
# 设为空则不使用文章头图
|
|
138
|
-
placeholder_img:
|
|
202
|
+
placeholder_img: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
|
|
139
203
|
# ----------------
|
|
140
204
|
# 版权声明组件 (for layout: post)
|
|
141
205
|
copyright:
|
|
@@ -149,93 +213,124 @@ article:
|
|
|
149
213
|
donate:
|
|
150
214
|
enable: false
|
|
151
215
|
images:
|
|
152
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
153
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
216
|
+
- volantis-static/media/org.volantis/blog/qrcode/github@volantis.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
217
|
+
- volantis-static/media/org.volantis/blog/qrcode/github@volantis.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
154
218
|
# 文章底部信息
|
|
155
219
|
# 从 meta_library 中取
|
|
156
220
|
bottom_meta: [updated, tags, share]
|
|
157
221
|
# meta library
|
|
158
222
|
meta_library:
|
|
159
|
-
# 默认文章作者(可在 front-matter
|
|
223
|
+
# 默认文章作者(可在 _data/author.yaml 中增加其他作者,并在 front-matter 中设置)
|
|
224
|
+
# https://volantis.js.org/advanced-settings/#多人协同
|
|
160
225
|
author:
|
|
161
|
-
avatar:
|
|
226
|
+
avatar: volantis-static/media/org.volantis/blog/favicon/apple-touch-icon.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/favicon/apple-touch-icon.png
|
|
162
227
|
name: 请设置文章作者
|
|
163
228
|
url: /
|
|
164
229
|
# 文章创建日期
|
|
165
230
|
date:
|
|
166
|
-
icon:
|
|
231
|
+
icon: fa-solid fa-calendar-alt
|
|
167
232
|
title: '发布于:'
|
|
168
233
|
format: 'll' # 日期格式 http://momentjs.com/docs/
|
|
169
234
|
# 文章更新日期
|
|
170
235
|
updated:
|
|
171
|
-
icon:
|
|
236
|
+
icon: fa-solid fa-edit
|
|
172
237
|
title: '更新于:'
|
|
173
238
|
format: 'll' # 日期格式 http://momentjs.com/docs/
|
|
174
239
|
# 文章分类
|
|
175
240
|
category:
|
|
176
|
-
icon:
|
|
241
|
+
icon: fa-solid fa-folder-open
|
|
177
242
|
# 文章浏览计数
|
|
178
243
|
counter:
|
|
179
|
-
icon:
|
|
244
|
+
icon: fa-solid fa-eye
|
|
180
245
|
unit: '次浏览'
|
|
181
|
-
#
|
|
182
|
-
|
|
183
|
-
icon:
|
|
246
|
+
# waline 文章评论数量
|
|
247
|
+
walinecount:
|
|
248
|
+
icon: fa-solid fa-comment-dots
|
|
184
249
|
desc: '' # 条评论
|
|
185
250
|
# 文章字数和阅读时长
|
|
186
251
|
wordcount:
|
|
187
|
-
icon_wordcount:
|
|
188
|
-
icon_duration:
|
|
252
|
+
icon_wordcount: fa-solid fa-keyboard
|
|
253
|
+
icon_duration: fa-solid fa-hourglass-half
|
|
189
254
|
# 文章标签
|
|
190
255
|
tags:
|
|
191
|
-
icon:
|
|
256
|
+
icon: fa-solid fa-hashtag
|
|
192
257
|
# 分享
|
|
193
258
|
share:
|
|
194
259
|
- id: qq
|
|
195
|
-
img: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/qq.png
|
|
260
|
+
img: volantis-static/media/org.volantis/logo/128/qq.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/qq.png
|
|
196
261
|
- id: qzone
|
|
197
|
-
img: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/qzone.png
|
|
262
|
+
img: volantis-static/media/org.volantis/logo/128/qzone.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/qzone.png
|
|
198
263
|
- id: weibo
|
|
199
|
-
img: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/weibo.png
|
|
264
|
+
img: volantis-static/media/org.volantis/logo/128/weibo.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/weibo.png
|
|
200
265
|
- id: # qrcode # 当id为qrcode时需要安装插件 npm i hexo-helper-qrcode
|
|
201
|
-
img: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/wechat.png
|
|
266
|
+
img: # volantis-static/media/org.volantis/logo/128/wechat.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/wechat.png
|
|
202
267
|
- id: # telegram
|
|
203
|
-
img: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/telegram.png
|
|
268
|
+
img: # volantis-static/media/org.volantis/logo/128/telegram.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/128/telegram.png
|
|
204
269
|
############################### Article Layout ############################### > end
|
|
205
270
|
|
|
206
271
|
|
|
207
272
|
############################### Comments ############################### > start
|
|
208
273
|
comments:
|
|
209
|
-
title: <i class='
|
|
274
|
+
title: <i class='fa-solid fa-comments'></i> 评论
|
|
210
275
|
subtitle:
|
|
211
|
-
service:
|
|
212
|
-
#
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
lang: zh-cn
|
|
227
|
-
highlight: true
|
|
228
|
-
visitor: true
|
|
229
|
-
mathJax: false
|
|
230
|
-
# MiniValine
|
|
231
|
-
# https://github.com/MiniValine/MiniValine
|
|
232
|
-
minivaline:
|
|
233
|
-
js: https://cdn.jsdelivr.net/npm/minivaline@latest
|
|
234
|
-
path: # 全局评论地址
|
|
235
|
-
placeholder: 快来评论吧~ # 全局评论占位提示
|
|
236
|
-
# 更多选项 https://minivaline.js.org/docs/cn/#/Options 按照yml格式继续填写即可 (除了 [el] [pathname] [placeholder] 选项) emoticonUrl可参考 https://github.com/MiniValine/hexo-next-minivaline
|
|
237
|
-
# mode: xCss # DesertsP or xCss
|
|
276
|
+
service: giscus
|
|
277
|
+
# 可选评论系统 #
|
|
278
|
+
|
|
279
|
+
# artalk
|
|
280
|
+
# https://artalk.js.org/
|
|
281
|
+
# https://github.com/ArtalkJS/Artalk
|
|
282
|
+
artalk:
|
|
283
|
+
js: https://yours-artalk-domain/dist/Artalk.js # or https://unpkg.com/artalk@2.2.8/dist/Artalk.js
|
|
284
|
+
css: https://yours-artalk-domain/dist/Artalk.css # or https://unpkg.com/artalk@2.2.8/dist/Artalk.css
|
|
285
|
+
server: https://yours-artalk-domain # 修改为自建的后端服务地址
|
|
286
|
+
path: # 全局评论地址
|
|
287
|
+
placeholder: # 评论占位
|
|
288
|
+
# 更多置项可在 Artalk 后端进行配置,详见 https://artalk.js.org/guide/backend/fe-control.html
|
|
289
|
+
# 也可以在此处继续参考上方例子进行配置,不建议重写配置的字段除上方所述外还有:
|
|
290
|
+
# [el, useBackendConf, pageKey, pageTitle, site, darkMode, pvEl]
|
|
238
291
|
|
|
292
|
+
# giscus
|
|
293
|
+
# https://giscus.app
|
|
294
|
+
# https://github.com/laymonage/giscus
|
|
295
|
+
giscus:
|
|
296
|
+
# 以下配置按照 yml 格式增删填写即可
|
|
297
|
+
# repo: xxx/xxx
|
|
298
|
+
# repo-id: xxx
|
|
299
|
+
# category: xxx
|
|
300
|
+
# category-id: xxx
|
|
301
|
+
# mapping: "pathname"
|
|
302
|
+
# reactions-enabled: "1"
|
|
303
|
+
# emit-metadata: "0"
|
|
304
|
+
# lang: "zh-CN"
|
|
305
|
+
# 以上配置按照 yml 格式增删填写即可
|
|
306
|
+
theme:
|
|
307
|
+
light: "light" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/light.css
|
|
308
|
+
dark: "dark" # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/dark.css
|
|
309
|
+
|
|
310
|
+
# beaudar
|
|
311
|
+
# https://beaudar.lipk.org/
|
|
312
|
+
beaudar:
|
|
313
|
+
repo: xxx/xxx
|
|
314
|
+
issue-term: pathname
|
|
315
|
+
issue-number:
|
|
316
|
+
branch: main
|
|
317
|
+
position: top
|
|
318
|
+
order: desc
|
|
319
|
+
theme:
|
|
320
|
+
light: github-light
|
|
321
|
+
dark: github-dark
|
|
322
|
+
label: ✨💬✨
|
|
323
|
+
|
|
324
|
+
# utterances
|
|
325
|
+
# https://utteranc.es/
|
|
326
|
+
utterances:
|
|
327
|
+
repo: xxx/xxx
|
|
328
|
+
issue-term: pathname
|
|
329
|
+
issue-number:
|
|
330
|
+
theme:
|
|
331
|
+
light: github-light
|
|
332
|
+
dark: github-dark
|
|
333
|
+
label: ✨💬✨
|
|
239
334
|
|
|
240
335
|
# Disqus
|
|
241
336
|
# https://disqus.com
|
|
@@ -244,46 +339,107 @@ comments:
|
|
|
244
339
|
# optional
|
|
245
340
|
autoload: false
|
|
246
341
|
path: # 全局评论地址
|
|
342
|
+
|
|
343
|
+
# DisqusJS
|
|
344
|
+
# https://github.com/SukkaW/DisqusJS
|
|
345
|
+
disqusjs:
|
|
346
|
+
path: # 全局评论地址
|
|
347
|
+
js: https://unpkg.com/disqusjs@1.3/dist/disqus.js
|
|
348
|
+
css: https://unpkg.com/disqusjs@1.3/dist/disqusjs.css
|
|
349
|
+
# 配置项按照yml格式继续填写即可 除了 [siteName url identifier] 选项
|
|
350
|
+
#shortname:
|
|
351
|
+
#api:
|
|
352
|
+
#apikey:
|
|
353
|
+
#admin:
|
|
354
|
+
#nesting:
|
|
355
|
+
|
|
247
356
|
# Gitalk
|
|
248
357
|
# https://gitalk.github.io/
|
|
249
358
|
gitalk:
|
|
359
|
+
js: https://unpkg.com/gitalk@1/dist/gitalk.min.js
|
|
360
|
+
# 配置项按照yml格式继续填写即可 除了 [id distractionFreeMode] 选项
|
|
250
361
|
clientID:
|
|
251
362
|
clientSecret:
|
|
252
363
|
repo:
|
|
253
364
|
owner:
|
|
254
365
|
admin: # []
|
|
255
366
|
path: # 全局评论地址
|
|
256
|
-
|
|
367
|
+
|
|
368
|
+
# Vssue 暂不支持Pjax
|
|
257
369
|
# https://vssue.js.org/zh/
|
|
258
370
|
vssue:
|
|
371
|
+
js: https://cdn.jsdelivr.net/gh/meteorlxy/vssue@1.4.4/packages/vssue/dist/vssue.github.min.js
|
|
372
|
+
css: https://cdn.jsdelivr.net/gh/meteorlxy/vssue@1.4.4/packages/vssue/dist/vssue.min.css
|
|
373
|
+
vue: https://cdn.jsdelivr.net/gh/vuejs/vue@2.6.11/dist/vue.runtime.min.js
|
|
259
374
|
owner:
|
|
260
375
|
repo:
|
|
261
376
|
clientId:
|
|
262
377
|
clientSecret:
|
|
263
|
-
|
|
378
|
+
|
|
379
|
+
# LiveRe 暂不支持Pjax
|
|
264
380
|
# https://www.livere.com
|
|
265
381
|
livere:
|
|
266
382
|
uid:
|
|
383
|
+
|
|
267
384
|
# Isso
|
|
268
385
|
# https://posativ.org/isso/
|
|
269
386
|
isso:
|
|
270
387
|
url: https://example.com/(path/)
|
|
271
388
|
src: https://example.com/(path/)js/embed.min.js
|
|
272
|
-
|
|
389
|
+
css:
|
|
390
|
+
gravatar:
|
|
391
|
+
|
|
392
|
+
# HashOver 暂不支持Pjax
|
|
273
393
|
# https://www.barkdull.org/software/hashover
|
|
274
394
|
hashover:
|
|
275
395
|
src: https://example.com/(path/)comments.php
|
|
396
|
+
|
|
276
397
|
# Twikoo
|
|
277
398
|
# https://twikoo.js.org/
|
|
278
399
|
twikoo:
|
|
279
|
-
js:
|
|
400
|
+
js: https://unpkg.com/twikoo@latest # 建议锁定版本
|
|
401
|
+
path: # 全局评论地址
|
|
402
|
+
# 其他配置项按照yml格式继续填写即可 除了 [el path] 选项
|
|
280
403
|
envId: xxxxxxxxxxxxxxx # 腾讯云环境id
|
|
404
|
+
placeholder: #全局评论占位,也可以在管理面板中的配置管理处设置(此处优先级更高)
|
|
405
|
+
|
|
406
|
+
# Waline
|
|
407
|
+
# https://waline.js.org/
|
|
408
|
+
waline:
|
|
409
|
+
js: https://unpkg.com/@waline/client@v2/dist/waline.js
|
|
410
|
+
css: https://unpkg.com/@waline/client@v2/dist/waline.css
|
|
411
|
+
path: # 全局评论地址 目前设置全局评论地址后visitor失效,这是waline的问题
|
|
412
|
+
placeholder: # 评论占位提示
|
|
413
|
+
serverURL: # Waline 的服务端地址(必填) 测试用地址: https://waline.vercel.app
|
|
414
|
+
imageUploader:
|
|
415
|
+
# 以兰空图床为例,下列填写内容为:
|
|
416
|
+
# url: https://xxxxxx/api/v1/upload
|
|
417
|
+
# token: Bearer xxxxxxxxxxxxxx
|
|
418
|
+
# resp: data.links.url
|
|
419
|
+
api: # 图床地址
|
|
420
|
+
token: # 图床验证
|
|
421
|
+
resp: # 图片地址返回值的字段
|
|
422
|
+
pageview: true # 浏览量统计
|
|
423
|
+
comment: true # 评论数统计
|
|
424
|
+
# 其他配置项按照yml格式继续填写即可 除了 [el path imageUploader] 选项
|
|
425
|
+
# 组件属性地址:https://waline.js.org/reference/component.html
|
|
426
|
+
# meta: ['nick', 'mail', 'link']
|
|
427
|
+
|
|
428
|
+
# Discuss
|
|
429
|
+
# https://discuss.js.org
|
|
430
|
+
discuss:
|
|
431
|
+
js: https://cdn.jsdelivr.net/npm/discuss/dist/Discuss.js # 建议锁定版本
|
|
432
|
+
serverURLs: # Discuss server address url
|
|
433
|
+
# https://discuss.js.org/Quick-Start.html#path
|
|
434
|
+
|
|
435
|
+
|
|
281
436
|
############################### Comments ############################### > end
|
|
282
437
|
|
|
283
438
|
############################### Sidebar ############################### > start
|
|
284
439
|
sidebar:
|
|
440
|
+
position: right # left right
|
|
285
441
|
# 主页、分类、归档等独立页面
|
|
286
|
-
for_page: [blogger, category, tagcloud,
|
|
442
|
+
for_page: [blogger, category, tagcloud, donate]
|
|
287
443
|
# layout: docs/post 这类文章页面
|
|
288
444
|
for_post: [toc]
|
|
289
445
|
# 侧边栏组件库
|
|
@@ -293,20 +449,20 @@ sidebar:
|
|
|
293
449
|
blogger:
|
|
294
450
|
class: blogger
|
|
295
451
|
display: [desktop, mobile] # [desktop, mobile]
|
|
296
|
-
avatar: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png
|
|
452
|
+
avatar: volantis-static/media/org.volantis/blog/Logo-NavBar@3x.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png
|
|
297
453
|
shape: rectangle # circle, rectangle
|
|
298
454
|
url: /about/
|
|
299
455
|
title:
|
|
300
456
|
subtitle:
|
|
301
457
|
jinrishici: true # Poetry Today. You can set a string, and it will be displayed when loading fails.
|
|
302
458
|
social:
|
|
303
|
-
- icon:
|
|
459
|
+
- icon: fa-solid fa-rss
|
|
304
460
|
url: /atom.xml
|
|
305
|
-
- icon:
|
|
461
|
+
- icon: fa-solid fa-envelope
|
|
306
462
|
url: mailto:me@xxx.com
|
|
307
463
|
- icon: fab fa-github
|
|
308
464
|
url: https://github.com/volantis-x/
|
|
309
|
-
- icon:
|
|
465
|
+
- icon: fa-solid fa-headphones-alt
|
|
310
466
|
url: /
|
|
311
467
|
# ---------------------------------------
|
|
312
468
|
# toc widget (valid only in articles)
|
|
@@ -314,18 +470,24 @@ sidebar:
|
|
|
314
470
|
class: toc
|
|
315
471
|
display: [desktop, mobile] # [desktop, mobile]
|
|
316
472
|
header:
|
|
317
|
-
icon:
|
|
473
|
+
icon: fa-solid fa-list
|
|
318
474
|
title: 本文目录
|
|
319
475
|
list_number: false
|
|
320
476
|
min_depth: 2
|
|
321
477
|
max_depth: 5
|
|
322
478
|
# ---------------------------------------
|
|
479
|
+
# music
|
|
480
|
+
music:
|
|
481
|
+
class: music
|
|
482
|
+
display: [desktop, mobile] # [desktop, mobile]
|
|
483
|
+
pjaxReload: false
|
|
484
|
+
# ---------------------------------------
|
|
323
485
|
# category widget
|
|
324
486
|
category:
|
|
325
487
|
class: category
|
|
326
488
|
display: [desktop] # [desktop, mobile]
|
|
327
489
|
header:
|
|
328
|
-
icon:
|
|
490
|
+
icon: fa-solid fa-folder-open
|
|
329
491
|
title: 文章分类
|
|
330
492
|
url: /blog/categories/
|
|
331
493
|
# ---------------------------------------
|
|
@@ -334,7 +496,7 @@ sidebar:
|
|
|
334
496
|
class: tagcloud
|
|
335
497
|
display: [desktop, mobile] # [desktop, mobile]
|
|
336
498
|
header:
|
|
337
|
-
icon:
|
|
499
|
+
icon: fa-solid fa-tags
|
|
338
500
|
title: 热门标签
|
|
339
501
|
url: /blog/tags/
|
|
340
502
|
min_font: 14
|
|
@@ -342,23 +504,22 @@ sidebar:
|
|
|
342
504
|
color: true
|
|
343
505
|
start_color: '#999'
|
|
344
506
|
end_color: '#555'
|
|
345
|
-
|
|
346
507
|
# ---------------------------------------
|
|
347
508
|
# qrcode widget
|
|
348
|
-
|
|
509
|
+
qrcode:
|
|
349
510
|
class: qrcode
|
|
350
511
|
display: [desktop, mobile] # [desktop, mobile]
|
|
351
512
|
height: 64px # Automatic height if not set
|
|
352
513
|
images:
|
|
353
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
354
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
514
|
+
- volantis-static/media/org.volantis/blog/qrcode/github@volantis.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
515
|
+
- volantis-static/media/org.volantis/blog/qrcode/github@volantis.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
355
516
|
# ---------------------------------------
|
|
356
517
|
# webinfo widget
|
|
357
518
|
webinfo:
|
|
358
519
|
class: webinfo
|
|
359
520
|
display: [desktop]
|
|
360
521
|
header:
|
|
361
|
-
icon:
|
|
522
|
+
icon: fa-solid fa-award
|
|
362
523
|
title: 站点信息
|
|
363
524
|
type:
|
|
364
525
|
article:
|
|
@@ -375,7 +536,6 @@ sidebar:
|
|
|
375
536
|
text: '本站总字数:' # 需要启用 wordcount
|
|
376
537
|
unit: '字'
|
|
377
538
|
visitcounter:
|
|
378
|
-
service: leancloud # busuanzi, leancloud
|
|
379
539
|
siteuv:
|
|
380
540
|
enable: true
|
|
381
541
|
text: '本站访客数:'
|
|
@@ -389,6 +549,14 @@ sidebar:
|
|
|
389
549
|
friendlyShow: true # 更友好的时间显示
|
|
390
550
|
text: '最后活动时间:'
|
|
391
551
|
unit: '日'
|
|
552
|
+
# ---------------------------------------
|
|
553
|
+
# lastupdate widget
|
|
554
|
+
lastupdate:
|
|
555
|
+
class: lastupdate
|
|
556
|
+
display: [desktop, mobile]
|
|
557
|
+
header:
|
|
558
|
+
icon: fa-solid fa-clock WISTERIA
|
|
559
|
+
title: 最近更新
|
|
392
560
|
############################### Sidebar ############################### > end
|
|
393
561
|
|
|
394
562
|
|
|
@@ -399,14 +567,14 @@ tag_plugins:
|
|
|
399
567
|
note: # style for default note:
|
|
400
568
|
icon: '\f054'
|
|
401
569
|
color: ''
|
|
402
|
-
iconfont: 'Font Awesome
|
|
570
|
+
iconfont: 'Font Awesome 6 Free'
|
|
403
571
|
# {% checkbox %}
|
|
404
572
|
checkbox:
|
|
405
573
|
interactive: false # enable interactive for user
|
|
406
574
|
color: '' # color for default checkbox
|
|
407
575
|
# {% link title, url, img %}
|
|
408
576
|
link:
|
|
409
|
-
placeholder: https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/256/safari.png
|
|
577
|
+
placeholder: volantis-static/media/org.volantis/logo/256/safari.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/logo/256/safari.png
|
|
410
578
|
############################### Tag Plugins ############################### > end
|
|
411
579
|
|
|
412
580
|
|
|
@@ -415,7 +583,7 @@ site_footer:
|
|
|
415
583
|
# layout of footer: [aplayer, social, license, info, copyright]
|
|
416
584
|
layout: [aplayer, social, license, analytics, info, copyright]
|
|
417
585
|
social:
|
|
418
|
-
- icon: #
|
|
586
|
+
- icon: #fa-solid fa-rss
|
|
419
587
|
url:
|
|
420
588
|
# or
|
|
421
589
|
- img:
|
|
@@ -427,10 +595,10 @@ site_footer:
|
|
|
427
595
|
source: https://github.com/volantis-x/volantis-docs/
|
|
428
596
|
# analytics using leancloud
|
|
429
597
|
analytics: >
|
|
430
|
-
<span id="lc-sv">本站总访问量为 <span id='number'><i class="
|
|
431
|
-
<span id="lc-uv">访客数为 <span id='number'><i class="
|
|
598
|
+
<span id="lc-sv">本站总访问量为 <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 次</span>
|
|
599
|
+
<span id="lc-uv">访客数为 <span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span> 人</span>
|
|
432
600
|
# site copyright
|
|
433
|
-
copyright: '[Copyright © 2017
|
|
601
|
+
copyright: '[Copyright © since 2017 XXX](/)'
|
|
434
602
|
# You can add your own property here. (Support markdown, for example: br: '<br>')
|
|
435
603
|
br: '<br>'
|
|
436
604
|
############################### Site Footer ############################### > end
|
|
@@ -439,54 +607,92 @@ site_footer:
|
|
|
439
607
|
plugins:
|
|
440
608
|
################ required plugins ################
|
|
441
609
|
# jquery
|
|
442
|
-
|
|
443
|
-
#
|
|
444
|
-
fontawesome
|
|
610
|
+
globalJquery: false # 全局引入 jquery
|
|
611
|
+
jquery: volantis-static/libs/jquery/dist/jquery.min.js # https://unpkg.com/jquery@3.6.0/dist/jquery.min.js
|
|
612
|
+
# fontawesome Pro 版本:https://cdn.jsdelivr.net/gh/inkss/fontawesome@6.0.0/css/all.min.css
|
|
613
|
+
fontawesome: volantis-static/libs/@fortawesome/fontawesome-free/css/all.min.css # https://unpkg.com/@fortawesome/fontawesome-free@6.1/css/all.min.css
|
|
614
|
+
# katex@0.15.2
|
|
615
|
+
katex:
|
|
616
|
+
js: volantis-static/libs/katex/katex.min.js # https://unpkg.com/katex@0.15.2/dist/katex.min.js
|
|
617
|
+
css: volantis-static/libs/katex/katex.min.css # https://unpkg.com/katex@0.15.2/dist/katex.min.css
|
|
618
|
+
render: volantis-static/libs/katex/contrib/auto-render.min.js # https://unpkg.com/katex@0.15.2/dist/contrib/auto-render.min.js
|
|
619
|
+
# mathjax@3.2.0
|
|
620
|
+
mathjax: volantis-static/libs/mathjax/es5/tex-mml-chtml.js # https://unpkg.com/mathjax@3.2.0/es5/tex-mml-chtml.js
|
|
621
|
+
# github-markdown-css@5.1.0
|
|
622
|
+
markdown: volantis-static/libs/github-markdown-css/github-markdown.css # https://unpkg.com/github-markdown-css@5.1.0/github-markdown.min.css
|
|
623
|
+
# marked@4.0.10
|
|
624
|
+
marked: volantis-static/libs/marked/marked.min.js # https://unpkg.com/marked@4.0.10/marked.min.js
|
|
625
|
+
# hls.js@1.1.3
|
|
626
|
+
hlsjs: volantis-static/libs/hls.js/dist/hls.min.js # https://unpkg.com/hls.js@1.1.3
|
|
627
|
+
# @fancyapps/ui@4.0.12
|
|
628
|
+
fancybox:
|
|
629
|
+
css: volantis-static/libs/@fancyapps/ui/dist/fancybox.css # https://unpkg.com/@fancyapps/ui@4.0.12/dist/fancybox.css
|
|
630
|
+
js: volantis-static/libs/@fancyapps/ui/dist/fancybox.umd.js # https://unpkg.com/@fancyapps/ui@4.0.12/dist/fancybox.umd.js
|
|
445
631
|
################ optional plugins ################
|
|
632
|
+
# issues api
|
|
633
|
+
sitesjs:
|
|
634
|
+
enable: true
|
|
635
|
+
friendsjs:
|
|
636
|
+
enable: true
|
|
637
|
+
contributorsjs:
|
|
638
|
+
enable: true
|
|
446
639
|
|
|
447
640
|
######## Plugins to improve loading speed:
|
|
448
|
-
|
|
449
641
|
# 预加载
|
|
450
642
|
preload:
|
|
451
643
|
enable: true
|
|
452
644
|
service: flying_pages # instant_page, flying_pages
|
|
453
|
-
instant_page: https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/instant_page.js
|
|
454
|
-
flying_pages: https://cdn.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js
|
|
645
|
+
instant_page: volantis-static/libs/instant_page/instant_page.js # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/instant_page.js
|
|
646
|
+
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
|
|
455
647
|
|
|
456
648
|
# 图片懒加载
|
|
457
649
|
# https://www.npmjs.com/package/vanilla-lazyload
|
|
650
|
+
# tips:
|
|
651
|
+
# 这里是主题自带的图片懒加载, 实现方案位于 /scripts/filters/z-lazyload ; srcset 属性的的优先级比 src 属性要高, 注意 srcset 存放了懒加载占位图, src 存放了原图
|
|
652
|
+
# 在支持 srcset 的浏览器或者 RSS 阅读器(还会有人使用老旧的阅读器?)上会优先读取 srcset 加载的图片(懒加载占位图), 对于 RSS 中图片丢失变成懒加载占位图的问题, 建议 自行使用脚本移除 srcset 属性 或 关闭图片懒加载 或 在 RSS 中插入 vanilla-lazyload
|
|
458
653
|
lazyload:
|
|
459
654
|
enable: true
|
|
460
|
-
js: https://
|
|
655
|
+
js: volantis-static/libs/vanilla-lazyload/dist/lazyload.min.js # https://unpkg.com/vanilla-lazyload@17.1.0/dist/lazyload.min.js
|
|
461
656
|
onlypost: false
|
|
462
|
-
loadingImg: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@3/img/placeholder/c617bfd2497fcea598e621413e315c368f8d8e.svg
|
|
657
|
+
loadingImg: # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@3/img/placeholder/c617bfd2497fcea598e621413e315c368f8d8e.svg # 不建议使用占位图, 建议loadingImg为空, 当前占位图会产生布局偏移, loadingImg 为空占位图是一个 1X1 像素的图片
|
|
463
658
|
blurIn: true # 模糊加载效果 (loadingImg为空时有效)
|
|
464
659
|
|
|
465
660
|
######## Plugins to optimize the experience:
|
|
466
|
-
|
|
661
|
+
# 代码高亮
|
|
662
|
+
code_highlight: highlightjs # highlightjs or prismjs
|
|
467
663
|
# highlight.js
|
|
468
664
|
highlightjs:
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
#
|
|
665
|
+
copy_code: true
|
|
666
|
+
# 如果开启以下配置, hexo.config.highlight.enable 需要设置为 false ; hexo.config.highlight.enable 设置为 true, 则以下配置无效
|
|
667
|
+
# # 不再支持 v11.1.0 以下版本
|
|
668
|
+
# js: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js # Please set hexo.config.highlight.enable = false !!!
|
|
669
|
+
# css: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/styles/default.min.css
|
|
670
|
+
# # # more: https://www.jsdelivr.com/package/npm/highlight.js?path=styles
|
|
671
|
+
|
|
672
|
+
# prismjs
|
|
673
|
+
# https://prismjs.com/
|
|
674
|
+
# https://hexo.io/zh-cn/docs/syntax-highlight#PrismJS
|
|
675
|
+
prismjs:
|
|
676
|
+
copy_code: true
|
|
677
|
+
# Please set hexo.config.highlight.enable = false !!! set hexo.config.prismjs.enable = true !!!
|
|
678
|
+
js:
|
|
679
|
+
- https://unpkg.com/prismjs/components/prism-core.min.js
|
|
680
|
+
- https://unpkg.com/prismjs/plugins/autoloader/prism-autoloader.min.js
|
|
681
|
+
- https://unpkg.com/prismjs/plugins/line-numbers/prism-line-numbers.min.js
|
|
682
|
+
css:
|
|
683
|
+
- https://unpkg.com/prismjs/themes/prism-dark.css
|
|
684
|
+
- https://unpkg.com/prismjs/plugins/line-numbers/prism-line-numbers.css
|
|
473
685
|
|
|
474
686
|
# https://scrollrevealjs.org/api/reveal.html
|
|
475
687
|
scrollreveal:
|
|
476
|
-
enable:
|
|
477
|
-
js: https://
|
|
688
|
+
enable: true
|
|
689
|
+
js: volantis-static/libs/scrollreveal/dist/scrollreveal.min.js # https://unpkg.com/scrollreveal@4.0.9/dist/scrollreveal.min.js
|
|
478
690
|
distance: 32px
|
|
479
691
|
duration: 800 # ms
|
|
480
692
|
interval: 20 # ms
|
|
481
693
|
scale: 1 # 0.1~1
|
|
482
694
|
|
|
483
|
-
# Codeblock Copy Button
|
|
484
|
-
clipboard:
|
|
485
|
-
enable: #true
|
|
486
|
-
js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
|
|
487
|
-
|
|
488
695
|
######## Plugins for SEO:
|
|
489
|
-
|
|
490
696
|
# npm i hexo-wordcount
|
|
491
697
|
wordcount:
|
|
492
698
|
enable: #true
|
|
@@ -495,57 +701,58 @@ plugins:
|
|
|
495
701
|
# Button Ripple Effect
|
|
496
702
|
nodewaves:
|
|
497
703
|
enable: #true
|
|
498
|
-
css: https://
|
|
499
|
-
js: https://
|
|
704
|
+
css: volantis-static/libs/node-waves/dist/waves.min.css # https://unpkg.com/node-waves@0.7.6/dist/waves.min.css
|
|
705
|
+
js: volantis-static/libs/node-waves/dist/waves.min.js # https://unpkg.com/node-waves@0.7.6/dist/waves.min.js
|
|
500
706
|
|
|
501
|
-
# fontawesome
|
|
707
|
+
# fontawesome V6: https://fontawesome.com/docs/web/style/animate
|
|
708
|
+
# fontawesome animation for fontawesome V5
|
|
502
709
|
fontawesome_animation:
|
|
503
710
|
enable: #true
|
|
504
|
-
css: https://cdn.jsdelivr.net/gh/l-lin/font-awesome-animation/dist/font-awesome-animation.min.css
|
|
711
|
+
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
|
|
505
712
|
|
|
506
713
|
# Typing Effects
|
|
507
714
|
comment_typing:
|
|
508
715
|
enable: #true
|
|
509
|
-
js: https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/comment_typing.js
|
|
716
|
+
js: volantis-static/libs/comment_typing/comment_typing.js # https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/comment_typing.js
|
|
510
717
|
|
|
511
|
-
# Slide Background
|
|
512
|
-
|
|
718
|
+
# 视差滚动效果 Slide Background
|
|
719
|
+
parallax:
|
|
513
720
|
enable: #true
|
|
514
|
-
js: https://cdn.jsdelivr.net/npm/jquery-backstretch@2.1.18/jquery.backstretch.min.js
|
|
515
721
|
position: cover # cover: sticky on the cover. fixed: Fixed as background for the site.
|
|
516
722
|
shuffle: true # shuffle playlist
|
|
517
723
|
duration: 10000 # Duration (ms)
|
|
518
724
|
fade: 1500 # fade duration (ms) (Not more than 1500)
|
|
519
725
|
images: # For personal use only. At your own risk if used for commercial purposes !!!
|
|
520
|
-
-
|
|
521
|
-
-
|
|
522
|
-
-
|
|
523
|
-
-
|
|
524
|
-
-
|
|
525
|
-
-
|
|
526
|
-
-
|
|
527
|
-
-
|
|
528
|
-
-
|
|
529
|
-
-
|
|
530
|
-
-
|
|
531
|
-
-
|
|
532
|
-
-
|
|
533
|
-
-
|
|
534
|
-
-
|
|
535
|
-
-
|
|
536
|
-
-
|
|
537
|
-
-
|
|
538
|
-
-
|
|
539
|
-
-
|
|
540
|
-
-
|
|
726
|
+
- volantis-static/media/wallpaper/minimalist/2020/001.webp
|
|
727
|
+
- volantis-static/media/wallpaper/minimalist/2020/002.webp
|
|
728
|
+
- volantis-static/media/wallpaper/minimalist/2020/003.webp
|
|
729
|
+
- volantis-static/media/wallpaper/minimalist/2020/004.webp
|
|
730
|
+
- volantis-static/media/wallpaper/minimalist/2020/005.webp
|
|
731
|
+
- volantis-static/media/wallpaper/minimalist/2020/006.webp
|
|
732
|
+
- volantis-static/media/wallpaper/minimalist/2020/012.webp
|
|
733
|
+
- volantis-static/media/wallpaper/minimalist/2020/016.webp
|
|
734
|
+
- volantis-static/media/wallpaper/minimalist/2020/019.webp
|
|
735
|
+
- volantis-static/media/wallpaper/minimalist/2020/025.webp
|
|
736
|
+
- volantis-static/media/wallpaper/minimalist/2020/033.webp
|
|
737
|
+
- volantis-static/media/wallpaper/minimalist/2020/034.webp
|
|
738
|
+
- volantis-static/media/wallpaper/minimalist/2020/035.webp
|
|
739
|
+
- volantis-static/media/wallpaper/minimalist/2020/038.webp
|
|
740
|
+
- volantis-static/media/wallpaper/minimalist/2020/039.webp
|
|
741
|
+
- volantis-static/media/wallpaper/minimalist/2020/042.webp
|
|
742
|
+
- volantis-static/media/wallpaper/minimalist/2020/046.webp
|
|
743
|
+
- volantis-static/media/wallpaper/minimalist/2020/051.webp
|
|
744
|
+
- volantis-static/media/wallpaper/minimalist/2020/052.webp
|
|
745
|
+
- volantis-static/media/wallpaper/minimalist/2020/054.webp
|
|
746
|
+
- volantis-static/media/wallpaper/minimalist/2020/056.webp
|
|
541
747
|
|
|
542
748
|
# APlayer is only available in mainland China.
|
|
543
749
|
# APlayer config: https://github.com/metowolf/MetingJS
|
|
544
750
|
aplayer:
|
|
545
751
|
enable: #true
|
|
546
752
|
js:
|
|
547
|
-
aplayer: https://
|
|
548
|
-
meting: https://
|
|
753
|
+
aplayer: volantis-static/libs/aplayer/dist/APlayer.min.js # https://unpkg.com/aplayer@1.10/dist/APlayer.min.js
|
|
754
|
+
meting: volantis-static/libs/meting/dist/Meting.min.js # https://unpkg.com/meting@2.0/dist/Meting.min.js
|
|
755
|
+
css: volantis-static/libs/aplayer/dist/APlayer.min.css # https://unpkg.com/aplayer@1.10/dist/APlayer.min.css
|
|
549
756
|
# Required
|
|
550
757
|
server: netease # netease, tencent, kugou, xiami, baidu
|
|
551
758
|
type: playlist # song, playlist, album, search, artist
|
|
@@ -559,24 +766,53 @@ plugins:
|
|
|
559
766
|
volume: 0.7 # default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
|
|
560
767
|
list_max_height: 320px # list max height
|
|
561
768
|
list_folded: true
|
|
769
|
+
autoHide: true # hide automaticaly
|
|
770
|
+
|
|
771
|
+
# Pjax
|
|
562
772
|
pjax:
|
|
773
|
+
js: volantis-static/libs/pjax/pjax.min.js # https://unpkg.com/pjax@0.2.8/pjax.min.js
|
|
563
774
|
enable: true
|
|
775
|
+
cover: true # 封面是否pjax处理 false:每次切换页面封面都重载,适合封面较少的情况 true:封面经过Pjax处理,适合封面较多的情况
|
|
564
776
|
timeout: 5000 # The timeout in milliseconds for the XHR requests. Set to 0 to disable the timeout.
|
|
565
777
|
cacheBust: false # When set to true, Pjax appends a timestamp to skip the browser cache.
|
|
566
778
|
animation: false # false, nprogress, circle
|
|
779
|
+
nprogress: volantis-static/libs/nprogress/nprogress.js # https://unpkg.com/nprogress@0.2.0/nprogress.min.js
|
|
567
780
|
banUrl: # 被屏蔽的 url 地址将不启用 pjax 跳转,可以在控制台下使用 window.location.pathname 获取
|
|
568
|
-
# - /artitalk/
|
|
781
|
+
# - '/artitalk/' # artitalk 不支持 pjax
|
|
782
|
+
# - '/bbtalk/' # bbtalk 不支持 pjax
|
|
783
|
+
|
|
784
|
+
# 暗黑模式 darkmode
|
|
785
|
+
# 开关按钮:在 navbar.menu 中添加:
|
|
786
|
+
# - name: 暗黑模式 # 可自定义
|
|
787
|
+
# icon: fa-solid fa-moon # 可自定义
|
|
788
|
+
# toggle: darkmode
|
|
789
|
+
darkmode:
|
|
790
|
+
enable: #true
|
|
569
791
|
|
|
792
|
+
# 旧版 Internet Explorer 淘汰行动
|
|
793
|
+
# https://www.microsoft.com/zh-cn/WindowsForBusiness/End-of-IE-support
|
|
794
|
+
# 本主题不支持Internet Explorer的任何版本!!!
|
|
795
|
+
killOldVersionsOfIE:
|
|
796
|
+
enable: true
|
|
797
|
+
|
|
798
|
+
# 禁用JavaScript提示
|
|
799
|
+
# 本页面需要浏览器支持(启用)JavaScript
|
|
800
|
+
# 主题中的某些插件必须启用JavaScript才能正常工作,例如开启scrollreveal如果禁用JavaScript会导致卡片消失
|
|
801
|
+
killNoScript:
|
|
802
|
+
enable: true
|
|
570
803
|
|
|
571
804
|
# Artitalk https://artitalk.js.org
|
|
572
805
|
# 配置过程请参考:https://artitalk.js.org/doc.html
|
|
573
806
|
# 使用过旧版本的请修改Leancloud shuoshuo class部分列名:https://artitalk.js.org/release.html
|
|
574
807
|
# 除appID和appKEY外均为选填项
|
|
575
808
|
artitalk:
|
|
576
|
-
# Set `
|
|
809
|
+
# Set `plugins: ["artitalk"]` to enable in front-matter
|
|
810
|
+
# 不支持 Pjax
|
|
811
|
+
# 配置项按照yml格式继续填写即可
|
|
812
|
+
js: https://unpkg.com/artitalk
|
|
577
813
|
appId: ogP8qj3veMh0LFpFWMPOyF0X-MdYXbMMI # your appID
|
|
578
814
|
appKey: nHXLd3N3Jgh460t2iRQKWAtr # your appKEY
|
|
579
|
-
# serverURL: #leancloud
|
|
815
|
+
# serverURL: #leancloud绑定的api访问域名,使用国际版的话不需要填写
|
|
580
816
|
# lang: # 语言设置,zh为汉语,en为英语,es为西班牙语。默认为汉语
|
|
581
817
|
# pageSize: #每页说说的显示数量
|
|
582
818
|
# shuoPla: #在编辑说说的输入框中的占位符
|
|
@@ -588,37 +824,197 @@ plugins:
|
|
|
588
824
|
# color3: #说说字体颜色
|
|
589
825
|
# cssUrl: #自定义css接口
|
|
590
826
|
|
|
591
|
-
#
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
827
|
+
# BBtalk https://bb.js.org
|
|
828
|
+
bbtalk:
|
|
829
|
+
# Set `plugins: ["bbtalk"]` to enable in front-matter
|
|
830
|
+
# 不支持 Pjax
|
|
831
|
+
js: https://unpkg.com/bbtalk@0.1.5/dist/bbtalk.min.js # BBtalk.js
|
|
832
|
+
appId: 0KzOX4vC7Jsk6vzUGNeEiUaI-gzGzoHsz # your appID
|
|
833
|
+
appKey: HwCiWuxfpvKiLm4teCUgTIba # your appKEY
|
|
834
|
+
serverURLs: https://bbapi.heson10.com # Request Api 域名
|
|
598
835
|
|
|
599
|
-
#
|
|
600
|
-
#
|
|
601
|
-
#
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
836
|
+
# 友链朋友圈 hexo-circle-of-friends
|
|
837
|
+
# https://github.com/Rock-Candy-Tea/hexo-circle-of-friends
|
|
838
|
+
# https://fcircle-doc.js.cool/
|
|
839
|
+
fcircle:
|
|
840
|
+
# Set `plugins: ["fcircle"]` to enable in front-matter
|
|
841
|
+
# 支持 Pjax
|
|
842
|
+
api: '' # api 地址
|
|
843
|
+
message: '与主机通讯中……' # 占位文字
|
|
844
|
+
css: 'https://cdn.jsdelivr.net/gh/lmm214/immmmm/themes/hello-friend/static/fcircle-beta.css'
|
|
845
|
+
js: 'https://cdn.jsdelivr.net/gh/lmm214/immmmm/themes/hello-friend/static/fcircle-beta.js'
|
|
846
|
+
|
|
847
|
+
# 消息提示
|
|
848
|
+
# izitoast@1.4.0
|
|
849
|
+
message:
|
|
850
|
+
enable: true
|
|
851
|
+
css: volantis-static/libs/izitoast/dist/css/iziToast.min.css
|
|
852
|
+
js: volantis-static/libs/izitoast/dist/js/iziToast.min.js
|
|
853
|
+
icon: # 默认图标,支持对图标添加颜色,可选值:see:/source/css/_style/_plugins/fontcolor.styl
|
|
854
|
+
default: fa-solid fa-info-circle light-blue
|
|
855
|
+
quection: fa-solid fa-question-circle light-blue
|
|
856
|
+
time: # 默认持续时间
|
|
857
|
+
default: 5000
|
|
858
|
+
quection: 20000
|
|
859
|
+
position: 'topRight' # 弹出位置 可选值:topRight, bottomRight, bottomLeft, topLeft, topCenter, bottomCenter, center
|
|
860
|
+
transitionIn: 'bounceInLeft' # 弹窗打开动画 可选值:bounceInLeft, bounceInRight, bounceInUp, bounceInDown, fadeIn, fadeInDown, fadeInUp, fadeInLeft, fadeInRight, flipInX
|
|
861
|
+
transitionOut: 'fadeOutRight' # 弹窗关闭动画 可选值:fadeOut, fadeOutUp, fadeOutDown, fadeOutLeft, fadeOutRight, flipOutX
|
|
862
|
+
titleColor: 'var(--color-text)' # 标题颜色
|
|
863
|
+
messageColor: 'var(--color-text)' # 消息颜色
|
|
864
|
+
backgroundColor: 'var(--color-card)' # 默认背景色
|
|
865
|
+
zindex: 2147483647 # 层级
|
|
866
|
+
copyright: # 是否在复制时弹出版权提示,影响范围:ctrl+c、代码块复制按钮、右键复制选项
|
|
867
|
+
enable: true
|
|
868
|
+
title: '知识共享许可协议'
|
|
869
|
+
message: '请遵守 CC BY-NC-SA 4.0 协议。'
|
|
870
|
+
icon: 'far fa-copyright light-blue'
|
|
871
|
+
aplayer: # 是否开启音乐通知;播放、暂停、失败 时的图标
|
|
872
|
+
enable: true
|
|
873
|
+
play: fa-solid fa-play
|
|
874
|
+
pause: fa-solid fa-pause
|
|
875
|
+
rightmenu:
|
|
876
|
+
enable: true # 是否开启右键模块的消息通知
|
|
877
|
+
notice: true # 唤醒原右键菜单的通知
|
|
878
|
+
|
|
879
|
+
# 聊天功能
|
|
880
|
+
chat_service: # tidio or gitter
|
|
881
|
+
|
|
882
|
+
# Tidio
|
|
883
|
+
# https://www.tidio.com/
|
|
884
|
+
tidio:
|
|
885
|
+
id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
886
|
+
|
|
887
|
+
# Gitter
|
|
888
|
+
# https://gitter.im
|
|
889
|
+
gitter:
|
|
890
|
+
room: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
891
|
+
|
|
892
|
+
# swiper
|
|
893
|
+
# https://www.swiper.com.cn/
|
|
894
|
+
swiper:
|
|
895
|
+
enable: true
|
|
896
|
+
css: volantis-static/libs/swiper/swiper-bundle.min.css # https://unpkg.com/swiper@6/swiper-bundle.min.css
|
|
897
|
+
js: volantis-static/libs/swiper/swiper-bundle.min.js # https://unpkg.com/swiper@6/swiper-bundle.min.js
|
|
607
898
|
|
|
608
899
|
############################### Plugins ############################### > end
|
|
609
900
|
|
|
610
901
|
############################### Rightmenu ############################### > start
|
|
902
|
+
|
|
903
|
+
### 自定义右键 新
|
|
904
|
+
rightmenus:
|
|
905
|
+
enable: true
|
|
906
|
+
# 右键菜单项及加载顺序
|
|
907
|
+
# 内容示例:plugins.[组名], menus.[组名], hr(分割线,推荐去线留白), music(音乐控制器)
|
|
908
|
+
order:
|
|
909
|
+
- plugins.navigation
|
|
910
|
+
- hr
|
|
911
|
+
- plugins.inputBox
|
|
912
|
+
- plugins.seletctText
|
|
913
|
+
- plugins.elementCheck
|
|
914
|
+
- plugins.elementImage
|
|
915
|
+
- menus.link
|
|
916
|
+
- hr
|
|
917
|
+
- menus.darkMode
|
|
918
|
+
- plugins.articlePage
|
|
919
|
+
- music
|
|
920
|
+
############################
|
|
921
|
+
# - {id: '', name: '', icon: '', link: '', event: '', group: ''}
|
|
922
|
+
# id: 唯一值
|
|
923
|
+
# name: 用于菜单名称显示
|
|
924
|
+
# icon: 用于菜单图标显示
|
|
925
|
+
# link: 跳转链接
|
|
926
|
+
# event: 事件,当输入内容不为内置事件时,作 JavaScript 代码执行
|
|
927
|
+
# group: 菜单项所处分组名称
|
|
928
|
+
# 注:
|
|
929
|
+
# 1. link/event 二选一,同时出现时仅处理 link
|
|
930
|
+
# 2. 内置事件列表: copyText, copyLink, copyPaste, copyAll, copyCut, copyImg, printMode, readMode
|
|
931
|
+
# 3. 内置组列表:navigation, inputBox, seletctText, elementCheck, elementImage, articlePage
|
|
932
|
+
# 4. plugins 列允许自定义组内项目
|
|
933
|
+
# 5. menus 列允许自定义组及其内容
|
|
934
|
+
# 6. 除 navigation 外的内置组,在显示时会隐藏含 link 属性的菜单项
|
|
935
|
+
###########################
|
|
936
|
+
# 基础项设置
|
|
937
|
+
options:
|
|
938
|
+
# 图标前缀 fa-solid, fa-regular, fa-light, fa-thin, fa-duotone, fa-brands
|
|
939
|
+
iconPrefix: fa-solid
|
|
940
|
+
# 例外,在 articlePage 组显示时(文章页)时依旧显示含 link 属性的菜单项
|
|
941
|
+
articleShowLink: false
|
|
942
|
+
# 当设定全局音乐播放器时,是否一直显示音乐控制菜单。false:仅当音乐播放时启用
|
|
943
|
+
musicAlwaysShow: false
|
|
944
|
+
# 右键内置组,预置实现
|
|
945
|
+
plugins:
|
|
946
|
+
# 导航组件
|
|
947
|
+
# 横向排列,共用一行,仅显示图标 (原则上支持的数量不限)
|
|
948
|
+
navigation:
|
|
949
|
+
- {id: 'left', name: '转到上一页', icon: 'fa-solid fa-arrow-left', event: 'history.back()', group: 'navigation'}
|
|
950
|
+
- {id: 'right', name: '转到下一页', icon: 'fa-solid fa-arrow-right', event: 'history.forward()', group: 'navigation'}
|
|
951
|
+
- {id: 'redo', name: '刷新当前页面', icon: 'fa-solid fa-redo', event: 'window.location.reload()', group: 'navigation'}
|
|
952
|
+
- {id: 'up', name: '回到顶部', icon: 'fa-solid fa-arrow-up', event: 'VolantisApp.scrolltoElement(volantis.dom.bodyAnchor)', group: 'navigation'}
|
|
953
|
+
#- {id: 'home', name: '回到首页', icon: 'fa-solid fa-home', link: '/', group: 'navigation'}
|
|
954
|
+
# 文本输入框相关组件
|
|
955
|
+
# 生效于 input/textarea,粘贴、剪切、全选
|
|
956
|
+
inputBox:
|
|
957
|
+
- {id: 'copyPaste', name: '粘贴文本', icon: 'fa-solid fa-paste', event: 'copyPaste', group: 'inputBox'}
|
|
958
|
+
- {id: 'copyAll', name: '全选文本', icon: 'fa-solid fa-object-ungroup', event: 'copyAll', group: 'inputBox'}
|
|
959
|
+
- {id: 'copyCut', name: '剪切文本', icon: 'fa-solid fa-cut', event: 'copyCut', group: 'inputBox'}
|
|
960
|
+
# 文本选中类组件
|
|
961
|
+
# 生效于右键选中文本,__text__ 为选中的文本。
|
|
962
|
+
seletctText:
|
|
963
|
+
- {id: 'copyText', name: '复制文本', icon: 'fa-solid fa-copy', event: 'copyText', group: 'seletctText'}
|
|
964
|
+
- {id: 'searchWord', name: '站内搜索', icon: 'fa-solid fa-search', event: 'OpenSearch(__text__)', group: 'seletctText'}
|
|
965
|
+
- {id: 'bingSearch', name: '必应搜索', icon: 'fa-solid fa-search', event: 'window.open(`https://cn.bing.com/search?q=${__text__}`)', group: 'seletctText'}
|
|
966
|
+
#- {id: 'googleSearch', name: '谷歌搜索', icon: 'fa-solid fa-search', event: 'window.open(`https://www.google.com/search?q=${__text__}`)', group: 'seletctText'}
|
|
967
|
+
# 链接判断组件
|
|
968
|
+
# 生效于链接处的右键行为,__link__ 为链接地址
|
|
969
|
+
elementCheck:
|
|
970
|
+
- {id: 'openTab', name: '新标签页打开', icon: 'fa-solid fa-external-link-square-alt', event: 'window.open(__link__)', group: 'elementCheck'}
|
|
971
|
+
- {id: 'copyLink', name: '复制链接地址', icon: 'fa-solid fa-link', event: 'copyLink', group: 'elementCheck'}
|
|
972
|
+
# 图片判断类组件
|
|
973
|
+
# 生效于图片类的右键行为,__link__ 为链接地址
|
|
974
|
+
elementImage:
|
|
975
|
+
- {id: 'copyImg', name: '复制图片', icon: 'fa-solid fa-image', event: 'copyImg', group: 'elementImage'}
|
|
976
|
+
- {id: 'googleImg', name: '谷歌识图', icon: 'fa-solid fa-images', event: 'window.open(`https://www.google.com.hk/searchbyimage?image_url=${__link__}`)', group: 'elementImage'}
|
|
977
|
+
# 文章页面组件
|
|
978
|
+
# 生效于 post.article 页面
|
|
979
|
+
articlePage:
|
|
980
|
+
- {id: 'printMode', name: '打印页面', icon: 'fa-solid fa-print', event: 'printMode', group: 'articlePage'}
|
|
981
|
+
- {id: 'readMode', name: '阅读模式', icon: 'fa-solid fa-book-open', event: 'readMode', group: 'articlePage'}
|
|
982
|
+
# 右键自定义菜单区域
|
|
983
|
+
menus:
|
|
984
|
+
link:
|
|
985
|
+
- {id: 'help', name: '常见问题', icon: 'fa-solid fa-question', link: 'https://volantis.js.org/faqs/', group: 'link'}
|
|
986
|
+
- {id: 'examples', name: '示例博客', icon: 'fa-solid fa-rss', link: 'https://volantis.js.org/examples/', group: 'link'}
|
|
987
|
+
- {id: 'contributors', name: '加入社区', icon: 'fa-solid fa-fan', link: 'https://volantis.js.org/contributors/', group: 'link'}
|
|
988
|
+
- hr
|
|
989
|
+
- {id: 'source_docs', name: '本站源码', icon: 'fa-solid fa-code-branch', link: 'https://github.com/volantis-x/volantis-docs/', group: 'link'}
|
|
990
|
+
- {id: 'source_theme', name: '主题源码', icon: 'fa-solid fa-code-branch', link: 'https://github.com/volantis-x/hexo-theme-volantis/', group: 'link'}
|
|
991
|
+
darkMode:
|
|
992
|
+
- {id: 'darkMode', name: '暗黑模式', icon: 'fa-solid fa-moon', event: 'volantis.dark.toggle()', group: 'darkMode'}
|
|
993
|
+
###
|
|
994
|
+
|
|
611
995
|
# 自定义右键菜单
|
|
612
996
|
rightmenu:
|
|
613
|
-
enable:
|
|
997
|
+
enable: false
|
|
998
|
+
faicon: fa # 公共图标类型 fa fal fa-solid fa-duotone
|
|
614
999
|
# hr: 分割线, music: 音乐控制器
|
|
615
|
-
layout: [home, help, examples, contributors, hr, source_docs, source_theme, hr, print,
|
|
616
|
-
|
|
617
|
-
print:
|
|
1000
|
+
layout: [home, hr, help, examples, contributors, hr, source_docs, source_theme, hr, print, darkmode, reading, music]
|
|
1001
|
+
### 可选功能项 ###
|
|
1002
|
+
print: # 只有文章页才允许自定义打印
|
|
618
1003
|
name: 打印页面
|
|
619
1004
|
icon: fa fa-print
|
|
620
|
-
|
|
621
|
-
|
|
1005
|
+
darkmode: # 需开启 plugins.darkmodejs
|
|
1006
|
+
name: 暗黑模式
|
|
1007
|
+
icon: fa fa-moon
|
|
1008
|
+
reading:
|
|
1009
|
+
name: 阅读模式
|
|
1010
|
+
icon: fa fa-book-open
|
|
1011
|
+
customPicUrl: # 右键的图片复制:只有 Chrome 支持,且只支持 PNG 格式的图片。
|
|
1012
|
+
enable: false # 如果使用了对象存储且开启了自适应 Webp,那么可以提供额外的链接用以替换图片的访问地址
|
|
1013
|
+
old: #https://static.inkss.cn/img/article/
|
|
1014
|
+
new: #https://cdn.jsdelivr.net/gh/inkss/inkss-cdn@master/img/article/
|
|
1015
|
+
music: # 当设定全局音乐播放器时,是否一直显示音乐控制菜单。false:仅当音乐播放时启用
|
|
1016
|
+
alwaysShow: true
|
|
1017
|
+
### 自定义菜单 ###
|
|
622
1018
|
help:
|
|
623
1019
|
name: 常见问题
|
|
624
1020
|
icon: fa fa-question
|
|
@@ -644,35 +1040,24 @@ rightmenu:
|
|
|
644
1040
|
|
|
645
1041
|
############################### Search ############################### > start
|
|
646
1042
|
# To use hexo search, you need to install the following plugins:
|
|
647
|
-
# npm i hexo-generator-
|
|
1043
|
+
# npm i hexo-generator-json-content
|
|
648
1044
|
search:
|
|
649
1045
|
enable: true
|
|
650
|
-
service: hexo # hexo
|
|
1046
|
+
service: hexo # hexo
|
|
651
1047
|
js:
|
|
652
|
-
google:
|
|
653
|
-
apiKey:
|
|
654
|
-
engineId:
|
|
655
|
-
algolia:
|
|
656
|
-
applicationID:
|
|
657
|
-
apiKey:
|
|
658
|
-
indexName:
|
|
659
|
-
azure:
|
|
660
|
-
serviceName:
|
|
661
|
-
indexName:
|
|
662
|
-
queryKey:
|
|
663
|
-
baidu:
|
|
664
|
-
apiId:
|
|
665
1048
|
############################### Search ############################### > end
|
|
666
1049
|
|
|
667
1050
|
############################### Color Scheme ############################### > start
|
|
1051
|
+
# Accessibility: 背景色和前景色要有足够的对比度 https://web.dev/color-contrast/
|
|
1052
|
+
# https://ant.design/docs/spec/colors-cn
|
|
668
1053
|
color_scheme:
|
|
669
1054
|
# ------------
|
|
670
1055
|
# 通用颜色
|
|
671
1056
|
common:
|
|
672
1057
|
# 主题色
|
|
673
|
-
theme: '#
|
|
1058
|
+
theme: '#3dd9b6'
|
|
674
1059
|
# 链接色
|
|
675
|
-
link: '#
|
|
1060
|
+
link: '#2092ec'
|
|
676
1061
|
# 按钮色
|
|
677
1062
|
button: '#44D7B6'
|
|
678
1063
|
# 鼠标放到交互元素上时的色
|
|
@@ -720,56 +1105,58 @@ color_scheme:
|
|
|
720
1105
|
meta: '#888'
|
|
721
1106
|
# ------------
|
|
722
1107
|
# 暗色主题
|
|
1108
|
+
# https://www.maijisheji.com/2094.html
|
|
723
1109
|
dark:
|
|
724
|
-
#
|
|
725
|
-
|
|
1110
|
+
# 网站最深底色 # Dark Grey 1
|
|
1111
|
+
site_bd: '#121212'
|
|
1112
|
+
# 网站背景色 # Dark Grey 2
|
|
1113
|
+
site_bg: '#1f1f1f'
|
|
1114
|
+
# 卡片背景色 # Dark Grey 3
|
|
1115
|
+
card: '#262626'
|
|
726
1116
|
# 网站背景上的文字
|
|
727
|
-
site_inner: '#
|
|
1117
|
+
site_inner: '#eeeeeede'
|
|
728
1118
|
# 网站页脚文字
|
|
729
|
-
site_footer: '#
|
|
730
|
-
# 卡片背景色
|
|
731
|
-
card: '#333'
|
|
1119
|
+
site_footer: '#aaaaaade'
|
|
732
1120
|
# 卡片上的普通文字
|
|
733
|
-
text: '#
|
|
1121
|
+
text: '#eeeeeede'
|
|
734
1122
|
|
|
735
|
-
# 区块和代码块背景色
|
|
736
|
-
block: '#
|
|
737
|
-
# 代码块高亮时的背景色
|
|
738
|
-
codeblock: '#
|
|
1123
|
+
# 区块和代码块背景色 # Dark Grey 4
|
|
1124
|
+
block: '#434343'
|
|
1125
|
+
# 代码块高亮时的背景色 # Dark Grey 2
|
|
1126
|
+
codeblock: '#1f1f1f'
|
|
739
1127
|
# 行内代码颜色
|
|
740
1128
|
inlinecode: '#D56D28'
|
|
741
1129
|
|
|
742
|
-
# 文章部分
|
|
743
|
-
h1: '#
|
|
744
|
-
h2: '#
|
|
745
|
-
h3: '#
|
|
746
|
-
h4: '#
|
|
747
|
-
h5: '#
|
|
748
|
-
h6: '#
|
|
749
|
-
p: '#
|
|
1130
|
+
# 文章部分 高强度文本的不透明度应为87% 中等重点文字适用于60%
|
|
1131
|
+
h1: '#FFFFFFde' # Dark Grey 8
|
|
1132
|
+
h2: '#FFFFFFde'
|
|
1133
|
+
h3: '#FFFFFF99' # Dark Grey 7
|
|
1134
|
+
h4: '#FFFFFF99'
|
|
1135
|
+
h5: '#FFFFFF99'
|
|
1136
|
+
h6: '#FFFFFF99'
|
|
1137
|
+
p: '#d9d9d9de' # Dark Grey 6
|
|
750
1138
|
|
|
751
|
-
# 列表文字
|
|
752
|
-
list: '#
|
|
1139
|
+
# 列表文字 # Dark Grey 6
|
|
1140
|
+
list: '#d9d9d9de'
|
|
753
1141
|
# 列表 hover 时的文字
|
|
754
1142
|
list_hl: 'mix($color-theme, #fff, 80)'
|
|
755
|
-
# 辅助性文字
|
|
756
|
-
meta: '#
|
|
1143
|
+
# 辅助性文字 # Dark Grey 5
|
|
1144
|
+
meta: '#bfbfbfde'
|
|
757
1145
|
# 夜间图片亮度
|
|
758
1146
|
brightness: 70%
|
|
759
1147
|
############################### Color Scheme ############################### > end
|
|
760
1148
|
|
|
761
1149
|
############################### Custom css ############################### > start
|
|
762
1150
|
custom_css:
|
|
763
|
-
toc_smooth: true # TOC 目录平滑滚动效果
|
|
764
1151
|
cursor:
|
|
765
1152
|
enable: #true
|
|
766
|
-
text: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
767
|
-
pointer: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
768
|
-
default: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
769
|
-
not-allowed: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
770
|
-
zoom-out: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
771
|
-
zoom-in: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
772
|
-
grab: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
1153
|
+
text: volantis-static/media/cursor/text.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/text.png
|
|
1154
|
+
pointer: volantis-static/media/cursor/pointer.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/pointer.png
|
|
1155
|
+
default: volantis-static/media/cursor/left_ptr.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/left_ptr.png
|
|
1156
|
+
not-allowed: volantis-static/media/cursor/circle.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/circle.png
|
|
1157
|
+
zoom-out: volantis-static/media/cursor/zoom-out.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/zoom-out.png
|
|
1158
|
+
zoom-in: volantis-static/media/cursor/zoom-in.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/zoom-in.png
|
|
1159
|
+
grab: volantis-static/media/cursor/openhand.png # https://cdn.jsdelivr.net/gh/inkss/common@1/cursor/openhand.png
|
|
773
1160
|
font_smoothing: true # font-smoothing for webkit
|
|
774
1161
|
max_width: 1080px # Sum of body width and sidebar width (This limit will be exceeded when the device width is greater than 2000px, reaching 75% of the total width)
|
|
775
1162
|
scrollbar:
|
|
@@ -778,14 +1165,13 @@ custom_css:
|
|
|
778
1165
|
navbar:
|
|
779
1166
|
height: 64px
|
|
780
1167
|
width: auto # auto, max
|
|
781
|
-
effect: [shadow, blur] # [shadow, floatable, blur]
|
|
1168
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
782
1169
|
sidebar:
|
|
783
|
-
effect: [shadow] # [shadow, floatable, blur]
|
|
1170
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
784
1171
|
body:
|
|
785
|
-
effect: [shadow] # [shadow, floatable, blur]
|
|
1172
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
786
1173
|
highlight:
|
|
787
1174
|
language: true # show language of codeblock
|
|
788
|
-
copy_btn: true
|
|
789
1175
|
grayscale: false # Enable grayscale effect
|
|
790
1176
|
text_align: # left, right, justify, center
|
|
791
1177
|
h1: left
|
|
@@ -820,19 +1206,19 @@ custom_css:
|
|
|
820
1206
|
logofont:
|
|
821
1207
|
fontfamily: '"Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial'
|
|
822
1208
|
name: 'Varela Round'
|
|
823
|
-
url: https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/VarelaRound/VarelaRound-Regular.ttf
|
|
1209
|
+
url: volantis-static/media/fonts/VarelaRound/VarelaRound-Regular.ttf # https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/VarelaRound/VarelaRound-Regular.ttf
|
|
824
1210
|
weight: normal
|
|
825
1211
|
style: normal
|
|
826
1212
|
bodyfont:
|
|
827
1213
|
fontfamily: 'UbuntuMono, "Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial'
|
|
828
1214
|
name: 'UbuntuMono'
|
|
829
|
-
url: https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/UbuntuMono/UbuntuMono-Regular.ttf
|
|
1215
|
+
url: volantis-static/media/fonts/UbuntuMono/UbuntuMono-Regular.ttf # https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/UbuntuMono/UbuntuMono-Regular.ttf
|
|
830
1216
|
weight: normal
|
|
831
1217
|
style: normal
|
|
832
1218
|
codefont:
|
|
833
1219
|
fontfamily: 'Menlo, UbuntuMono, Monaco'
|
|
834
1220
|
# name: 'Monaco'
|
|
835
|
-
# url: https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/Monaco/Monaco.ttf
|
|
1221
|
+
# url: volantis-static/media/fonts/Monaco/Monaco.ttf # https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts/Monaco/Monaco.ttf
|
|
836
1222
|
# weight: normal
|
|
837
1223
|
# style: normal
|
|
838
1224
|
############################### Custom css ############################### > end
|
|
@@ -840,10 +1226,10 @@ custom_css:
|
|
|
840
1226
|
|
|
841
1227
|
############################### Analytics ############################### > start
|
|
842
1228
|
analytics:
|
|
843
|
-
busuanzi: #https://cdn.jsdelivr.net/gh/volantis-x/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js
|
|
1229
|
+
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
|
|
844
1230
|
leancloud: # 请使用自己的 id & key 以防止数据丢失
|
|
845
|
-
app_id: u9j57bwJod4EDmXWdxrwuqQT-MdYXbMMI
|
|
846
|
-
app_key: jfHtEKVE24j0IVCGHbvuFClp
|
|
1231
|
+
app_id: # u9j57bwJod4EDmXWdxrwuqQT-MdYXbMMI
|
|
1232
|
+
app_key: # jfHtEKVE24j0IVCGHbvuFClp
|
|
847
1233
|
custom_api_server: # 国际版一般不需要写,除非自定义了 API Server
|
|
848
1234
|
############################### Analytics ############################### > end
|
|
849
1235
|
|
|
@@ -861,3 +1247,34 @@ seo:
|
|
|
861
1247
|
tag: noindex,follow
|
|
862
1248
|
# robots can be written in front-matter
|
|
863
1249
|
############################### SEO ############################### > end
|
|
1250
|
+
|
|
1251
|
+
############################### Open Graph ############################### > start
|
|
1252
|
+
# https://ogp.me/
|
|
1253
|
+
# https://hexo.io/zh-cn/docs/helpers#open-graph
|
|
1254
|
+
open_graph:
|
|
1255
|
+
image: volantis-static/media/org.volantis/blog/favicon/android-chrome-192x192.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/favicon/android-chrome-192x192.png
|
|
1256
|
+
twitter_card: summary # summary_large_image , summary
|
|
1257
|
+
#twitter_id:
|
|
1258
|
+
#twitter_site:
|
|
1259
|
+
############################### Open Graph ############################### > end
|
|
1260
|
+
|
|
1261
|
+
############################### Structured Data ############################### > start
|
|
1262
|
+
# SEO 入门文档: https://developers.google.com/search/docs
|
|
1263
|
+
# https://schema.org.cn/
|
|
1264
|
+
# 结构化数据用于更改搜索结果的显示效果
|
|
1265
|
+
# 目前内置的结构化数据: blogposting, breadcrumblist, organization, person, website
|
|
1266
|
+
# 目前内置的富媒体搜索结果: 路径(面包屑导航), 徽标(Logo), 站点链接搜索框(SearchAction)
|
|
1267
|
+
# https://developers.google.com/search/docs/advanced/structured-data/intro-structured-data
|
|
1268
|
+
# 富媒体搜索结果测试: https://search.google.com/test/rich-results
|
|
1269
|
+
structured_data:
|
|
1270
|
+
enable: true
|
|
1271
|
+
# 以下是覆盖配置, 默认配置见 scripts/helpers/structured-data/lib/config.js
|
|
1272
|
+
data:
|
|
1273
|
+
person:
|
|
1274
|
+
sns:
|
|
1275
|
+
- https://github.com/volantis-x
|
|
1276
|
+
logo:
|
|
1277
|
+
path: volantis-static/media/org.volantis/blog/favicon/android-chrome-192x192.png # https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/favicon/android-chrome-192x192.png
|
|
1278
|
+
width: 192
|
|
1279
|
+
height: 192
|
|
1280
|
+
############################### Structured Data ############################### > end
|