[opt] update dependencies

This commit is contained in:
xaoxuu 2022-12-20 00:09:34 +08:00
parent d1a99d4a6b
commit bdef4a11ba
15 changed files with 53 additions and 53 deletions

View File

@ -125,14 +125,14 @@ comments:
# Twikoo # Twikoo
# https://twikoo.js.org/ # https://twikoo.js.org/
twikoo: twikoo:
js: https://fastly.jsdelivr.net/npm/twikoo@1.4.0/dist/twikoo.all.min.js # 建议锁定版本 js: https://gcore.jsdelivr.net/npm/twikoo@1.6.8/dist/twikoo.all.min.js # 建议锁定版本
envId: https://xxx # vercel函数 envId: https://xxx # vercel函数
# Waline # Waline
# https://waline.js.org/ # https://waline.js.org/
waline: waline:
js: https://unpkg.com/@waline/client@v2/dist/waline.js js: https://unpkg.com/@waline/client@2.14.1/dist/waline.js
css: https://unpkg.com/@waline/client@v2/dist/waline.css css: https://unpkg.com/@waline/client@2.14.1/dist/waline.css
# Waline server address url, you should set this to your own link # Waline server address url, you should set this to your own link
serverURL: serverURL:
# If false, comment count will only be displayed in post page, not in home page # If false, comment count will only be displayed in post page, not in home page
@ -163,16 +163,16 @@ comments:
footer: footer:
social: social:
# github: # github:
# icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/08a41b181ce68.svg"/>' # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/08a41b181ce68.svg"/>'
# url: / # url: /
# music: # music:
# icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3845874.svg"/>' # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/3845874.svg"/>'
# url: / # url: /
# unsplash: # unsplash:
# icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3616429.svg"/>' # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/3616429.svg"/>'
# url: / # url: /
# comments: # comments:
# icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/942ebbf1a4b91.svg"/>' # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/942ebbf1a4b91.svg"/>'
# url: /about/#comments # url: /about/#comments
sitemap: sitemap:
# '博客': # '博客':
@ -212,12 +212,12 @@ tag_plugins:
prefix: https://bu.dusays.com/2022/10/24/63567d3e07da3.png prefix: https://bu.dusays.com/2022/10/24/63567d3e07da3.png
# {% emoji %} # {% emoji %}
emoji: emoji:
default: https://fastly.jsdelivr.net/gh/cdn-x/emoji/qq/%s.gif default: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
twemoji: https://fastly.jsdelivr.net/gh/twitter/twemoji/assets/svg/%s.svg twemoji: https://gcore.jsdelivr.net/gh/twitter/twemoji/assets/svg/${name}.svg
qq: https://fastly.jsdelivr.net/gh/cdn-x/emoji/qq/%s.gif qq: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
aru: https://fastly.jsdelivr.net/gh/cdn-x/emoji/aru-l/%s.gif aru: https://gcore.jsdelivr.net/gh/cdn-x/emoji/aru-l/${name}.gif
tieba: https://fastly.jsdelivr.net/gh/cdn-x/emoji/tieba/%s.png tieba: https://gcore.jsdelivr.net/gh/cdn-x/emoji/tieba/${name}.png
blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/%s.png blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/${name}.png
# {% image %} # {% image %}
image: image:
fancybox: # true, false fancybox: # true, false
@ -236,7 +236,7 @@ tag_plugins:
plugins: plugins:
## required plugins ## ## required plugins ##
# jquery # jquery
jquery: https://fastly.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js jquery: https://gcore.jsdelivr.net/npm/jquery@3.6.2/dist/jquery.min.js
# stellar api # stellar api
stellar: stellar:
@ -255,20 +255,20 @@ plugins:
preload: preload:
enable: true enable: true
service: flying_pages # instant_page, flying_pages service: flying_pages # instant_page, flying_pages
instant_page: https://fastly.jsdelivr.net/gh/volantis-x/cdn-volantis@4.1.2/js/instant_page.js instant_page: https://gcore.jsdelivr.net/gh/volantis-x/cdn-volantis@4.1.2/js/instant_page.js
flying_pages: https://fastly.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js flying_pages: https://gcore.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js
# image lazyload # image lazyload
# https://www.npmjs.com/package/vanilla-lazyload # https://www.npmjs.com/package/vanilla-lazyload
lazyload: lazyload:
enable: true # [hexo clean && hexo s] is required after changing this value. enable: true # [hexo clean && hexo s] is required after changing this value.
js: https://fastly.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js js: https://gcore.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js
transition: blur # blur, fade transition: blur # blur, fade
# https://scrollrevealjs.org/api/reveal.html # https://scrollrevealjs.org/api/reveal.html
scrollreveal: scrollreveal:
enable: #true enable: #true
js: https://fastly.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js js: https://gcore.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js
distance: 8px distance: 8px
duration: 500 # ms duration: 500 # ms
interval: 100 # ms interval: 100 # ms
@ -278,8 +278,8 @@ plugins:
# available for {% image xxx %} # available for {% image xxx %}
fancybox: fancybox:
enable: true enable: true
js: https://fastly.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js js: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js
css: https://fastly.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css css: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css
# 可以处理评论区的图片(不支持 iframe 类评论系统)例如: # 可以处理评论区的图片(不支持 iframe 类评论系统)例如:
# 使用twikoo评论可以写: .tk-content img:not([class*="emo"]) # 使用twikoo评论可以写: .tk-content img:not([class*="emo"])
# 使用waline评论可以写: #waline_container .vcontent img # 使用waline评论可以写: #waline_container .vcontent img
@ -288,16 +288,16 @@ plugins:
# swiper # swiper
swiper: swiper:
enable: true enable: true
css: https://unpkg.com/swiper@8/swiper-bundle.min.css css: https://unpkg.com/swiper@8.4.5/swiper-bundle.min.css
js: https://unpkg.com/swiper@8/swiper-bundle.min.js js: https://unpkg.com/swiper@8.4.5/swiper-bundle.min.js
# 赫蹏 (Heti) - 专为中文网页内容设计的排版样式增强 # 赫蹏 (Heti) - 专为中文网页内容设计的排版样式增强
# https://github.com/sivan/heti # https://github.com/sivan/heti
heti: heti:
enable: false # 此插件会和代码块冲突,仅适用于纯中文博主。 enable: false # 此插件会和代码块冲突,仅适用于纯中文博主。
css: https://unpkg.com/heti/umd/heti.min.css css: https://unpkg.com/heti@0.9.2/umd/heti.min.css
js: https://unpkg.com/heti/umd/heti-addon.min.js js: https://unpkg.com/heti@0.9.2/umd/heti-addon.min.js
# MathJax # MathJax
# 需在Markdown文件开头加入mathjax: true # 需在Markdown文件开头加入mathjax: true
@ -312,9 +312,9 @@ plugins:
# 使用 hexo-renderer-markdown-it-plus 作为公式渲染器npm uninstall hexo-renderer-marked --save npm install hexo-renderer-markdown-it-plus --save # 使用 hexo-renderer-markdown-it-plus 作为公式渲染器npm uninstall hexo-renderer-marked --save npm install hexo-renderer-markdown-it-plus --save
katex: katex:
enable: false enable: false
min_css: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous"> min_css: <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
min_js: <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script> min_js: <script defer src="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
auto_render_min_js: <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"onload="renderMathInElement(document.body);"></script> auto_render_min_js: <script defer src="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"onload="renderMathInElement(document.body);"></script>
style: style:
darkmode: auto # auto / always / false darkmode: auto # auto / always / false
@ -349,10 +349,10 @@ style:
hover: 'hsl(14 100% 57%)' # 按钮高亮颜色 hover: 'hsl(14 100% 57%)' # 按钮高亮颜色
animated_avatar: animated_avatar:
animate: auto # auto, always animate: auto # auto, always
background: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.2/avatar/round/rainbow64@3x.webp background: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/rainbow64@3x.webp
codeblock: codeblock:
scrollbar: 4px scrollbar: 4px
highlightjs_theme: https://fastly.jsdelivr.net/gh/highlightjs/cdn-release@11.5.0/build/styles/atom-one-dark.min.css highlightjs_theme: https://gcore.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/atom-one-dark.min.css
loading: loading:
loading: 正在加载 loading: 正在加载
error: 加载失败,请稍后重试。 error: 加载失败,请稍后重试。
@ -361,10 +361,10 @@ style:
search: 'linear-gradient(to right, #04F3FF, #08FFC6, #DDF730, #FFBD19, #FF1FE0, #C418FF, #04F3FF)' search: 'linear-gradient(to right, #04F3FF, #08FFC6, #DDF730, #FFBD19, #FF1FE0, #C418FF, #04F3FF)'
default: default:
avatar: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg avatar: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg
link: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg link: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/link/8f277b4ee0ecd.svg
cover: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg cover: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/cover/76b86c0226ffd.svg
image: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/image/2659360.svg image: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/image/2659360.svg
api_host: api_host:
ghapi: https://api.github.com ghapi: https://api.github.com

View File

@ -6,7 +6,7 @@ page.header = 'auto';
page.robots = 'none'; page.robots = 'none';
%> %>
<article class='md-text error-page'> <article class='md-text error-page'>
<h1><img id='error' src='https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/404/1c830bfcd517d.svg' alt='404'></h1> <h1><img id='error' src='https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/404/1c830bfcd517d.svg' alt='404'></h1>
<p class='what'> <p class='what'>
<strong> <strong>
<%- __('page.error.what') %> <%- __('page.error.what') %>

View File

@ -64,8 +64,8 @@ function og_args() {
<%- generate_robots() %> <%- generate_robots() %>
<meta http-equiv='x-dns-prefetch-control' content='on' /> <meta http-equiv='x-dns-prefetch-control' content='on' />
<link rel='dns-prefetch' href='https://fastly.jsdelivr.net'> <link rel='dns-prefetch' href='https://gcore.jsdelivr.net'>
<link rel="preconnect" href="https://fastly.jsdelivr.net" crossorigin> <link rel="preconnect" href="https://gcore.jsdelivr.net" crossorigin>
<link rel='dns-prefetch' href='//unpkg.com'> <link rel='dns-prefetch' href='//unpkg.com'>
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">

View File

@ -85,13 +85,13 @@ function layoutDiv() {
} }
el += '>'; el += '>';
if (item == 'wechat') { if (item == 'wechat') {
el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/b32ef3da1162a.svg"/>'; el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/b32ef3da1162a.svg"/>';
} else if (item == 'weibo') { } else if (item == 'weibo') {
el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/80c07e4dbb303.svg"/>'; el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/80c07e4dbb303.svg"/>';
} else if (item == 'email') { } else if (item == 'email') {
el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/a1b00e20f425d.svg"/>'; el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/a1b00e20f425d.svg"/>';
} else if (item == 'link') { } else if (item == 'link') {
el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/8411ed322ced6.svg"/>'; el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/8411ed322ced6.svg"/>';
} }
el += '</a>'; el += '</a>';
} }

View File

@ -90,7 +90,7 @@ function div_default() {
} }
} }
if (post.pin) { if (post.pin) {
el += '<span class="pin"><img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/badge/3279dd441df8b.svg"/></span>'; el += '<span class="pin"><img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/badge/3279dd441df8b.svg"/></span>';
} }
el += '</div>'; el += '</div>';
el += '</article>'; el += '</article>';

View File

@ -104,7 +104,7 @@
// required plugins (only load if needs) // required plugins (only load if needs)
stellar.plugins = { stellar.plugins = {
jQuery: '<%- url_for(theme.plugins.jquery || "https://fastly.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js") %>' jQuery: '<%- url_for(theme.plugins.jquery || "https://gcore.jsdelivr.net/npm/jquery@3.6.2/dist/jquery.min.js") %>'
}; };
if ('<%- theme.search.service %>') { if ('<%- theme.search.service %>') {

View File

@ -21,7 +21,7 @@ function prepare() {
sub=${VERSION#*.} sub=${VERSION#*.}
sub=${sub%%.*} sub=${sub%%.*}
jsdelivr=$main'.'$sub jsdelivr=$main'.'$sub
sed -i "" "s/\(fastly.jsdelivr.net\/npm\/hexo-theme-stellar@[^/]\{1,\}\)/fastly.jsdelivr.net\/npm\/hexo-theme-stellar@${jsdelivr}/g" '_config.yml' sed -i "" "s/\(gcore.jsdelivr.net\/npm\/hexo-theme-stellar@[^/]\{1,\}\)/gcore.jsdelivr.net\/npm\/hexo-theme-stellar@${jsdelivr}/g" '_config.yml'
} }
# 提交 # 提交

View File

@ -27,7 +27,7 @@ module.exports = ctx => function(args) {
} }
} }
if (config[args.source] && args.name) { if (config[args.source] && args.name) {
let url = config[args.source].replace('%s', args.name) let url = config[args.source].replace('${name}', args.name)
el += '<img no-lazy="" class="inline"' el += '<img no-lazy="" class="inline"'
el += ' src="' + url + '"' el += ' src="' + url + '"'
if (args.height) { if (args.height) {

View File

@ -15,7 +15,7 @@ $color-text = convert(hexo-config('style.color.text'))
// @font-face // @font-face
// font-family: 'Dosis' // font-family: 'Dosis'
// src: url('https://fastly.jsdelivr.net/gh/volantis-x/cdn-fonts@20.5.30/Dosis/Dosis-Medium.ttf') // src: url('https://gcore.jsdelivr.net/gh/volantis-x/cdn-fonts@20.5.30/Dosis/Dosis-Medium.ttf')
// font-weight: normal // font-weight: normal
// font-style: normal // font-style: normal

View File

@ -23,10 +23,10 @@
background-clip: content-box background-clip: content-box
&.next &.next
border-left: 1px dashed var(--block-border) border-left: 1px dashed var(--block-border)
background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/064b95430caf4.svg') background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/arrow/064b95430caf4.svg')
&.prev &.prev
border-right: 1px dashed var(--block-border) border-right: 1px dashed var(--block-border)
background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/f049bbd4e88ec.svg') background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/arrow/f049bbd4e88ec.svg')
.current .current
font-family: $ff-code font-family: $ff-code
color: var(--text-p3) color: var(--text-p3)

View File

@ -27,7 +27,7 @@
margin-top: 19px margin-top: 19px
margin-bottom: 20px margin-bottom: 20px
.frame .frame
background-image: url(https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/frame/iphone11.svg); background-image: url(https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/frame/iphone11.svg);
width: 329px width: 329px
height: 658px height: 658px
&[focus='top'] &[focus='top']

View File

@ -86,7 +86,7 @@ $(function () {
var cfg = new Object(); var cfg = new Object();
cfg.el = el; cfg.el = el;
cfg.api = api; cfg.api = api;
cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg'; cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
FCircle.layoutDiv(cfg); FCircle.layoutDiv(cfg);
} }
}); });

View File

@ -78,7 +78,7 @@ $(function () {
cfg.el = el; cfg.el = el;
cfg.api = api; cfg.api = api;
cfg.class = el.getAttribute('class'); cfg.class = el.getAttribute('class');
cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg'; cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
friendsjs.layout(cfg); friendsjs.layout(cfg);
} }
}); });

View File

@ -81,8 +81,8 @@ $(function () {
cfg.class = el.getAttribute('class'); cfg.class = el.getAttribute('class');
cfg.el = el; cfg.el = el;
cfg.api = api; cfg.api = api;
cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg'; cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/link/8f277b4ee0ecd.svg';
cfg.screenshot = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg'; cfg.screenshot = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/cover/76b86c0226ffd.svg';
sitesjs.layout(cfg); sitesjs.layout(cfg);
} }
}); });

View File

@ -110,7 +110,7 @@ $(function () {
var cfg = new Object(); var cfg = new Object();
cfg.el = el; cfg.el = el;
cfg.api = api; cfg.api = api;
cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg'; cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
weibojs.layoutDiv(cfg); weibojs.layoutDiv(cfg);
} }
}); });