-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
99 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,14 +39,14 @@ copyright: | |
# Sidebar | ||
sidebar: right | ||
widgets: | ||
- category | ||
#- tag | ||
- tagcloud | ||
- archive | ||
- category | ||
#- tag | ||
- tagcloud | ||
- archive | ||
#- recent_posts | ||
|
||
# Widget behavior | ||
archive_type: 'monthly' | ||
archive_type: "monthly" | ||
show_count: false | ||
recent_posts_limits: 5 | ||
|
||
|
@@ -77,7 +77,6 @@ social: | |
# discord: https://discordapp.com/users/yourname | ||
# steam: https://steamcommunity.com/id/yourname | ||
|
||
|
||
footer: | ||
since: 2020 # 2020-current_year | ||
powered: true | ||
|
@@ -91,15 +90,15 @@ math: | |
|
||
# need https://github.com/webappdevelp/hexo-filter-mermaid-diagrams | ||
mermaid: ## mermaid url https://github.com/knsv/mermaid | ||
enable: false # default true | ||
enable: false # default true | ||
|
||
# valine comment system. https://valine.js.org | ||
# version 1.5.1 | ||
# notify and verify have been deprecated | ||
valine: | ||
enable: false # if you want to use valine,please set this value is true | ||
appId: # leancloud application app id | ||
appKey: # leancloud application app key | ||
appId: # leancloud application app id | ||
appKey: # leancloud application app key | ||
pageSize: 10 # comment list page size | ||
avatar: mp # gravatar style https://valine.js.org/#/avatar | ||
lang: zh-cn # i18n: zh-cn/en | ||
|
@@ -112,7 +111,7 @@ valine: | |
# https://waline.js.org/ | ||
waline: | ||
enable: false | ||
serverURL: | ||
serverURL: | ||
lang: zh-CN | ||
locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80 | ||
emoji: | ||
|
@@ -122,7 +121,7 @@ waline: | |
- https://unpkg.com/@waline/[email protected]/qq | ||
- https://unpkg.com/@waline/[email protected]/tieba | ||
- https://unpkg.com/@waline/[email protected]/tw-emoji | ||
meta: | ||
meta: | ||
- nick | ||
- link | ||
|
@@ -135,8 +134,8 @@ waline: | |
# https://twikoo.js.org | ||
twikoo: | ||
enable: false | ||
envId: # 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
region: | ||
envId: # 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app) | ||
region: | ||
|
||
# https://github.com/gitalk/gitalk/blob/master/readme-cn.md | ||
gitalk: | ||
|
@@ -201,13 +200,13 @@ dark_mode: | |
# see https://github.com/D-Sketon/mouse-firework | ||
firework: | ||
enable: true | ||
options: | ||
options: | ||
excludeElements: ["a"] | ||
particles: | ||
- shape: circle | ||
move: ["emit"] | ||
easing: easeOutExpo | ||
colors: ["#ff5252","#ff7c7c","#ffafaf","#ffd0d0"] | ||
colors: ["#ff5252", "#ff7c7c", "#ffafaf", "#ffd0d0"] | ||
number: 20 | ||
duration: [1200, 1800] | ||
shapeOptions: | ||
|
@@ -238,38 +237,44 @@ live2d: | |
|
||
# Dependent cdn links | ||
vendor: | ||
cdn_jsdelivr_gh: https://cdn.jsdelivr.net/gh/ | ||
cdn_jsdelivr_npm: https://cdn.jsdelivr.net/npm/ | ||
fastly_jsdelivr_gh: https://fastly.jsdelivr.net/gh/ | ||
fastly_jsdelivr_npm: https://fastly.jsdelivr.net/npm/ | ||
unpkg: https://unpkg.com/ | ||
webcache: https://npm.webcache.cn/ | ||
js: | ||
jquery: https://unpkg.com/[email protected]/dist/jquery.min.js | ||
clipboard: https://unpkg.com/[email protected]/dist/clipboard.min.js | ||
lazysizes: https://unpkg.com/[email protected]/lazysizes.min.js | ||
fancybox: https://unpkg.com/@fancyapps/[email protected]/dist/jquery.fancybox.min.js | ||
valine: https://unpkg.com/[email protected]/dist/Valine.min.js | ||
waline: https://unpkg.com/@waline/client@v2/dist/waline.mjs | ||
twikoo: https://unpkg.com/[email protected]/dist/twikoo.all.min.js | ||
gitalk: https://unpkg.com/gitalk/dist/gitalk.min.js | ||
busuanzi: https://unpkg.com/[email protected]/bsz.pure.mini.js | ||
algolia: https://unpkg.com/[email protected]/dist/algoliasearch-lite.umd.js | ||
instantsearch: https://unpkg.com/[email protected]/dist/instantsearch.production.min.js | ||
pace: https://unpkg.com/[email protected]/pace.min.js | ||
mermaid: https://unpkg.com/[email protected]/dist/mermaid.min.js | ||
wow: https://unpkg.com/[email protected]/dist/wow.min.js | ||
firework: https://www.unpkg.com/[email protected]/dist/index.umd.js | ||
pjax: https://www.unpkg.com/[email protected]/dist/index.umd.js | ||
live2d: | ||
base: https://fastly.jsdelivr.net/gh/MliKiowa/plugin-live2d/ | ||
js: https://fastly.jsdelivr.net/gh/MliKiowa/plugin-live2d/js/live2d-autoload.js | ||
jquery: webcache|[email protected]/dist/jquery.min.js | ||
clipboard: webcache|[email protected]/dist/clipboard.min.js | ||
lazysizes: webcache|[email protected]/lazysizes.min.js | ||
fancybox: webcache|@fancyapps/[email protected]/dist/jquery.fancybox.min.js | ||
valine: webcache|[email protected]/dist/Valine.min.js | ||
waline: webcache|@waline/client@v2/dist/waline.mjs | ||
twikoo: webcache|[email protected]/dist/twikoo.all.min.js | ||
gitalk: webcache|gitalk/dist/gitalk.min.js | ||
busuanzi: webcache|[email protected]/bsz.pure.mini.js | ||
algolia: webcache|[email protected]/dist/algoliasearch-lite.umd.js | ||
instantsearch: webcache|[email protected]/dist/instantsearch.production.min.js | ||
pace: webcache|[email protected]/pace.min.js | ||
mermaid: webcache|[email protected]/dist/mermaid.min.js | ||
wow: webcache|[email protected]/dist/wow.min.js | ||
firework: webcache|[email protected]/dist/index.umd.js | ||
pjax: webcache|[email protected]/dist/index.umd.js | ||
live2d: | ||
base: fastly_jsdelivr_gh|MliKiowa/plugin-live2d/ | ||
js: fastly_jsdelivr_gh|MliKiowa/plugin-live2d/js/live2d-autoload.js | ||
css: | ||
highlight: https://unpkg.com/[email protected]/index.css | ||
fancybox: https://unpkg.com/@fancyapps/[email protected]/dist/jquery.fancybox.min.css | ||
katex: https://unpkg.com/[email protected]/dist/katex.min.css | ||
waline: https://unpkg.com/@waline/client@v2/dist/waline.css | ||
gitalk: https://unpkg.com/gitalk/dist/gitalk.css | ||
fontawesome: | ||
highlight: webcache|[email protected]/index.css | ||
fancybox: webcache|@fancyapps/[email protected]/dist/jquery.fancybox.min.css | ||
katex: webcache|[email protected]/dist/katex.min.css | ||
waline: webcache|@waline/client@v2/dist/waline.css | ||
gitalk: webcache|gitalk/dist/gitalk.css | ||
fontawesome: | ||
high_priority: | ||
- https://unpkg.com/@fortawesome/[email protected]/css/regular.min.css | ||
- https://unpkg.com/@fortawesome/[email protected]/css/solid.min.css | ||
- webcache|@fortawesome/[email protected]/css/regular.min.css | ||
- webcache|@fortawesome/[email protected]/css/solid.min.css | ||
low_priority: | ||
- https://unpkg.com/@fortawesome/[email protected]/css/brands.min.css | ||
- https://unpkg.com/@fortawesome/[email protected]/css/v5-font-face.min.css | ||
- https://unpkg.com/@fortawesome/[email protected]/css/v4-font-face.min.css | ||
animate: https://unpkg.com/[email protected]/css/libs/animate.css | ||
- webcache|@fortawesome/[email protected]/css/brands.min.css | ||
- webcache|@fortawesome/[email protected]/css/v5-font-face.min.css | ||
- webcache|@fortawesome/[email protected]/css/v4-font-face.min.css | ||
animate: webcache|[email protected]/css/libs/animate.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
hexo.extend.helper.register('vendorCdn', (content) => { | ||
if (!Array.isArray(content)) { | ||
content = [content] | ||
} | ||
return content.map(item => { | ||
const contentToken = item.split('|') | ||
if (contentToken.length !== 2) { | ||
throw new Error("invalid vendor") | ||
} | ||
const cdn = contentToken[0] | ||
if (!hexo.theme.config.vendor[cdn]) { | ||
throw new Error("invalid cdn") | ||
} | ||
return hexo.theme.config.vendor[cdn] + contentToken[1] | ||
}) | ||
}) |
File renamed without changes.