hexo-theme-volantis 4.3.1 → 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 +6 -4
- package/_config.yml +599 -246
- 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 -1
- package/layout/_meta/author.ejs +4 -4
- package/layout/_meta/category.ejs +11 -8
- package/layout/_meta/counter.ejs +29 -7
- 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/walinecount.ejs +2 -1
- 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 -16
- package/layout/_partial/categories.ejs +1 -1
- package/layout/_partial/cover.ejs +8 -28
- package/layout/_partial/footer.ejs +19 -11
- package/layout/_partial/head.ejs +70 -116
- 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} +17 -25
- 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 +422 -109
- package/layout/_partial/scripts/index.ejs +91 -46
- 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/{_third-party → _plugins}/analytics/script.ejs +43 -5
- 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/{_third-party → _plugins}/end-of-support/script.ejs +25 -8
- 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/{_third-party → _plugins}/nodewaves/script.ejs +1 -1
- package/layout/_plugins/parallax/script.ejs +74 -0
- package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -31
- package/layout/_plugins/pjax/index.ejs +73 -0
- package/layout/_plugins/pjax/pdata.ejs +56 -0
- package/layout/{_third-party → _plugins}/preload/script.ejs +3 -3
- 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 +30 -12
- 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 +5 -3
- 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 +34 -9
- 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 +0 -0
- package/scripts/filters/replace.js +15 -0
- package/scripts/{z-lazyload/lib/process.js → filters/z-lazyload.js} +6 -3
- 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} +1 -1
- 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 +6 -1
- package/scripts/tags/btns.js +7 -2
- package/scripts/tags/checkbox.js +12 -2
- package/scripts/tags/contributors.js +100 -0
- package/scripts/tags/dropmenu.js +18 -3
- package/scripts/tags/fancybox.js +44 -10
- package/scripts/tags/folding.js +6 -1
- package/scripts/tags/frame.js +6 -1
- package/scripts/tags/friends.js +99 -0
- package/scripts/tags/ghcard.js +6 -1
- package/scripts/tags/image.js +14 -2
- package/scripts/tags/link.js +6 -1
- package/scripts/tags/md.js +59 -0
- package/scripts/tags/media.js +25 -1
- package/scripts/tags/note.js +36 -3
- package/scripts/tags/site.js +87 -51
- package/scripts/tags/span.js +12 -2
- package/scripts/tags/swiper.js +38 -0
- package/scripts/tags/tabs.js +33 -3
- package/scripts/tags/timeline.js +6 -1
- 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 +19 -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 +0 -0
- 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 +8 -1
- 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 +1051 -278
- 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 -373
- package/.eslintrc.json +0 -111
- package/layout/_meta/valinecount.ejs +0 -15
- package/layout/_partial/rightmenu.ejs +0 -199
- package/layout/_partial/scripts/cover.ejs +0 -45
- package/layout/_partial/scripts/darkmode.ejs +0 -85
- package/layout/_partial/scripts/import.ejs +0 -3
- package/layout/_partial/scripts/issues.ejs +0 -18
- package/layout/_partial/scripts/search.ejs +0 -62
- package/layout/_partial/snackbar.ejs +0 -22
- package/layout/_third-party/aplayer/script.ejs +0 -26
- package/layout/_third-party/clipboard/script.ejs +0 -54
- package/layout/_third-party/comments/disqus/layout.ejs +0 -5
- package/layout/_third-party/comments/disqus/script.ejs +0 -90
- package/layout/_third-party/comments/disqusjs/layout.ejs +0 -1
- package/layout/_third-party/comments/disqusjs/script.ejs +0 -34
- package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
- package/layout/_third-party/comments/gitalk/script.ejs +0 -22
- 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 -34
- package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
- package/layout/_third-party/comments/twikoo/script.ejs +0 -32
- package/layout/_third-party/comments/valine/layout.ejs +0 -3
- package/layout/_third-party/comments/valine/script.ejs +0 -49
- package/layout/_third-party/comments/vssue/layout.ejs +0 -1
- package/layout/_third-party/comments/vssue/script.ejs +0 -21
- package/layout/_third-party/comments/waline/layout.ejs +0 -3
- package/layout/_third-party/comments/waline/script.ejs +0 -33
- package/layout/_third-party/fancybox/script.ejs +0 -61
- package/layout/_third-party/highlightjs/script.ejs +0 -11
- package/layout/_third-party/pjax/index.ejs +0 -78
- package/layout/_third-party/pjax/pdata.ejs +0 -53
- package/layout/_third-party/scrollreveal/script.ejs +0 -21
- package/layout/_third-party/tidio/script.ejs +0 -3
- package/layout/artitalk.ejs +0 -13
- package/layout/bb.ejs +0 -10
- package/package-lock.json +0 -916
- 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 -18
- package/source/css/_plugins/twikoo.styl +0 -21
- package/source/css/_plugins/valine.styl +0 -183
- 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 -167
- package/source/js/issues.js +0 -186
- package/source/js/search/algolia.js +0 -344
- package/source/js/search/azure.js +0 -355
- package/source/js/search/baidu.js +0 -340
- package/source/js/search/google.js +0 -339
- package/source/js/valine.js +0 -5137
package/_config.yml
CHANGED
|
@@ -1,46 +1,106 @@
|
|
|
1
1
|
############################### Volantis ###############################
|
|
2
|
-
# use_cdn: /source/js/* 中的JS文件(JS Only)使用jsdelivr的min版本加速
|
|
3
|
-
# 默认使用 https://cdn.jsdelivr.net/npm/hexo-theme-volantis@<%- theme.info.theme_version %>/source/js/*.min.js 的CDN压缩版本(min.js),注意版本号对应关系!!可以通过修改以下配置项覆盖
|
|
4
|
-
# 开发者注意 use_cdn 设置为 false
|
|
5
|
-
use_cdn: false
|
|
6
2
|
info:
|
|
7
3
|
theme_name: Volantis # This is theme's name.
|
|
8
|
-
theme_version: '
|
|
4
|
+
theme_version: '5.0.0-alpha.112' # This is theme's version.
|
|
9
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
|
-
|
|
12
|
-
|
|
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:
|
|
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
|
|
19
79
|
# 注意事项:建议规范全站路径 URL 最后带一个 "/" 例如 "about/"
|
|
20
80
|
navbar:
|
|
21
81
|
visiable: auto # always, auto
|
|
22
82
|
logo: # choose [img] or [icon + title]
|
|
23
|
-
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
|
|
24
84
|
icon:
|
|
25
85
|
title:
|
|
26
86
|
menu:
|
|
27
87
|
- name: 博客
|
|
28
|
-
icon:
|
|
88
|
+
icon: fa-solid fa-rss
|
|
29
89
|
url: /
|
|
30
90
|
- name: 分类
|
|
31
|
-
icon:
|
|
91
|
+
icon: fa-solid fa-folder-open
|
|
32
92
|
url: categories/
|
|
33
93
|
- name: 标签
|
|
34
|
-
icon:
|
|
94
|
+
icon: fa-solid fa-tags
|
|
35
95
|
url: tags/
|
|
36
96
|
- name: 归档
|
|
37
|
-
icon:
|
|
97
|
+
icon: fa-solid fa-archive
|
|
38
98
|
url: archives/
|
|
39
99
|
- name: 友链
|
|
40
|
-
icon:
|
|
100
|
+
icon: fa-solid fa-link
|
|
41
101
|
url: friends/
|
|
42
102
|
- name: 关于
|
|
43
|
-
icon:
|
|
103
|
+
icon: fa-solid fa-info-circle
|
|
44
104
|
url: about/
|
|
45
105
|
search: Search... # Search bar placeholder
|
|
46
106
|
############################### Navigation Bar ############################### > end
|
|
@@ -63,34 +123,34 @@ cover:
|
|
|
63
123
|
features:
|
|
64
124
|
- name: 文档
|
|
65
125
|
icon: #
|
|
66
|
-
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
|
|
67
127
|
url: /v4/getting-started/
|
|
68
128
|
- name: 帮助
|
|
69
129
|
icon: #
|
|
70
|
-
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
|
|
71
131
|
url: faqs/
|
|
72
132
|
- name: 示例
|
|
73
133
|
icon: #
|
|
74
|
-
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
|
|
75
135
|
url: /examples/
|
|
76
136
|
- name: 社区
|
|
77
137
|
icon: #
|
|
78
|
-
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
|
|
79
139
|
url: /contributors/
|
|
80
140
|
- name: 博客
|
|
81
141
|
icon: #
|
|
82
|
-
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
|
|
83
143
|
url: /archives/
|
|
84
144
|
- name: 源码
|
|
85
145
|
icon: #
|
|
86
|
-
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
|
|
87
147
|
url: https://github.com/volantis-x/hexo-theme-volantis/
|
|
88
148
|
############################### Cover ############################### > end
|
|
89
149
|
|
|
90
150
|
pages:
|
|
91
151
|
# 友链页面配置
|
|
92
152
|
friends:
|
|
93
|
-
layout_scheme: traditional # simple: 简单布局, traditional:
|
|
153
|
+
layout_scheme: traditional # simple: 简单布局, traditional: 传统布局
|
|
94
154
|
|
|
95
155
|
############################### Article Layout ############################### > start
|
|
96
156
|
# 文章布局
|
|
@@ -99,11 +159,13 @@ article:
|
|
|
99
159
|
preview:
|
|
100
160
|
scheme: landscape # landscape
|
|
101
161
|
# pin icon for post
|
|
102
|
-
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
|
|
103
163
|
# auto generate title if not exist
|
|
104
164
|
auto_title: true # false, true
|
|
105
165
|
# auto generate excerpt if not exist
|
|
106
166
|
auto_excerpt: true # false, true
|
|
167
|
+
# hide excerpt
|
|
168
|
+
hide_excerpt: false
|
|
107
169
|
# show split line or not
|
|
108
170
|
line_style: solid # hidden, solid, dashed, dotted
|
|
109
171
|
# show author
|
|
@@ -122,7 +184,7 @@ article:
|
|
|
122
184
|
# 参考资料、相关资料等 (for layout: post/docs)
|
|
123
185
|
references:
|
|
124
186
|
title: 参考资料
|
|
125
|
-
icon:
|
|
187
|
+
icon: fa-solid fa-quote-left
|
|
126
188
|
# 在 front-matter 中:
|
|
127
189
|
# references:
|
|
128
190
|
# - title: 某篇文章
|
|
@@ -134,7 +196,7 @@ article:
|
|
|
134
196
|
related_posts:
|
|
135
197
|
enable: false
|
|
136
198
|
title: 相关文章
|
|
137
|
-
icon:
|
|
199
|
+
icon: fa-solid fa-bookmark
|
|
138
200
|
max_count: 5
|
|
139
201
|
# 设为空则不使用文章头图
|
|
140
202
|
placeholder_img: https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture
|
|
@@ -151,8 +213,8 @@ article:
|
|
|
151
213
|
donate:
|
|
152
214
|
enable: false
|
|
153
215
|
images:
|
|
154
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
155
|
-
- 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
|
|
156
218
|
# 文章底部信息
|
|
157
219
|
# 从 meta_library 中取
|
|
158
220
|
bottom_meta: [updated, tags, share]
|
|
@@ -161,89 +223,115 @@ article:
|
|
|
161
223
|
# 默认文章作者(可在 _data/author.yaml 中增加其他作者,并在 front-matter 中设置)
|
|
162
224
|
# https://volantis.js.org/advanced-settings/#多人协同
|
|
163
225
|
author:
|
|
164
|
-
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
|
|
165
227
|
name: 请设置文章作者
|
|
166
228
|
url: /
|
|
167
229
|
# 文章创建日期
|
|
168
230
|
date:
|
|
169
|
-
icon:
|
|
231
|
+
icon: fa-solid fa-calendar-alt
|
|
170
232
|
title: '发布于:'
|
|
171
233
|
format: 'll' # 日期格式 http://momentjs.com/docs/
|
|
172
234
|
# 文章更新日期
|
|
173
235
|
updated:
|
|
174
|
-
icon:
|
|
236
|
+
icon: fa-solid fa-edit
|
|
175
237
|
title: '更新于:'
|
|
176
238
|
format: 'll' # 日期格式 http://momentjs.com/docs/
|
|
177
239
|
# 文章分类
|
|
178
240
|
category:
|
|
179
|
-
icon:
|
|
241
|
+
icon: fa-solid fa-folder-open
|
|
180
242
|
# 文章浏览计数
|
|
181
243
|
counter:
|
|
182
|
-
icon:
|
|
244
|
+
icon: fa-solid fa-eye
|
|
183
245
|
unit: '次浏览'
|
|
184
|
-
#
|
|
185
|
-
valinecount:
|
|
186
|
-
icon: fas fa-comment-dots
|
|
187
|
-
desc: '' # 条评论
|
|
246
|
+
# waline 文章评论数量
|
|
188
247
|
walinecount:
|
|
189
|
-
icon:
|
|
248
|
+
icon: fa-solid fa-comment-dots
|
|
190
249
|
desc: '' # 条评论
|
|
191
250
|
# 文章字数和阅读时长
|
|
192
251
|
wordcount:
|
|
193
|
-
icon_wordcount:
|
|
194
|
-
icon_duration:
|
|
252
|
+
icon_wordcount: fa-solid fa-keyboard
|
|
253
|
+
icon_duration: fa-solid fa-hourglass-half
|
|
195
254
|
# 文章标签
|
|
196
255
|
tags:
|
|
197
|
-
icon:
|
|
256
|
+
icon: fa-solid fa-hashtag
|
|
198
257
|
# 分享
|
|
199
258
|
share:
|
|
200
259
|
- id: qq
|
|
201
|
-
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
|
|
202
261
|
- id: qzone
|
|
203
|
-
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
|
|
204
263
|
- id: weibo
|
|
205
|
-
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
|
|
206
265
|
- id: # qrcode # 当id为qrcode时需要安装插件 npm i hexo-helper-qrcode
|
|
207
|
-
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
|
|
208
267
|
- id: # telegram
|
|
209
|
-
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
|
|
210
269
|
############################### Article Layout ############################### > end
|
|
211
270
|
|
|
212
271
|
|
|
213
272
|
############################### Comments ############################### > start
|
|
214
273
|
comments:
|
|
215
|
-
title: <i class='
|
|
274
|
+
title: <i class='fa-solid fa-comments'></i> 评论
|
|
216
275
|
subtitle:
|
|
217
|
-
service:
|
|
218
|
-
#
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
#
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
#
|
|
245
|
-
|
|
246
|
-
|
|
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]
|
|
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: ✨💬✨
|
|
334
|
+
|
|
247
335
|
# Disqus
|
|
248
336
|
# https://disqus.com
|
|
249
337
|
disqus:
|
|
@@ -251,19 +339,24 @@ comments:
|
|
|
251
339
|
# optional
|
|
252
340
|
autoload: false
|
|
253
341
|
path: # 全局评论地址
|
|
342
|
+
|
|
254
343
|
# DisqusJS
|
|
255
344
|
# https://github.com/SukkaW/DisqusJS
|
|
256
345
|
disqusjs:
|
|
257
346
|
path: # 全局评论地址
|
|
347
|
+
js: https://unpkg.com/disqusjs@1.3/dist/disqus.js
|
|
348
|
+
css: https://unpkg.com/disqusjs@1.3/dist/disqusjs.css
|
|
258
349
|
# 配置项按照yml格式继续填写即可 除了 [siteName url identifier] 选项
|
|
259
350
|
#shortname:
|
|
260
351
|
#api:
|
|
261
352
|
#apikey:
|
|
262
353
|
#admin:
|
|
263
354
|
#nesting:
|
|
355
|
+
|
|
264
356
|
# Gitalk
|
|
265
357
|
# https://gitalk.github.io/
|
|
266
358
|
gitalk:
|
|
359
|
+
js: https://unpkg.com/gitalk@1/dist/gitalk.min.js
|
|
267
360
|
# 配置项按照yml格式继续填写即可 除了 [id distractionFreeMode] 选项
|
|
268
361
|
clientID:
|
|
269
362
|
clientSecret:
|
|
@@ -271,54 +364,82 @@ comments:
|
|
|
271
364
|
owner:
|
|
272
365
|
admin: # []
|
|
273
366
|
path: # 全局评论地址
|
|
367
|
+
|
|
274
368
|
# Vssue 暂不支持Pjax
|
|
275
369
|
# https://vssue.js.org/zh/
|
|
276
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
|
|
277
374
|
owner:
|
|
278
375
|
repo:
|
|
279
376
|
clientId:
|
|
280
377
|
clientSecret:
|
|
378
|
+
|
|
281
379
|
# LiveRe 暂不支持Pjax
|
|
282
380
|
# https://www.livere.com
|
|
283
381
|
livere:
|
|
284
382
|
uid:
|
|
285
|
-
|
|
383
|
+
|
|
384
|
+
# Isso
|
|
286
385
|
# https://posativ.org/isso/
|
|
287
386
|
isso:
|
|
288
387
|
url: https://example.com/(path/)
|
|
289
388
|
src: https://example.com/(path/)js/embed.min.js
|
|
389
|
+
css:
|
|
390
|
+
gravatar:
|
|
391
|
+
|
|
290
392
|
# HashOver 暂不支持Pjax
|
|
291
393
|
# https://www.barkdull.org/software/hashover
|
|
292
394
|
hashover:
|
|
293
395
|
src: https://example.com/(path/)comments.php
|
|
396
|
+
|
|
294
397
|
# Twikoo
|
|
295
398
|
# https://twikoo.js.org/
|
|
296
399
|
twikoo:
|
|
297
|
-
js: https://
|
|
400
|
+
js: https://unpkg.com/twikoo@latest # 建议锁定版本
|
|
298
401
|
path: # 全局评论地址
|
|
299
402
|
# 其他配置项按照yml格式继续填写即可 除了 [el path] 选项
|
|
300
403
|
envId: xxxxxxxxxxxxxxx # 腾讯云环境id
|
|
404
|
+
placeholder: #全局评论占位,也可以在管理面板中的配置管理处设置(此处优先级更高)
|
|
405
|
+
|
|
301
406
|
# Waline
|
|
302
407
|
# https://waline.js.org/
|
|
303
408
|
waline:
|
|
304
|
-
js: https://
|
|
409
|
+
js: https://unpkg.com/@waline/client@v2/dist/waline.js
|
|
410
|
+
css: https://unpkg.com/@waline/client@v2/dist/waline.css
|
|
305
411
|
path: # 全局评论地址 目前设置全局评论地址后visitor失效,这是waline的问题
|
|
306
|
-
placeholder:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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
|
+
|
|
315
435
|
|
|
316
436
|
############################### Comments ############################### > end
|
|
317
437
|
|
|
318
438
|
############################### Sidebar ############################### > start
|
|
319
439
|
sidebar:
|
|
440
|
+
position: right # left right
|
|
320
441
|
# 主页、分类、归档等独立页面
|
|
321
|
-
for_page: [blogger, category, tagcloud,
|
|
442
|
+
for_page: [blogger, category, tagcloud, donate]
|
|
322
443
|
# layout: docs/post 这类文章页面
|
|
323
444
|
for_post: [toc]
|
|
324
445
|
# 侧边栏组件库
|
|
@@ -328,20 +449,20 @@ sidebar:
|
|
|
328
449
|
blogger:
|
|
329
450
|
class: blogger
|
|
330
451
|
display: [desktop, mobile] # [desktop, mobile]
|
|
331
|
-
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
|
|
332
453
|
shape: rectangle # circle, rectangle
|
|
333
454
|
url: /about/
|
|
334
455
|
title:
|
|
335
456
|
subtitle:
|
|
336
457
|
jinrishici: true # Poetry Today. You can set a string, and it will be displayed when loading fails.
|
|
337
458
|
social:
|
|
338
|
-
- icon:
|
|
459
|
+
- icon: fa-solid fa-rss
|
|
339
460
|
url: /atom.xml
|
|
340
|
-
- icon:
|
|
461
|
+
- icon: fa-solid fa-envelope
|
|
341
462
|
url: mailto:me@xxx.com
|
|
342
463
|
- icon: fab fa-github
|
|
343
464
|
url: https://github.com/volantis-x/
|
|
344
|
-
- icon:
|
|
465
|
+
- icon: fa-solid fa-headphones-alt
|
|
345
466
|
url: /
|
|
346
467
|
# ---------------------------------------
|
|
347
468
|
# toc widget (valid only in articles)
|
|
@@ -349,18 +470,24 @@ sidebar:
|
|
|
349
470
|
class: toc
|
|
350
471
|
display: [desktop, mobile] # [desktop, mobile]
|
|
351
472
|
header:
|
|
352
|
-
icon:
|
|
473
|
+
icon: fa-solid fa-list
|
|
353
474
|
title: 本文目录
|
|
354
475
|
list_number: false
|
|
355
476
|
min_depth: 2
|
|
356
477
|
max_depth: 5
|
|
357
478
|
# ---------------------------------------
|
|
479
|
+
# music
|
|
480
|
+
music:
|
|
481
|
+
class: music
|
|
482
|
+
display: [desktop, mobile] # [desktop, mobile]
|
|
483
|
+
pjaxReload: false
|
|
484
|
+
# ---------------------------------------
|
|
358
485
|
# category widget
|
|
359
486
|
category:
|
|
360
487
|
class: category
|
|
361
488
|
display: [desktop] # [desktop, mobile]
|
|
362
489
|
header:
|
|
363
|
-
icon:
|
|
490
|
+
icon: fa-solid fa-folder-open
|
|
364
491
|
title: 文章分类
|
|
365
492
|
url: /blog/categories/
|
|
366
493
|
# ---------------------------------------
|
|
@@ -369,7 +496,7 @@ sidebar:
|
|
|
369
496
|
class: tagcloud
|
|
370
497
|
display: [desktop, mobile] # [desktop, mobile]
|
|
371
498
|
header:
|
|
372
|
-
icon:
|
|
499
|
+
icon: fa-solid fa-tags
|
|
373
500
|
title: 热门标签
|
|
374
501
|
url: /blog/tags/
|
|
375
502
|
min_font: 14
|
|
@@ -377,23 +504,22 @@ sidebar:
|
|
|
377
504
|
color: true
|
|
378
505
|
start_color: '#999'
|
|
379
506
|
end_color: '#555'
|
|
380
|
-
|
|
381
507
|
# ---------------------------------------
|
|
382
508
|
# qrcode widget
|
|
383
|
-
|
|
509
|
+
qrcode:
|
|
384
510
|
class: qrcode
|
|
385
511
|
display: [desktop, mobile] # [desktop, mobile]
|
|
386
512
|
height: 64px # Automatic height if not set
|
|
387
513
|
images:
|
|
388
|
-
- https://cdn.jsdelivr.net/gh/volantis-x/cdn-org/blog/qrcode/github@volantis.png
|
|
389
|
-
- 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
|
|
390
516
|
# ---------------------------------------
|
|
391
517
|
# webinfo widget
|
|
392
518
|
webinfo:
|
|
393
519
|
class: webinfo
|
|
394
520
|
display: [desktop]
|
|
395
521
|
header:
|
|
396
|
-
icon:
|
|
522
|
+
icon: fa-solid fa-award
|
|
397
523
|
title: 站点信息
|
|
398
524
|
type:
|
|
399
525
|
article:
|
|
@@ -410,7 +536,6 @@ sidebar:
|
|
|
410
536
|
text: '本站总字数:' # 需要启用 wordcount
|
|
411
537
|
unit: '字'
|
|
412
538
|
visitcounter:
|
|
413
|
-
service: leancloud # busuanzi, leancloud
|
|
414
539
|
siteuv:
|
|
415
540
|
enable: true
|
|
416
541
|
text: '本站访客数:'
|
|
@@ -424,6 +549,14 @@ sidebar:
|
|
|
424
549
|
friendlyShow: true # 更友好的时间显示
|
|
425
550
|
text: '最后活动时间:'
|
|
426
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: 最近更新
|
|
427
560
|
############################### Sidebar ############################### > end
|
|
428
561
|
|
|
429
562
|
|
|
@@ -434,14 +567,14 @@ tag_plugins:
|
|
|
434
567
|
note: # style for default note:
|
|
435
568
|
icon: '\f054'
|
|
436
569
|
color: ''
|
|
437
|
-
iconfont: 'Font Awesome
|
|
570
|
+
iconfont: 'Font Awesome 6 Free'
|
|
438
571
|
# {% checkbox %}
|
|
439
572
|
checkbox:
|
|
440
573
|
interactive: false # enable interactive for user
|
|
441
574
|
color: '' # color for default checkbox
|
|
442
575
|
# {% link title, url, img %}
|
|
443
576
|
link:
|
|
444
|
-
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
|
|
445
578
|
############################### Tag Plugins ############################### > end
|
|
446
579
|
|
|
447
580
|
|
|
@@ -450,7 +583,7 @@ site_footer:
|
|
|
450
583
|
# layout of footer: [aplayer, social, license, info, copyright]
|
|
451
584
|
layout: [aplayer, social, license, analytics, info, copyright]
|
|
452
585
|
social:
|
|
453
|
-
- icon: #
|
|
586
|
+
- icon: #fa-solid fa-rss
|
|
454
587
|
url:
|
|
455
588
|
# or
|
|
456
589
|
- img:
|
|
@@ -462,10 +595,10 @@ site_footer:
|
|
|
462
595
|
source: https://github.com/volantis-x/volantis-docs/
|
|
463
596
|
# analytics using leancloud
|
|
464
597
|
analytics: >
|
|
465
|
-
<span id="lc-sv">本站总访问量为 <span id='number'><i class="
|
|
466
|
-
<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>
|
|
467
600
|
# site copyright
|
|
468
|
-
copyright: '[Copyright © 2017
|
|
601
|
+
copyright: '[Copyright © since 2017 XXX](/)'
|
|
469
602
|
# You can add your own property here. (Support markdown, for example: br: '<br>')
|
|
470
603
|
br: '<br>'
|
|
471
604
|
############################### Site Footer ############################### > end
|
|
@@ -474,54 +607,92 @@ site_footer:
|
|
|
474
607
|
plugins:
|
|
475
608
|
################ required plugins ################
|
|
476
609
|
# jquery
|
|
477
|
-
|
|
478
|
-
#
|
|
479
|
-
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
|
|
480
631
|
################ optional plugins ################
|
|
632
|
+
# issues api
|
|
633
|
+
sitesjs:
|
|
634
|
+
enable: true
|
|
635
|
+
friendsjs:
|
|
636
|
+
enable: true
|
|
637
|
+
contributorsjs:
|
|
638
|
+
enable: true
|
|
481
639
|
|
|
482
640
|
######## Plugins to improve loading speed:
|
|
483
|
-
|
|
484
641
|
# 预加载
|
|
485
642
|
preload:
|
|
486
643
|
enable: true
|
|
487
644
|
service: flying_pages # instant_page, flying_pages
|
|
488
|
-
instant_page: https://cdn.jsdelivr.net/gh/volantis-x/cdn-volantis@2/js/instant_page.js
|
|
489
|
-
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
|
|
490
647
|
|
|
491
648
|
# 图片懒加载
|
|
492
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
|
|
493
653
|
lazyload:
|
|
494
654
|
enable: true
|
|
495
|
-
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
|
|
496
656
|
onlypost: false
|
|
497
|
-
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 像素的图片
|
|
498
658
|
blurIn: true # 模糊加载效果 (loadingImg为空时有效)
|
|
499
659
|
|
|
500
660
|
######## Plugins to optimize the experience:
|
|
501
|
-
|
|
661
|
+
# 代码高亮
|
|
662
|
+
code_highlight: highlightjs # highlightjs or prismjs
|
|
502
663
|
# highlight.js
|
|
503
664
|
highlightjs:
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
#
|
|
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
|
|
508
685
|
|
|
509
686
|
# https://scrollrevealjs.org/api/reveal.html
|
|
510
687
|
scrollreveal:
|
|
511
|
-
enable:
|
|
512
|
-
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
|
|
513
690
|
distance: 32px
|
|
514
691
|
duration: 800 # ms
|
|
515
692
|
interval: 20 # ms
|
|
516
693
|
scale: 1 # 0.1~1
|
|
517
694
|
|
|
518
|
-
# Codeblock Copy Button
|
|
519
|
-
clipboard:
|
|
520
|
-
enable: #true
|
|
521
|
-
js: https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js
|
|
522
|
-
|
|
523
695
|
######## Plugins for SEO:
|
|
524
|
-
|
|
525
696
|
# npm i hexo-wordcount
|
|
526
697
|
wordcount:
|
|
527
698
|
enable: #true
|
|
@@ -530,57 +701,58 @@ plugins:
|
|
|
530
701
|
# Button Ripple Effect
|
|
531
702
|
nodewaves:
|
|
532
703
|
enable: #true
|
|
533
|
-
css: https://
|
|
534
|
-
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
|
|
535
706
|
|
|
536
|
-
# fontawesome
|
|
707
|
+
# fontawesome V6: https://fontawesome.com/docs/web/style/animate
|
|
708
|
+
# fontawesome animation for fontawesome V5
|
|
537
709
|
fontawesome_animation:
|
|
538
710
|
enable: #true
|
|
539
|
-
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
|
|
540
712
|
|
|
541
713
|
# Typing Effects
|
|
542
714
|
comment_typing:
|
|
543
715
|
enable: #true
|
|
544
|
-
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
|
|
545
717
|
|
|
546
|
-
# Slide Background
|
|
547
|
-
|
|
718
|
+
# 视差滚动效果 Slide Background
|
|
719
|
+
parallax:
|
|
548
720
|
enable: #true
|
|
549
|
-
js: https://cdn.jsdelivr.net/npm/jquery-backstretch@2.1.18/jquery.backstretch.min.js
|
|
550
721
|
position: cover # cover: sticky on the cover. fixed: Fixed as background for the site.
|
|
551
722
|
shuffle: true # shuffle playlist
|
|
552
723
|
duration: 10000 # Duration (ms)
|
|
553
724
|
fade: 1500 # fade duration (ms) (Not more than 1500)
|
|
554
725
|
images: # For personal use only. At your own risk if used for commercial purposes !!!
|
|
555
|
-
-
|
|
556
|
-
-
|
|
557
|
-
-
|
|
558
|
-
-
|
|
559
|
-
-
|
|
560
|
-
-
|
|
561
|
-
-
|
|
562
|
-
-
|
|
563
|
-
-
|
|
564
|
-
-
|
|
565
|
-
-
|
|
566
|
-
-
|
|
567
|
-
-
|
|
568
|
-
-
|
|
569
|
-
-
|
|
570
|
-
-
|
|
571
|
-
-
|
|
572
|
-
-
|
|
573
|
-
-
|
|
574
|
-
-
|
|
575
|
-
-
|
|
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
|
|
576
747
|
|
|
577
748
|
# APlayer is only available in mainland China.
|
|
578
749
|
# APlayer config: https://github.com/metowolf/MetingJS
|
|
579
750
|
aplayer:
|
|
580
751
|
enable: #true
|
|
581
752
|
js:
|
|
582
|
-
aplayer: https://
|
|
583
|
-
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
|
|
584
756
|
# Required
|
|
585
757
|
server: netease # netease, tencent, kugou, xiami, baidu
|
|
586
758
|
type: playlist # song, playlist, album, search, artist
|
|
@@ -594,30 +766,28 @@ plugins:
|
|
|
594
766
|
volume: 0.7 # default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
|
|
595
767
|
list_max_height: 320px # list max height
|
|
596
768
|
list_folded: true
|
|
769
|
+
autoHide: true # hide automaticaly
|
|
770
|
+
|
|
771
|
+
# Pjax
|
|
597
772
|
pjax:
|
|
773
|
+
js: volantis-static/libs/pjax/pjax.min.js # https://unpkg.com/pjax@0.2.8/pjax.min.js
|
|
598
774
|
enable: true
|
|
599
775
|
cover: true # 封面是否pjax处理 false:每次切换页面封面都重载,适合封面较少的情况 true:封面经过Pjax处理,适合封面较多的情况
|
|
600
776
|
timeout: 5000 # The timeout in milliseconds for the XHR requests. Set to 0 to disable the timeout.
|
|
601
777
|
cacheBust: false # When set to true, Pjax appends a timestamp to skip the browser cache.
|
|
602
778
|
animation: false # false, nprogress, circle
|
|
779
|
+
nprogress: volantis-static/libs/nprogress/nprogress.js # https://unpkg.com/nprogress@0.2.0/nprogress.min.js
|
|
603
780
|
banUrl: # 被屏蔽的 url 地址将不启用 pjax 跳转,可以在控制台下使用 window.location.pathname 获取
|
|
604
|
-
# - '/artitalk/'
|
|
605
|
-
# - '/
|
|
606
|
-
|
|
607
|
-
# 从 issues 加载动态数据
|
|
608
|
-
# {% issues sites/timeline/friends | api=xxx | group=key:a,b,c %}
|
|
609
|
-
# 例如:
|
|
610
|
-
# {% issues sites | api=https://api.github.com/repos/volantis-x/examples/issues?sort=updated&state=open&page=1&per_page=100 | group=version:latest,v6,v5,v4,v3,v2,v1,v0 %}
|
|
611
|
-
|
|
781
|
+
# - '/artitalk/' # artitalk 不支持 pjax
|
|
782
|
+
# - '/bbtalk/' # bbtalk 不支持 pjax
|
|
612
783
|
|
|
613
784
|
# 暗黑模式 darkmode
|
|
614
|
-
# 样式:source/css/_plugins/dark.styl
|
|
615
785
|
# 开关按钮:在 navbar.menu 中添加:
|
|
616
786
|
# - name: 暗黑模式 # 可自定义
|
|
617
|
-
# icon:
|
|
787
|
+
# icon: fa-solid fa-moon # 可自定义
|
|
618
788
|
# toggle: darkmode
|
|
619
|
-
|
|
620
|
-
enable: true
|
|
789
|
+
darkmode:
|
|
790
|
+
enable: #true
|
|
621
791
|
|
|
622
792
|
# 旧版 Internet Explorer 淘汰行动
|
|
623
793
|
# https://www.microsoft.com/zh-cn/WindowsForBusiness/End-of-IE-support
|
|
@@ -636,11 +806,13 @@ plugins:
|
|
|
636
806
|
# 使用过旧版本的请修改Leancloud shuoshuo class部分列名:https://artitalk.js.org/release.html
|
|
637
807
|
# 除appID和appKEY外均为选填项
|
|
638
808
|
artitalk:
|
|
639
|
-
# Set `
|
|
809
|
+
# Set `plugins: ["artitalk"]` to enable in front-matter
|
|
810
|
+
# 不支持 Pjax
|
|
640
811
|
# 配置项按照yml格式继续填写即可
|
|
812
|
+
js: https://unpkg.com/artitalk
|
|
641
813
|
appId: ogP8qj3veMh0LFpFWMPOyF0X-MdYXbMMI # your appID
|
|
642
814
|
appKey: nHXLd3N3Jgh460t2iRQKWAtr # your appKEY
|
|
643
|
-
# serverURL: #leancloud
|
|
815
|
+
# serverURL: #leancloud绑定的api访问域名,使用国际版的话不需要填写
|
|
644
816
|
# lang: # 语言设置,zh为汉语,en为英语,es为西班牙语。默认为汉语
|
|
645
817
|
# pageSize: #每页说说的显示数量
|
|
646
818
|
# shuoPla: #在编辑说说的输入框中的占位符
|
|
@@ -654,31 +826,195 @@ plugins:
|
|
|
654
826
|
|
|
655
827
|
# BBtalk https://bb.js.org
|
|
656
828
|
bbtalk:
|
|
657
|
-
|
|
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
|
|
658
832
|
appId: 0KzOX4vC7Jsk6vzUGNeEiUaI-gzGzoHsz # your appID
|
|
659
833
|
appKey: HwCiWuxfpvKiLm4teCUgTIba # your appKEY
|
|
660
834
|
serverURLs: https://bbapi.heson10.com # Request Api 域名
|
|
661
835
|
|
|
662
|
-
#
|
|
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
|
|
663
883
|
# https://www.tidio.com/
|
|
664
884
|
tidio:
|
|
665
|
-
enable: #true
|
|
666
885
|
id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
667
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
|
|
898
|
+
|
|
668
899
|
############################### Plugins ############################### > end
|
|
669
900
|
|
|
670
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
|
+
|
|
671
995
|
# 自定义右键菜单
|
|
672
996
|
rightmenu:
|
|
673
|
-
enable:
|
|
997
|
+
enable: false
|
|
998
|
+
faicon: fa # 公共图标类型 fa fal fa-solid fa-duotone
|
|
674
999
|
# hr: 分割线, music: 音乐控制器
|
|
675
|
-
layout: [home, help, examples, contributors, hr, source_docs, source_theme, hr, print,
|
|
676
|
-
|
|
677
|
-
print:
|
|
1000
|
+
layout: [home, hr, help, examples, contributors, hr, source_docs, source_theme, hr, print, darkmode, reading, music]
|
|
1001
|
+
### 可选功能项 ###
|
|
1002
|
+
print: # 只有文章页才允许自定义打印
|
|
678
1003
|
name: 打印页面
|
|
679
1004
|
icon: fa fa-print
|
|
680
|
-
|
|
681
|
-
|
|
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
|
+
### 自定义菜单 ###
|
|
682
1018
|
help:
|
|
683
1019
|
name: 常见问题
|
|
684
1020
|
icon: fa fa-question
|
|
@@ -699,44 +1035,29 @@ rightmenu:
|
|
|
699
1035
|
name: 主题源码
|
|
700
1036
|
icon: fa fa-code-branch
|
|
701
1037
|
url: https://github.com/volantis-x/hexo-theme-volantis/
|
|
702
|
-
dark_mode:
|
|
703
|
-
name: Dark mode
|
|
704
|
-
icon: fas fa-moon
|
|
705
|
-
toggle: darkmode
|
|
706
1038
|
############################### Rightmenu ############################### > end
|
|
707
1039
|
|
|
708
1040
|
|
|
709
1041
|
############################### Search ############################### > start
|
|
710
1042
|
# To use hexo search, you need to install the following plugins:
|
|
711
|
-
# npm i hexo-generator-
|
|
1043
|
+
# npm i hexo-generator-json-content
|
|
712
1044
|
search:
|
|
713
1045
|
enable: true
|
|
714
|
-
service: hexo # hexo
|
|
1046
|
+
service: hexo # hexo
|
|
715
1047
|
js:
|
|
716
|
-
google:
|
|
717
|
-
apiKey:
|
|
718
|
-
engineId:
|
|
719
|
-
algolia:
|
|
720
|
-
applicationID:
|
|
721
|
-
apiKey:
|
|
722
|
-
indexName:
|
|
723
|
-
azure:
|
|
724
|
-
serviceName:
|
|
725
|
-
indexName:
|
|
726
|
-
queryKey:
|
|
727
|
-
baidu:
|
|
728
|
-
apiId:
|
|
729
1048
|
############################### Search ############################### > end
|
|
730
1049
|
|
|
731
1050
|
############################### Color Scheme ############################### > start
|
|
1051
|
+
# Accessibility: 背景色和前景色要有足够的对比度 https://web.dev/color-contrast/
|
|
1052
|
+
# https://ant.design/docs/spec/colors-cn
|
|
732
1053
|
color_scheme:
|
|
733
1054
|
# ------------
|
|
734
1055
|
# 通用颜色
|
|
735
1056
|
common:
|
|
736
1057
|
# 主题色
|
|
737
|
-
theme: '#
|
|
1058
|
+
theme: '#3dd9b6'
|
|
738
1059
|
# 链接色
|
|
739
|
-
link: '#
|
|
1060
|
+
link: '#2092ec'
|
|
740
1061
|
# 按钮色
|
|
741
1062
|
button: '#44D7B6'
|
|
742
1063
|
# 鼠标放到交互元素上时的色
|
|
@@ -784,56 +1105,58 @@ color_scheme:
|
|
|
784
1105
|
meta: '#888'
|
|
785
1106
|
# ------------
|
|
786
1107
|
# 暗色主题
|
|
1108
|
+
# https://www.maijisheji.com/2094.html
|
|
787
1109
|
dark:
|
|
788
|
-
#
|
|
789
|
-
|
|
1110
|
+
# 网站最深底色 # Dark Grey 1
|
|
1111
|
+
site_bd: '#121212'
|
|
1112
|
+
# 网站背景色 # Dark Grey 2
|
|
1113
|
+
site_bg: '#1f1f1f'
|
|
1114
|
+
# 卡片背景色 # Dark Grey 3
|
|
1115
|
+
card: '#262626'
|
|
790
1116
|
# 网站背景上的文字
|
|
791
|
-
site_inner: '#
|
|
1117
|
+
site_inner: '#eeeeeede'
|
|
792
1118
|
# 网站页脚文字
|
|
793
|
-
site_footer: '#
|
|
794
|
-
# 卡片背景色
|
|
795
|
-
card: '#333'
|
|
1119
|
+
site_footer: '#aaaaaade'
|
|
796
1120
|
# 卡片上的普通文字
|
|
797
|
-
text: '#
|
|
1121
|
+
text: '#eeeeeede'
|
|
798
1122
|
|
|
799
|
-
# 区块和代码块背景色
|
|
800
|
-
block: '#
|
|
801
|
-
# 代码块高亮时的背景色
|
|
802
|
-
codeblock: '#
|
|
1123
|
+
# 区块和代码块背景色 # Dark Grey 4
|
|
1124
|
+
block: '#434343'
|
|
1125
|
+
# 代码块高亮时的背景色 # Dark Grey 2
|
|
1126
|
+
codeblock: '#1f1f1f'
|
|
803
1127
|
# 行内代码颜色
|
|
804
1128
|
inlinecode: '#D56D28'
|
|
805
1129
|
|
|
806
|
-
# 文章部分
|
|
807
|
-
h1: '#
|
|
808
|
-
h2: '#
|
|
809
|
-
h3: '#
|
|
810
|
-
h4: '#
|
|
811
|
-
h5: '#
|
|
812
|
-
h6: '#
|
|
813
|
-
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
|
|
814
1138
|
|
|
815
|
-
# 列表文字
|
|
816
|
-
list: '#
|
|
1139
|
+
# 列表文字 # Dark Grey 6
|
|
1140
|
+
list: '#d9d9d9de'
|
|
817
1141
|
# 列表 hover 时的文字
|
|
818
1142
|
list_hl: 'mix($color-theme, #fff, 80)'
|
|
819
|
-
# 辅助性文字
|
|
820
|
-
meta: '#
|
|
1143
|
+
# 辅助性文字 # Dark Grey 5
|
|
1144
|
+
meta: '#bfbfbfde'
|
|
821
1145
|
# 夜间图片亮度
|
|
822
1146
|
brightness: 70%
|
|
823
1147
|
############################### Color Scheme ############################### > end
|
|
824
1148
|
|
|
825
1149
|
############################### Custom css ############################### > start
|
|
826
1150
|
custom_css:
|
|
827
|
-
toc_smooth: true # TOC 目录平滑滚动效果
|
|
828
1151
|
cursor:
|
|
829
1152
|
enable: #true
|
|
830
|
-
text: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
831
|
-
pointer: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
832
|
-
default: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
833
|
-
not-allowed: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
834
|
-
zoom-out: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
835
|
-
zoom-in: https://cdn.jsdelivr.net/gh/inkss/common@
|
|
836
|
-
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
|
|
837
1160
|
font_smoothing: true # font-smoothing for webkit
|
|
838
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)
|
|
839
1162
|
scrollbar:
|
|
@@ -842,14 +1165,13 @@ custom_css:
|
|
|
842
1165
|
navbar:
|
|
843
1166
|
height: 64px
|
|
844
1167
|
width: auto # auto, max
|
|
845
|
-
effect: [shadow, blur] # [shadow, floatable, blur]
|
|
1168
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
846
1169
|
sidebar:
|
|
847
|
-
effect: [shadow] # [shadow, floatable, blur]
|
|
1170
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
848
1171
|
body:
|
|
849
|
-
effect: [shadow] # [shadow, floatable, blur]
|
|
1172
|
+
effect: [shadow, floatable, blur] # [shadow, floatable, blur]
|
|
850
1173
|
highlight:
|
|
851
1174
|
language: true # show language of codeblock
|
|
852
|
-
copy_btn: true
|
|
853
1175
|
grayscale: false # Enable grayscale effect
|
|
854
1176
|
text_align: # left, right, justify, center
|
|
855
1177
|
h1: left
|
|
@@ -884,19 +1206,19 @@ custom_css:
|
|
|
884
1206
|
logofont:
|
|
885
1207
|
fontfamily: '"Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial'
|
|
886
1208
|
name: 'Varela Round'
|
|
887
|
-
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
|
|
888
1210
|
weight: normal
|
|
889
1211
|
style: normal
|
|
890
1212
|
bodyfont:
|
|
891
1213
|
fontfamily: 'UbuntuMono, "Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial'
|
|
892
1214
|
name: 'UbuntuMono'
|
|
893
|
-
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
|
|
894
1216
|
weight: normal
|
|
895
1217
|
style: normal
|
|
896
1218
|
codefont:
|
|
897
1219
|
fontfamily: 'Menlo, UbuntuMono, Monaco'
|
|
898
1220
|
# name: 'Monaco'
|
|
899
|
-
# 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
|
|
900
1222
|
# weight: normal
|
|
901
1223
|
# style: normal
|
|
902
1224
|
############################### Custom css ############################### > end
|
|
@@ -904,10 +1226,10 @@ custom_css:
|
|
|
904
1226
|
|
|
905
1227
|
############################### Analytics ############################### > start
|
|
906
1228
|
analytics:
|
|
907
|
-
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
|
|
908
1230
|
leancloud: # 请使用自己的 id & key 以防止数据丢失
|
|
909
|
-
app_id: u9j57bwJod4EDmXWdxrwuqQT-MdYXbMMI
|
|
910
|
-
app_key: jfHtEKVE24j0IVCGHbvuFClp
|
|
1231
|
+
app_id: # u9j57bwJod4EDmXWdxrwuqQT-MdYXbMMI
|
|
1232
|
+
app_key: # jfHtEKVE24j0IVCGHbvuFClp
|
|
911
1233
|
custom_api_server: # 国际版一般不需要写,除非自定义了 API Server
|
|
912
1234
|
############################### Analytics ############################### > end
|
|
913
1235
|
|
|
@@ -925,3 +1247,34 @@ seo:
|
|
|
925
1247
|
tag: noindex,follow
|
|
926
1248
|
# robots can be written in front-matter
|
|
927
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
|