hexo-theme-stellar 1.18.3 → 1.18.4

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/_config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ######## Stellar info ########
2
2
  stellar:
3
- version: '1.18.3'
3
+ version: '1.18.4'
4
4
  homepage: 'https://xaoxuu.com/wiki/stellar/'
5
5
  repo: 'https://github.com/xaoxuu/hexo-theme-stellar'
6
6
  cdn_css: # Use cdn links instead of /css/main.css
@@ -125,14 +125,14 @@ comments:
125
125
  # Twikoo
126
126
  # https://twikoo.js.org/
127
127
  twikoo:
128
- js: https://fastly.jsdelivr.net/npm/twikoo@1.4.0/dist/twikoo.all.min.js # 建议锁定版本
128
+ js: https://gcore.jsdelivr.net/npm/twikoo@1.6.8/dist/twikoo.all.min.js # 建议锁定版本
129
129
  envId: https://xxx # vercel函数
130
130
 
131
131
  # Waline
132
132
  # https://waline.js.org/
133
133
  waline:
134
- js: https://unpkg.com/@waline/client@v2/dist/waline.js
135
- css: https://unpkg.com/@waline/client@v2/dist/waline.css
134
+ js: https://unpkg.com/@waline/client@2.14.1/dist/waline.js
135
+ css: https://unpkg.com/@waline/client@2.14.1/dist/waline.css
136
136
  # Waline server address url, you should set this to your own link
137
137
  serverURL:
138
138
  # If false, comment count will only be displayed in post page, not in home page
@@ -163,16 +163,16 @@ comments:
163
163
  footer:
164
164
  social:
165
165
  # github:
166
- # icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/08a41b181ce68.svg"/>'
166
+ # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/08a41b181ce68.svg"/>'
167
167
  # url: /
168
168
  # music:
169
- # icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3845874.svg"/>'
169
+ # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/3845874.svg"/>'
170
170
  # url: /
171
171
  # unsplash:
172
- # icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3616429.svg"/>'
172
+ # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/3616429.svg"/>'
173
173
  # url: /
174
174
  # comments:
175
- # icon: '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/942ebbf1a4b91.svg"/>'
175
+ # icon: '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/942ebbf1a4b91.svg"/>'
176
176
  # url: /about/#comments
177
177
  sitemap:
178
178
  # '博客':
@@ -212,12 +212,12 @@ tag_plugins:
212
212
  prefix: https://bu.dusays.com/2022/10/24/63567d3e07da3.png
213
213
  # {% emoji %}
214
214
  emoji:
215
- default: https://fastly.jsdelivr.net/gh/cdn-x/emoji/qq/%s.gif
216
- twemoji: https://fastly.jsdelivr.net/gh/twitter/twemoji/assets/svg/%s.svg
217
- qq: https://fastly.jsdelivr.net/gh/cdn-x/emoji/qq/%s.gif
218
- aru: https://fastly.jsdelivr.net/gh/cdn-x/emoji/aru-l/%s.gif
219
- tieba: https://fastly.jsdelivr.net/gh/cdn-x/emoji/tieba/%s.png
220
- blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/%s.png
215
+ default: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
216
+ twemoji: https://gcore.jsdelivr.net/gh/twitter/twemoji/assets/svg/${name}.svg
217
+ qq: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
218
+ aru: https://gcore.jsdelivr.net/gh/cdn-x/emoji/aru-l/${name}.gif
219
+ tieba: https://gcore.jsdelivr.net/gh/cdn-x/emoji/tieba/${name}.png
220
+ blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/${name}.png
221
221
  # {% image %}
222
222
  image:
223
223
  fancybox: # true, false
@@ -236,7 +236,7 @@ tag_plugins:
236
236
  plugins:
237
237
  ## required plugins ##
238
238
  # jquery
239
- jquery: https://fastly.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js
239
+ jquery: https://gcore.jsdelivr.net/npm/jquery@3.6.2/dist/jquery.min.js
240
240
 
241
241
  # stellar api
242
242
  stellar:
@@ -255,20 +255,20 @@ plugins:
255
255
  preload:
256
256
  enable: true
257
257
  service: flying_pages # instant_page, flying_pages
258
- instant_page: https://fastly.jsdelivr.net/gh/volantis-x/cdn-volantis@4.1.2/js/instant_page.js
259
- flying_pages: https://fastly.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js
258
+ instant_page: https://gcore.jsdelivr.net/gh/volantis-x/cdn-volantis@4.1.2/js/instant_page.js
259
+ flying_pages: https://gcore.jsdelivr.net/gh/gijo-varghese/flying-pages@2.1.2/flying-pages.min.js
260
260
 
261
261
  # image lazyload
262
262
  # https://www.npmjs.com/package/vanilla-lazyload
263
263
  lazyload:
264
264
  enable: true # [hexo clean && hexo s] is required after changing this value.
265
- js: https://fastly.jsdelivr.net/npm/vanilla-lazyload@17.3.1/dist/lazyload.min.js
265
+ js: https://gcore.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js
266
266
  transition: blur # blur, fade
267
267
 
268
268
  # https://scrollrevealjs.org/api/reveal.html
269
269
  scrollreveal:
270
270
  enable: #true
271
- js: https://fastly.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js
271
+ js: https://gcore.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js
272
272
  distance: 8px
273
273
  duration: 500 # ms
274
274
  interval: 100 # ms
@@ -278,8 +278,8 @@ plugins:
278
278
  # available for {% image xxx %}
279
279
  fancybox:
280
280
  enable: true
281
- js: https://fastly.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js
282
- css: https://fastly.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css
281
+ js: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js
282
+ css: https://gcore.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css
283
283
  # 可以处理评论区的图片(不支持 iframe 类评论系统)例如:
284
284
  # 使用twikoo评论可以写: .tk-content img:not([class*="emo"])
285
285
  # 使用waline评论可以写: #waline_container .vcontent img
@@ -288,16 +288,16 @@ plugins:
288
288
  # swiper
289
289
  swiper:
290
290
  enable: true
291
- css: https://unpkg.com/swiper@8/swiper-bundle.min.css
292
- js: https://unpkg.com/swiper@8/swiper-bundle.min.js
291
+ css: https://unpkg.com/swiper@8.4.5/swiper-bundle.min.css
292
+ js: https://unpkg.com/swiper@8.4.5/swiper-bundle.min.js
293
293
 
294
294
 
295
295
  # 赫蹏 (Heti) - 专为中文网页内容设计的排版样式增强
296
296
  # https://github.com/sivan/heti
297
297
  heti:
298
298
  enable: false # 此插件会和代码块冲突,仅适用于纯中文博主。
299
- css: https://unpkg.com/heti/umd/heti.min.css
300
- js: https://unpkg.com/heti/umd/heti-addon.min.js
299
+ css: https://unpkg.com/heti@0.9.2/umd/heti.min.css
300
+ js: https://unpkg.com/heti@0.9.2/umd/heti-addon.min.js
301
301
 
302
302
  # MathJax
303
303
  # 需在Markdown文件开头加入mathjax: true
@@ -312,9 +312,9 @@ plugins:
312
312
  # 使用 hexo-renderer-markdown-it-plus 作为公式渲染器:npm uninstall hexo-renderer-marked --save npm install hexo-renderer-markdown-it-plus --save
313
313
  katex:
314
314
  enable: false
315
- min_css: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
316
- 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>
317
- 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>
315
+ min_css: <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
316
+ 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>
317
+ 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>
318
318
 
319
319
  style:
320
320
  darkmode: auto # auto / always / false
@@ -349,10 +349,10 @@ style:
349
349
  hover: 'hsl(14 100% 57%)' # 按钮高亮颜色
350
350
  animated_avatar:
351
351
  animate: auto # auto, always
352
- background: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.2/avatar/round/rainbow64@3x.webp
352
+ background: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/rainbow64@3x.webp
353
353
  codeblock:
354
354
  scrollbar: 4px
355
- highlightjs_theme: https://fastly.jsdelivr.net/gh/highlightjs/cdn-release@11.5.0/build/styles/atom-one-dark.min.css
355
+ highlightjs_theme: https://gcore.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/atom-one-dark.min.css
356
356
  loading:
357
357
  loading: 正在加载
358
358
  error: 加载失败,请稍后重试。
@@ -361,10 +361,10 @@ style:
361
361
  search: 'linear-gradient(to right, #04F3FF, #08FFC6, #DDF730, #FFBD19, #FF1FE0, #C418FF, #04F3FF)'
362
362
 
363
363
  default:
364
- avatar: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
365
- link: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg
366
- cover: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg
367
- image: https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/image/2659360.svg
364
+ avatar: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg
365
+ link: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/link/8f277b4ee0ecd.svg
366
+ cover: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/cover/76b86c0226ffd.svg
367
+ image: https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/image/2659360.svg
368
368
 
369
369
  api_host:
370
370
  ghapi: https://api.github.com
package/layout/404.ejs CHANGED
@@ -6,7 +6,7 @@ page.header = 'auto';
6
6
  page.robots = 'none';
7
7
  %>
8
8
  <article class='md-text error-page'>
9
- <h1><img id='error' src='https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/404/1c830bfcd517d.svg' alt='404'></h1>
9
+ <h1><img id='error' src='https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/404/1c830bfcd517d.svg' alt='404'></h1>
10
10
  <p class='what'>
11
11
  <strong>
12
12
  <%- __('page.error.what') %>
@@ -64,8 +64,8 @@ function og_args() {
64
64
  <%- generate_robots() %>
65
65
 
66
66
  <meta http-equiv='x-dns-prefetch-control' content='on' />
67
- <link rel='dns-prefetch' href='https://fastly.jsdelivr.net'>
68
- <link rel="preconnect" href="https://fastly.jsdelivr.net" crossorigin>
67
+ <link rel='dns-prefetch' href='https://gcore.jsdelivr.net'>
68
+ <link rel="preconnect" href="https://gcore.jsdelivr.net" crossorigin>
69
69
  <link rel='dns-prefetch' href='//unpkg.com'>
70
70
 
71
71
  <meta name="renderer" content="webkit">
@@ -85,13 +85,13 @@ function layoutDiv() {
85
85
  }
86
86
  el += '>';
87
87
  if (item == 'wechat') {
88
- el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/b32ef3da1162a.svg"/>';
88
+ el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/b32ef3da1162a.svg"/>';
89
89
  } else if (item == 'weibo') {
90
- el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/80c07e4dbb303.svg"/>';
90
+ el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/80c07e4dbb303.svg"/>';
91
91
  } else if (item == 'email') {
92
- el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/a1b00e20f425d.svg"/>';
92
+ el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/a1b00e20f425d.svg"/>';
93
93
  } else if (item == 'link') {
94
- el += '<img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/social/8411ed322ced6.svg"/>';
94
+ el += '<img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/social/8411ed322ced6.svg"/>';
95
95
  }
96
96
  el += '</a>';
97
97
  }
@@ -90,7 +90,7 @@ function div_default() {
90
90
  }
91
91
  }
92
92
  if (post.pin) {
93
- el += '<span class="pin"><img src="https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/badge/3279dd441df8b.svg"/></span>';
93
+ el += '<span class="pin"><img src="https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/badge/3279dd441df8b.svg"/></span>';
94
94
  }
95
95
  el += '</div>';
96
96
  el += '</article>';
@@ -104,7 +104,7 @@
104
104
 
105
105
  // required plugins (only load if needs)
106
106
  stellar.plugins = {
107
- jQuery: '<%- url_for(theme.plugins.jquery || "https://fastly.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js") %>'
107
+ jQuery: '<%- url_for(theme.plugins.jquery || "https://gcore.jsdelivr.net/npm/jquery@3.6.2/dist/jquery.min.js") %>'
108
108
  };
109
109
 
110
110
  if ('<%- theme.search.service %>') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-stellar",
3
- "version": "1.18.3",
3
+ "version": "1.18.4",
4
4
  "description": "Elegant and powerful theme for Hexo.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -27,7 +27,7 @@ module.exports = ctx => function(args) {
27
27
  }
28
28
  }
29
29
  if (config[args.source] && args.name) {
30
- let url = config[args.source].replace('%s', args.name)
30
+ let url = config[args.source].replace('${name}', args.name)
31
31
  el += '<img no-lazy="" class="inline"'
32
32
  el += ' src="' + url + '"'
33
33
  if (args.height) {
@@ -15,7 +15,7 @@ $color-text = convert(hexo-config('style.color.text'))
15
15
 
16
16
  // @font-face
17
17
  // font-family: 'Dosis'
18
- // src: url('https://fastly.jsdelivr.net/gh/volantis-x/cdn-fonts@20.5.30/Dosis/Dosis-Medium.ttf')
18
+ // src: url('https://gcore.jsdelivr.net/gh/volantis-x/cdn-fonts@20.5.30/Dosis/Dosis-Medium.ttf')
19
19
  // font-weight: normal
20
20
  // font-style: normal
21
21
 
@@ -23,10 +23,10 @@
23
23
  background-clip: content-box
24
24
  &.next
25
25
  border-left: 1px dashed var(--block-border)
26
- background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/064b95430caf4.svg')
26
+ background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/arrow/064b95430caf4.svg')
27
27
  &.prev
28
28
  border-right: 1px dashed var(--block-border)
29
- background-image: url('https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/arrow/f049bbd4e88ec.svg')
29
+ background-image: url('https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/arrow/f049bbd4e88ec.svg')
30
30
  .current
31
31
  font-family: $ff-code
32
32
  color: var(--text-p3)
@@ -27,7 +27,7 @@
27
27
  margin-top: 19px
28
28
  margin-bottom: 20px
29
29
  .frame
30
- background-image: url(https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/frame/iphone11.svg);
30
+ background-image: url(https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/frame/iphone11.svg);
31
31
  width: 329px
32
32
  height: 658px
33
33
  &[focus='top']
@@ -86,7 +86,7 @@ $(function () {
86
86
  var cfg = new Object();
87
87
  cfg.el = el;
88
88
  cfg.api = api;
89
- cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg';
89
+ cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
90
90
  FCircle.layoutDiv(cfg);
91
91
  }
92
92
  });
@@ -78,7 +78,7 @@ $(function () {
78
78
  cfg.el = el;
79
79
  cfg.api = api;
80
80
  cfg.class = el.getAttribute('class');
81
- cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg';
81
+ cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
82
82
  friendsjs.layout(cfg);
83
83
  }
84
84
  });
@@ -81,8 +81,8 @@ $(function () {
81
81
  cfg.class = el.getAttribute('class');
82
82
  cfg.el = el;
83
83
  cfg.api = api;
84
- cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/link/8f277b4ee0ecd.svg';
85
- cfg.screenshot = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg';
84
+ cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/link/8f277b4ee0ecd.svg';
85
+ cfg.screenshot = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/cover/76b86c0226ffd.svg';
86
86
  sitesjs.layout(cfg);
87
87
  }
88
88
  });
@@ -110,7 +110,7 @@ $(function () {
110
110
  var cfg = new Object();
111
111
  cfg.el = el;
112
112
  cfg.api = api;
113
- cfg.avatar = 'https://fastly.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg';
113
+ cfg.avatar = 'https://gcore.jsdelivr.net/gh/cdn-x/placeholder@1.0.4/avatar/round/3442075.svg';
114
114
  weibojs.layoutDiv(cfg);
115
115
  }
116
116
  });