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