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/languages/en.yml
CHANGED
|
@@ -43,7 +43,14 @@ rightmenu:
|
|
|
43
43
|
back: "Back"
|
|
44
44
|
forward: "Forward"
|
|
45
45
|
reload: "Reload"
|
|
46
|
+
search_word: "Site Search"
|
|
46
47
|
copy_text: "Copy Text"
|
|
47
48
|
copy_image_src: "Copy Image Link"
|
|
48
49
|
copy_link: "Copy Link"
|
|
49
50
|
open_in_new_tab: "Open Link in New Tab"
|
|
51
|
+
|
|
52
|
+
kill:
|
|
53
|
+
title: "Sorry, your browser cannot access this site"
|
|
54
|
+
more: "Learn more >"
|
|
55
|
+
noscript: "This page requires browser support (enable) JavaScript"
|
|
56
|
+
ie: "Microsoft has terminated support for Internet Explorer (IE) 10 and earlier versions in 2016. <br/>There are great security risks to continue using it. Please use contemporary mainstream browsers to access."
|
package/languages/zh-CN.yml
CHANGED
|
@@ -6,8 +6,8 @@ post:
|
|
|
6
6
|
pin: 置顶
|
|
7
7
|
readmore: 阅读全文
|
|
8
8
|
readoriginal: 去源站阅读
|
|
9
|
-
wordcount: '字数:%s字'
|
|
10
|
-
duration: '时长:%s分钟'
|
|
9
|
+
wordcount: '字数:%s 字'
|
|
10
|
+
duration: '时长:%s 分钟'
|
|
11
11
|
comments: 评论
|
|
12
12
|
comments_load: 点击加载 %s 评论
|
|
13
13
|
comments_check: 正在检查 %s 能否访问...
|
|
@@ -43,7 +43,18 @@ rightmenu:
|
|
|
43
43
|
back: "返回"
|
|
44
44
|
forward: "前进"
|
|
45
45
|
reload: "刷新"
|
|
46
|
+
search_word: "站内搜索"
|
|
46
47
|
copy_text: "复制文本"
|
|
48
|
+
copy_paste: "粘贴文本"
|
|
49
|
+
copy_select: "全选文本"
|
|
50
|
+
copy_cut: "剪切文本"
|
|
47
51
|
copy_image_src: "复制图片地址"
|
|
52
|
+
copy_image_file: "复制图片文件"
|
|
48
53
|
copy_link: "复制链接"
|
|
49
54
|
open_in_new_tab: "在新标签页打开"
|
|
55
|
+
|
|
56
|
+
kill:
|
|
57
|
+
title: "抱歉,您的浏览器无法访问本站"
|
|
58
|
+
more: "了解详情 >"
|
|
59
|
+
noscript: "本页面需要浏览器支持(启用)JavaScript"
|
|
60
|
+
ie: "微软已经于2016年终止了对 Internet Explorer (IE) 10 及更早版本的支持,<br/>继续使用存在极大的安全隐患,请使用当代主流的浏览器进行访问。"
|
package/languages/zh-TW.yml
CHANGED
|
@@ -43,7 +43,14 @@ rightmenu:
|
|
|
43
43
|
back: "返回"
|
|
44
44
|
forward: "前进"
|
|
45
45
|
reload: "刷新"
|
|
46
|
+
search_word: "站內搜索"
|
|
46
47
|
copy_text: "複製文本"
|
|
47
48
|
copy_image_src: "複製圖片地址"
|
|
48
49
|
copy_link: "複製鏈接"
|
|
49
50
|
open_in_new_tab: "在新標籤頁打開"
|
|
51
|
+
|
|
52
|
+
kill:
|
|
53
|
+
title: "抱歉,您的瀏覽器無法訪問本站"
|
|
54
|
+
more: "了解詳情 >"
|
|
55
|
+
noscript: "本頁面需要瀏覽器支持(啟用)JavaScript"
|
|
56
|
+
ie: "微軟已經於2016年終止了對 Internet Explorer (IE) 10 及更早版本的支持,<br/>繼續使用存在極大的安全隱患,請使用當代主流的瀏覽器進行訪問。"
|
package/layout/404.ejs
CHANGED
package/layout/_meta/author.ejs
CHANGED
|
@@ -5,9 +5,9 @@ if (aid && site.data && site.data.author && (aid in site.data.author)) {
|
|
|
5
5
|
author = site.data.author[aid];
|
|
6
6
|
}
|
|
7
7
|
%>
|
|
8
|
-
<div class='new-meta-item author'>
|
|
9
|
-
<a class='author' href="<%- author.url %>" rel="nofollow">
|
|
10
|
-
<img
|
|
11
|
-
<p><%- author.name %></p>
|
|
8
|
+
<div class='new-meta-item author' itemprop="author" itemscope itemtype="http://schema.org/Person">
|
|
9
|
+
<a itemprop="url" class='author' href="<%- author.url %>" rel="nofollow">
|
|
10
|
+
<img itemprop="image" src="<%- author.avatar %>">
|
|
11
|
+
<p itemprop="name"><%- author.name %></p>
|
|
12
12
|
</a>
|
|
13
13
|
</div>
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<% if (post.categories && post.categories.length){ %>
|
|
2
2
|
<div class='new-meta-item category'>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
<i class="<%- theme.article.body.meta_library.category.icon %> fa-fw" aria-hidden="true"></i>
|
|
4
|
+
<%- list_categories(post.categories, {
|
|
5
|
+
show_count: false,
|
|
6
|
+
separator: '<span class="sep"></span>',
|
|
7
|
+
style: 'none'
|
|
8
|
+
}) %>
|
|
9
|
+
<% for(cat of post.categories.toArray()){ %>
|
|
10
|
+
<span hidden itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
|
11
|
+
<a href="<%- url_for(cat.path) %>" itemprop="url"><span itemprop="name"><%- cat.name %></span></a>
|
|
12
|
+
</span>
|
|
13
|
+
<% } %>
|
|
11
14
|
</div>
|
|
12
15
|
<% } %>
|
package/layout/_meta/counter.ejs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
%>
|
|
10
10
|
<div id="lc-pv" data-title="<%- post.title || page.title %>" data-path="<%- url_for(path) %>">
|
|
11
11
|
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
12
|
-
<span id='number'><i class="
|
|
12
|
+
<span id='number'><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
|
|
13
13
|
<%- theme.article.body.meta_library.counter.unit %>
|
|
14
14
|
</div>
|
|
15
15
|
</a>
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
21
21
|
<p>
|
|
22
22
|
<span id="busuanzi_value_page_pv">
|
|
23
|
-
<i class="
|
|
23
|
+
<i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
|
|
24
24
|
</span>
|
|
25
25
|
<%- theme.article.body.meta_library.counter.unit %>
|
|
26
26
|
</p>
|
|
27
27
|
</a>
|
|
28
28
|
</div>
|
|
29
|
-
<% } else if (
|
|
29
|
+
<% } else if (theme.comments.service=='waline' && theme.comments.waline.pageview) { %>
|
|
30
30
|
<div class="new-meta-item browse">
|
|
31
31
|
<a class='notlink'>
|
|
32
32
|
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
@@ -36,21 +36,43 @@
|
|
|
36
36
|
path = path.substring(0, path.length - 10);
|
|
37
37
|
}
|
|
38
38
|
%>
|
|
39
|
-
<span
|
|
39
|
+
<span data-path="<%- url_for(path) %>" class="waline-pageview-count"></span>
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
42
|
+
<% } else if (theme.comments.service=='twikoo' && !!page.comments) { %>
|
|
43
|
+
<div class="new-meta-item browse">
|
|
44
|
+
<a class='notlink'>
|
|
45
|
+
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
40
46
|
<p>
|
|
41
|
-
<span
|
|
47
|
+
<span id="twikoo_visitors">
|
|
48
|
+
<i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
|
|
49
|
+
</span>
|
|
42
50
|
</p>
|
|
43
51
|
</span>
|
|
44
52
|
</a>
|
|
45
53
|
</div>
|
|
46
|
-
<% } else if (theme.comments.service=='
|
|
54
|
+
<% } else if (theme.comments.service=='discuss' && !!page.comments) { %>
|
|
47
55
|
<div class="new-meta-item browse">
|
|
48
56
|
<a class='notlink'>
|
|
49
57
|
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
50
58
|
<p>
|
|
51
|
-
<span id="
|
|
59
|
+
<span id="Discuss-Visitors">
|
|
60
|
+
<i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
|
|
61
|
+
</span>
|
|
52
62
|
</p>
|
|
53
63
|
</span>
|
|
54
64
|
</a>
|
|
55
65
|
</div>
|
|
66
|
+
<% } else if (theme.comments.service=='artalk' && !!page.comments) { %>
|
|
67
|
+
<div class="new-meta-item browse">
|
|
68
|
+
<a class='notlink'>
|
|
69
|
+
<i class="<%- theme.article.body.meta_library.counter.icon %> fa-fw" aria-hidden="true"></i>
|
|
70
|
+
<p>
|
|
71
|
+
<span id="artalk_visitors">
|
|
72
|
+
<i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i>
|
|
73
|
+
</span>
|
|
74
|
+
<%- theme.article.body.meta_library.counter.unit %>
|
|
75
|
+
</p>
|
|
76
|
+
</a>
|
|
77
|
+
</div>
|
|
56
78
|
<% } %>
|
package/layout/_meta/date.ejs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="new-meta-item date">
|
|
1
|
+
<div class="new-meta-item date" itemprop="dateCreated datePublished" datetime="<%- moment(post.date).format() %>">
|
|
2
2
|
<a class='notlink'>
|
|
3
3
|
<i class="<%- theme.article.body.meta_library.date.icon %> fa-fw" aria-hidden="true"></i>
|
|
4
4
|
<p><%- theme.article.body.meta_library.date.title + date(post.date, theme.article.body.meta_library.date.format) %></p>
|
package/layout/_meta/music.ejs
CHANGED
package/layout/_meta/share.ejs
CHANGED
package/layout/_meta/tags.ejs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<% if (post.tags && post.tags.length) { %>
|
|
2
2
|
<%
|
|
3
3
|
var items = [];
|
|
4
|
+
var hidden_items = [];
|
|
4
5
|
post.tags.each(function(item){
|
|
5
6
|
items.push('<div class="new-meta-item meta-tags"><a class="tag" href="'+url_for(item.path)+'" rel="nofollow"><i class="' + theme.article.body.meta_library.tags.icon + ' fa-fw" aria-hidden="true"></i><p>' + item.name + '</p></a></div>');
|
|
7
|
+
hidden_items.push(item.name);
|
|
6
8
|
});
|
|
7
9
|
%>
|
|
8
10
|
<%- items.join(' ') %>
|
|
11
|
+
<span hidden itemprop="keywords"><%- hidden_items.join(' ') %></span>
|
|
9
12
|
<% } %>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
<% if(post.thumbnail && post.thumbnail.length){ %>
|
|
2
|
-
<a title='<%- post.title %>' href='<%- url_for(post.link || post.path) %>'
|
|
2
|
+
<a title='<%- post.title %>' href='<%- url_for(post.link || post.path) %>'>
|
|
3
|
+
<img class='thumbnail' src='<%- post.thumbnail %>' itemprop="image">
|
|
4
|
+
</a>
|
|
3
5
|
<% } %>
|
package/layout/_meta/updated.ejs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="new-meta-item date" itemprop="
|
|
1
|
+
<div class="new-meta-item date" itemprop="dateModified" datetime="<%- moment(post.updated).format() %>">
|
|
2
2
|
<a class='notlink'>
|
|
3
3
|
<i class="<%- theme.article.body.meta_library.updated.icon %> fa-fw" aria-hidden="true"></i>
|
|
4
4
|
<p><%- theme.article.body.meta_library.updated.title + date(post.updated, theme.article.body.meta_library.updated.format) %></p>
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
if (path.length > 9 && (path.substring(path.length - 10) == 'index.html')) {
|
|
6
6
|
path = path.substring(0, path.length - 10);
|
|
7
7
|
}
|
|
8
|
+
if(!!theme.comments.waline.path) path = theme.comments.waline.path
|
|
8
9
|
%>
|
|
9
10
|
<a href="<%- url_for(path) %>#comments">
|
|
10
11
|
<i class="<%- theme.article.body.meta_library.walinecount.icon %> fa-fw"></i>
|
|
11
|
-
<span
|
|
12
|
+
<span data-path="<%- url_for(path) %>" class="waline-comment-count"></span>
|
|
12
13
|
<span class="leancloud-comments-count"> <%- theme.article.body.meta_library.walinecount.desc %></span>
|
|
13
14
|
</a>
|
|
14
15
|
</div>
|
|
File without changes
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<% if (value.target) { %>
|
|
23
23
|
target="<%- value.target %>"
|
|
24
24
|
<% } %>
|
|
25
|
-
|
|
25
|
+
active-action="action-<%= url_for(value.url).replace(/\/|%|\./g, "")?url_for(value.url).replace(/\/|%|\./g, ""):"home" %>">
|
|
26
26
|
<% if (value.img) { %><img src='<%= value.img %>'><% } else if (value.icon) { %><i class='<%= value.icon %> fa-fw'></i><% } %><p><%- value.name %></p>
|
|
27
27
|
</a>
|
|
28
28
|
<%})%>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<% if (value.target) { %>
|
|
23
23
|
target="<%- value.target %>"
|
|
24
24
|
<% } %>
|
|
25
|
-
|
|
25
|
+
active-action="action-<%= url_for(value.url).replace(/\/|%|\./g, "")?url_for(value.url).replace(/\/|%|\./g, ""):"home" %>">
|
|
26
26
|
<% if (value.img) { %><img src='<%= value.img %>'><% } else if (value.icon) { %><i class='<%= value.icon %> fa-fw'></i><% } %><p><%- value.name %></p>
|
|
27
27
|
</a>
|
|
28
28
|
<%})%>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<% if (value.target) { %>
|
|
23
23
|
target="<%- value.target %>"
|
|
24
24
|
<% } %>
|
|
25
|
-
|
|
25
|
+
active-action="action-<%= url_for(value.url).replace(/\/|%|\./g, "")?url_for(value.url).replace(/\/|%|\./g, ""):"home" %>">
|
|
26
26
|
<% if (value.img) { %><img src='<%= value.img %>'><% } else if (value.icon) { %><i class='<%= value.icon %> fa-fw'></i><% } %><p><%- value.name %></p>
|
|
27
27
|
</a>
|
|
28
28
|
<%})%>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<% if (theme.plugins.parallax.enable) { %>
|
|
2
|
+
<div id="parallax-window"></div>
|
|
3
|
+
<% } else if (theme.plugins.lazyload && theme.plugins.lazyload.enable) { %>
|
|
4
|
+
<div class='cover-bg lazyload placeholder' data-bg="<%- theme.cover.background %>"></div>
|
|
5
|
+
<% } else { %>
|
|
6
|
+
<div class='cover-bg' style='background-image:url(<%- theme.cover.background %>)'></div>
|
|
7
|
+
<% } %>
|
|
8
|
+
<%- partial(theme.cover.layout_scheme) %>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="m_search">
|
|
16
16
|
<form name="searchform" class="form u-search-form">
|
|
17
17
|
<input type="text" class="input u-search-input" placeholder="<%- theme.cover && theme.cover.search %>" />
|
|
18
|
-
<i class="icon
|
|
18
|
+
<i class="icon fa-solid fa-search fa-fw"></i>
|
|
19
19
|
</form>
|
|
20
20
|
</div>
|
|
21
21
|
<% } %>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<% if (value.target) { %>
|
|
31
31
|
target="<%- value.target %>"
|
|
32
32
|
<% } %>
|
|
33
|
-
|
|
33
|
+
active-action="action-<%= url_for(value.url).replace(/\/|%|\./g, "")?url_for(value.url).replace(/\/|%|\./g, ""):"home" %>">
|
|
34
34
|
<% if (value.icon) { %><i class='<%= value.icon %> fa-fw'></i><% } %><p><%- value.name %></p>
|
|
35
35
|
</a>
|
|
36
36
|
<%})%>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<% if (page.prev != 0) { %>
|
|
48
48
|
<a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>">
|
|
49
49
|
<section class="post prev white-box <%- theme.custom_css.body.effect.join(' ') %>" >
|
|
50
|
-
<i class="
|
|
50
|
+
<i class="fa-solid fa-chevron-left" aria-hidden="true"></i> <%- __('post.prev_page') %>
|
|
51
51
|
</section>
|
|
52
52
|
</a>
|
|
53
53
|
<% } %>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<% if (page.next != 0) { %>
|
|
58
58
|
<a class="next" rel="next" href="<%= url_for(page.next_link) %>">
|
|
59
59
|
<section class="post next white-box <%- theme.custom_css.body.effect.join(' ') %>">
|
|
60
|
-
<%- __('post.next_page') %> <i class="
|
|
60
|
+
<%- __('post.next_page') %> <i class="fa-solid fa-chevron-right" aria-hidden="true"></i>
|
|
61
61
|
</section>
|
|
62
62
|
</a>
|
|
63
63
|
<% } %>
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
<article class="article post white-box reveal md <%- theme.custom_css.body.effect.join(' ') %> article-type-<%= post.layout %>" id="<%= post.layout %>" itemscope itemprop="blogPost">
|
|
1
|
+
<article itemscope itemtype="http://schema.org/Article" class="article post white-box reveal md <%- theme.custom_css.body.effect.join(' ') %> article-type-<%= post.layout %>" id="<%= post.layout %>" itemscope itemprop="blogPost">
|
|
2
|
+
<link itemprop="mainEntityOfPage" href="<%- post.permalink %>">
|
|
3
|
+
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
|
|
4
|
+
<meta itemprop="name" content="<%- config.title %>">
|
|
5
|
+
</span>
|
|
6
|
+
<span hidden itemprop="post" itemscope itemtype="http://schema.org/Post">
|
|
7
|
+
<meta itemprop="name" content="<%- config.title %>">
|
|
8
|
+
<meta itemprop="description" content="<%- config.description %>">
|
|
9
|
+
</span>
|
|
2
10
|
<%- partial('meta', {post: post, position: 'top'}) %>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<div id="bbtalk"></div>
|
|
8
|
-
<% } %>
|
|
9
|
-
<%- post.content %>
|
|
11
|
+
<div id="layoutHelper-page-plugins"></div>
|
|
12
|
+
<div id="post-body" itemprop="articleBody">
|
|
13
|
+
<%- post.content %>
|
|
14
|
+
</div>
|
|
10
15
|
<% if (page.link) { %>
|
|
11
16
|
<div class='div-ori-link'>
|
|
12
17
|
<a class='ori-link' href='<%- url_for(post.link || post.path) %>'>
|
|
@@ -91,13 +96,13 @@
|
|
|
91
96
|
<div class="prev-next">
|
|
92
97
|
<% if (prev.path) { %>
|
|
93
98
|
<a class='prev' href='<%- url_for(prev.path) %>'>
|
|
94
|
-
<p class='title'><i class="
|
|
99
|
+
<p class='title'><i class="fa-solid fa-chevron-left" aria-hidden="true"></i><%- prev.title || '' %></p>
|
|
95
100
|
<p class='content'><%- prev.exp %></p>
|
|
96
101
|
</a>
|
|
97
102
|
<% } %>
|
|
98
103
|
<% if (next.path) { %>
|
|
99
104
|
<a class='next' href='<%- url_for(next.path) %>'>
|
|
100
|
-
<p class='title'><%- next.title || '' %><i class="
|
|
105
|
+
<p class='title'><%- next.title || '' %><i class="fa-solid fa-chevron-right" aria-hidden="true"></i></p>
|
|
101
106
|
<p class='content'><%- next.exp %></p>
|
|
102
107
|
</a>
|
|
103
108
|
<% } %>
|
|
@@ -109,24 +114,24 @@
|
|
|
109
114
|
<div class="prev-next">
|
|
110
115
|
<% if (post.prev) { %>
|
|
111
116
|
<a class='prev' href='<%- url_for(post.prev.path) %>'>
|
|
112
|
-
<p class='title'><i class="
|
|
117
|
+
<p class='title'><i class="fa-solid fa-chevron-left" aria-hidden="true"></i><%- post.prev.title || post.prev.seo_title || date(post.date, theme.article.body.meta_library.date.format) %></p>
|
|
113
118
|
<p class='content'><%- truncate(strip_html(page.prev.content), {length: 100}) %></p>
|
|
114
119
|
</a>
|
|
115
120
|
<% } %>
|
|
116
121
|
<% if (post.next) { %>
|
|
117
122
|
<a class='next' href='<%- url_for(post.next.path) %>'>
|
|
118
|
-
<p class='title'><%- post.next.title ||
|
|
123
|
+
<p class='title'><%- post.next.title || post.next.seo_title || date(post.date, theme.article.body.meta_library.date.format) %><i class="fa-solid fa-chevron-right" aria-hidden="true"></i></p>
|
|
119
124
|
<p class='content'><%- truncate(strip_html(page.next.content), {length: 100}) %></p>
|
|
120
125
|
</a>
|
|
121
126
|
<% } %>
|
|
122
127
|
</div>
|
|
123
128
|
<% } %>
|
|
129
|
+
<!-- Custom Files postEnd begin-->
|
|
130
|
+
<%- volantis_inject('postEnd') %>
|
|
131
|
+
<!-- Custom Files postEnd end-->
|
|
124
132
|
</article>
|
|
125
133
|
|
|
126
134
|
<% if (page.comments == undefined || page.comments != false) { %>
|
|
127
|
-
<%- partial('../
|
|
135
|
+
<%- partial('../_plugins/comments/index') %>
|
|
128
136
|
<% } %>
|
|
129
137
|
|
|
130
|
-
<% if (page.mathjax) { %>
|
|
131
|
-
<%- partial('../_third-party/math/mathjax/script') %>
|
|
132
|
-
<% } %>
|
|
@@ -1,44 +1,24 @@
|
|
|
1
1
|
<div id="l_cover">
|
|
2
2
|
<% if (theme.plugins.pjax.enable) { %>
|
|
3
3
|
<% if (theme.pjax_cover.enableCover) { %>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<% } else { %>
|
|
10
|
-
<div class='cover-bg' style='background-image:url(<%- theme.cover.background %>)'></div>
|
|
11
|
-
<% } %>
|
|
12
|
-
<%- partial('../_cover/' + theme.cover.layout_scheme) %>
|
|
13
|
-
<div id="scroll-down" style="display: <%- theme.pjax_cover.scrollDownDisplay %>;"><i class="fa fa-chevron-down scroll-down-effects"></i></div>
|
|
14
|
-
</div>
|
|
4
|
+
<!-- see: /layout/_partial/scripts/_ctrl/coverCtrl.ejs -->
|
|
5
|
+
<div id="<%- theme.pjax_cover.frontMatterCover %>" class='cover-wrapper <%- page.layout %> <%- theme.cover.layout_scheme %>' style="display: <%- theme.pjax_cover.coverWrapperDisplay %>;">
|
|
6
|
+
<%- partial("./_cover/layout") %>
|
|
7
|
+
<div id="scroll-down" style="display: <%- theme.pjax_cover.scrollDownDisplay %>;"><i class="fa fa-chevron-down scroll-down-effects"></i></div>
|
|
8
|
+
</div>
|
|
15
9
|
<% } %>
|
|
16
10
|
<% } else { %>
|
|
17
11
|
<% if (page.cover == true) { %>
|
|
18
12
|
<% if (is_home() && page.prev == 0 && theme.cover.height_scheme == 'full') { %>
|
|
19
13
|
<div class="cover-wrapper <%- page.layout %> <%- theme.cover.layout_scheme %>" id='full'>
|
|
20
|
-
|
|
21
|
-
<div id='cover-backstretch'></div>
|
|
22
|
-
<% } else if (theme.plugins.lazyload && theme.plugins.lazyload.enable) { %>
|
|
23
|
-
<div class='cover-bg lazyload placeholder' data-bg="<%- theme.cover.background %>"></div>
|
|
24
|
-
<% } else { %>
|
|
25
|
-
<div class='cover-bg' style='background-image:url(<%- theme.cover.background %>)'></div>
|
|
26
|
-
<% } %>
|
|
27
|
-
<%- partial('../_cover/' + theme.cover.layout_scheme) %>
|
|
14
|
+
<%- partial("./_cover/layout") %>
|
|
28
15
|
<div id="scroll-down"><i class="fa fa-chevron-down scroll-down-effects"></i></div>
|
|
29
16
|
</div>
|
|
30
17
|
<% } else { %>
|
|
31
18
|
<div class="cover-wrapper <%- page.layout %> <%- theme.cover.layout_scheme %>" id='half'>
|
|
32
|
-
|
|
33
|
-
<div id='cover-backstretch'></div>
|
|
34
|
-
<% } else if (theme.plugins.lazyload && theme.plugins.lazyload.enable) { %>
|
|
35
|
-
<div class='cover-bg lazyload placeholder' data-bg="<%- theme.cover.background %>"></div>
|
|
36
|
-
<% } else { %>
|
|
37
|
-
<div class='cover-bg' style='background-image:url(<%- theme.cover.background %>)'></div>
|
|
38
|
-
<% } %>
|
|
39
|
-
<%- partial('../_cover/' + theme.cover.layout_scheme) %>
|
|
19
|
+
<%- partial("./_cover/layout") %>
|
|
40
20
|
</div>
|
|
41
21
|
<% } %>
|
|
42
22
|
<% } %>
|
|
43
23
|
<% } %>
|
|
44
|
-
|
|
24
|
+
</div>
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
<% if (theme.site_footer) { %>
|
|
2
2
|
<%
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
var layout = theme.site_footer.layout;
|
|
4
|
+
if (config.theme_config && config.theme_config.footer && config.theme_config.footer.layout) {
|
|
5
|
+
layout = config.theme_config.footer.layout;
|
|
6
|
+
}
|
|
7
|
+
let theme_version = theme.info.theme_version
|
|
8
|
+
// 未发布的 alpha 版本
|
|
9
|
+
if (theme_version.indexOf("alpha")!=-1) {
|
|
10
|
+
theme_version = "dev"
|
|
11
|
+
}
|
|
7
12
|
%>
|
|
8
|
-
<footer class="footer clearfix">
|
|
13
|
+
<footer class="footer clearfix" itemscope itemtype="http://schema.org/WPFooter">
|
|
9
14
|
<br><br>
|
|
10
15
|
<% layout.forEach(function(item){ %>
|
|
11
16
|
<% if (item == 'social') { %>
|
|
12
17
|
<br>
|
|
13
|
-
<div class="social-wrapper">
|
|
18
|
+
<div class="social-wrapper" itemprop="about" itemscope itemtype="http://schema.org/Thing">
|
|
14
19
|
<% (theme.site_footer.social||[]).forEach(function(value){ %>
|
|
15
20
|
<% if (value.url && (value.icon || value.img || value.avatar)) { %>
|
|
16
21
|
<a href="<%= url_for(value.url) %>"
|
|
17
22
|
class="social <%- value.icon %> flat-btn"
|
|
18
23
|
target="_blank"
|
|
19
|
-
rel="external nofollow noopener noreferrer">
|
|
24
|
+
rel="external nofollow noopener noreferrer" itemprop="url">
|
|
20
25
|
<% if (value.img) { %>
|
|
21
26
|
<img src="<%- value.img %>"/>
|
|
22
27
|
<% } else if (value.avatar) { %>
|
|
@@ -28,19 +33,19 @@
|
|
|
28
33
|
</div>
|
|
29
34
|
<% } else if (item == 'aplayer') { %>
|
|
30
35
|
<div class="aplayer-container">
|
|
31
|
-
<%- partial('../
|
|
36
|
+
<%- partial('../_plugins/aplayer/layout', {post: null, where: 'footer'}) %>
|
|
32
37
|
</div>
|
|
33
38
|
<% } else if (item == 'license') { %>
|
|
34
39
|
<div><%- markdown(__('footer.license')) %></div>
|
|
35
40
|
<% } else if (item == 'info') { %>
|
|
36
41
|
<%- __('footer.use') %>
|
|
37
|
-
<a href="https://github.com/volantis-x/hexo-theme-volantis/tree/<%-
|
|
42
|
+
<a href="https://github.com/volantis-x/hexo-theme-volantis/tree/<%- theme_version %>" target="_blank" class="codename">Volantis</a>
|
|
38
43
|
<%- __('footer.theme') %><% if (theme.analytics.busuanzi) { %><%- __('symbol.comma') %><%- __('footer.total_views') %>
|
|
39
|
-
<span id="busuanzi_value_site_pv"><i class="
|
|
44
|
+
<span id="busuanzi_value_site_pv"><i class="fa-solid fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
|
|
40
45
|
<%- __('footer.times') %>
|
|
41
46
|
<% } %>
|
|
42
47
|
<% } else if (item == 'source') { %>
|
|
43
|
-
<%- markdown(__('footer.site_source', '[Volantis](https://github.com/volantis-x/hexo-theme-volantis/tree/'+
|
|
48
|
+
<%- markdown(__('footer.site_source', '[Volantis](https://github.com/volantis-x/hexo-theme-volantis/tree/'+theme_version+')', 'GitHub', 'https://github.com/volantis-x/volantis-docs')) %>
|
|
44
49
|
<% } else if (item == 'copyright') { %>
|
|
45
50
|
<div class='copyright'>
|
|
46
51
|
<%- markdown(theme.site_footer.copyright) %>
|
|
@@ -51,5 +56,8 @@
|
|
|
51
56
|
<% } %>
|
|
52
57
|
<% } %>
|
|
53
58
|
<% }) %>
|
|
59
|
+
<!-- Custom Files footer begin-->
|
|
60
|
+
<%- volantis_inject('footer') %>
|
|
61
|
+
<!-- Custom Files footer end-->
|
|
54
62
|
</footer>
|
|
55
63
|
<% } %>
|