hexo-theme-shokax 0.0.4-alpha3 → 0.0.4-alpha4

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.
@@ -2,6 +2,7 @@ div(class="status")
2
2
  div(class="copyright")
3
3
  - var copyright_year = date(null, 'YYYY')
4
4
  if theme.footer.since && theme.footer.since != copyright_year
5
+ != `© ${theme.footer.since} -`
5
6
  span(itemprop="copyrightYear")
6
7
  != copyright_year
7
8
  span(class="with-love")
@@ -35,6 +36,7 @@ div(class="status")
35
36
  a(target="_blank" href=`https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${RC}`)
36
37
  img(src=theme.statics + theme.assets + '/' + theme.footer.icp.icon style="max-width: 2em;display:inline;")
37
38
  != beianN
39
+ != shokax_inject('status')
38
40
 
39
41
  != shokax_inject('footer')
40
42
 
@@ -2,7 +2,7 @@
2
2
  - var yandexValid = theme?.seo?.yandex,baiduValid = theme?.seo?.baidu
3
3
  - var siteTitle = config.title,noBaiduT = theme?.seo?.disable_baidu_transformation
4
4
  - var feedLink = full_url_for("/feed.json")
5
- - var twikooLink = theme?.twikoo?.link;var jsInjects = theme?.inject?.head?.js,cssInjects = theme?.inject?.head?.css
5
+ - var tk= theme?.twikoo?.enable;var jsInjects = theme?.inject?.head?.js,cssInjects = theme?.inject?.head?.css
6
6
  - var wl = theme.waline.enable,gt=theme?.gitalk?.enable
7
7
  meta(charset="UTF-8")
8
8
  meta(name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2")
@@ -40,9 +40,9 @@ if debugVue
40
40
  else
41
41
  script(src="https://cdn.staticfile.org/vue/3.2.45/vue.global.prod.js")
42
42
  include pwa.pug
43
- if twikooLink
43
+ if tk
44
44
  != _css("twikoo.css")
45
- script(src=twikooLink)
45
+ script(src=theme.twikoo.link)
46
46
  else if wl
47
47
  link(rel="stylesheet" href="https://unpkg.com/@waline/client@v2/dist/waline.css")
48
48
  else if gt
@@ -135,7 +135,10 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
135
135
  != _js('app.js')
136
136
  != partial('_partials/third-party/baidu-analytics.pug', {}, {cache: true})
137
137
  != partial('_partials/third-party/clarity.pug', {}, {cache: true})
138
- != _new_comments('twikoo')
138
+ if theme.twikoo.enable
139
+ != _new_comments('twikoo')
140
+ else if theme.waline.enable
141
+ != _new_comments('waline')
139
142
 
140
143
  != shokax_inject('bodyEnd')
141
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.0.4-alpha3",
3
+ "version": "0.0.4-alpha4",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/zkz098/hexo-theme-shokaX",
@@ -13,19 +13,19 @@
13
13
  "@types/animejs": "^3.1.6",
14
14
  "@types/fancybox": "^3.5.3",
15
15
  "@types/hexo": "^3.8.8",
16
- "@types/jquery": "^3.5.14",
16
+ "@types/jquery": "^3.5.16",
17
17
  "@types/js-yaml": "^4.0.5",
18
18
  "@types/lozad": "^1.16.1",
19
19
  "@types/node": "^18.11.18",
20
20
  "@types/shelljs": "^0.8.11",
21
- "@typescript-eslint/eslint-plugin": "^5.47.1",
22
- "@typescript-eslint/parser": "^5.47.1",
23
- "eslint": "^8.30.0",
21
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
22
+ "@typescript-eslint/parser": "^5.49.0",
23
+ "eslint": "^8.32.0",
24
24
  "eslint-config-standard": "^17.0.0",
25
- "eslint-plugin-import": "^2.26.0",
26
- "eslint-plugin-n": "^15.6.0",
25
+ "eslint-plugin-import": "^2.27.5",
26
+ "eslint-plugin-n": "^15.6.1",
27
27
  "eslint-plugin-promise": "^6.1.1",
28
- "eslint-plugin-vue": "^9.8.0",
28
+ "eslint-plugin-vue": "^9.9.0",
29
29
  "typescript": "^4.9.4",
30
30
  "vue": "^3.2.45"
31
31
  },
@@ -9,7 +9,8 @@ module.exports = {
9
9
  'postBodyEnd',
10
10
  'footer',
11
11
  'bodyEnd',
12
- 'comment'
12
+ 'comment',
13
+ 'status'
13
14
  ],
14
15
  styles: [
15
16
  'variable',
@@ -129,15 +129,15 @@ dd {
129
129
  input, textarea {
130
130
  color: var(--text-color);
131
131
  }
132
- //@font-face {
133
- // font-family: 'ic';
134
- // src: url('//at.alicdn.com/t/font_' + $iconfont + '.eot');
135
- // src: url('//at.alicdn.com/t/font_' + $iconfont + '.eot?#iefix') format('embedded-opentype'),
136
- // url('//at.alicdn.com/t/font_' + $iconfont + '.woff2') format('woff2'),
137
- // url('//at.alicdn.com/t/font_' + $iconfont + '.woff') format('woff'),
138
- // url('//at.alicdn.com/t/font_' + $iconfont + '.ttf') format('truetype'),
139
- // url('//at.alicdn.com/t/font_' + $iconfont + '.svg#ic') format('svg');
140
- //}
132
+ @font-face {
133
+ font-family: 'ic';
134
+ src: url('//at.alicdn.com/t/font_' + $iconfont + '.eot');
135
+ src: url('//at.alicdn.com/t/font_' + $iconfont + '.eot?#iefix') format('embedded-opentype'),
136
+ url('//at.alicdn.com/t/font_' + $iconfont + '.woff2') format('woff2'),
137
+ url('//at.alicdn.com/t/font_' + $iconfont + '.woff') format('woff'),
138
+ url('//at.alicdn.com/t/font_' + $iconfont + '.ttf') format('truetype'),
139
+ url('//at.alicdn.com/t/font_' + $iconfont + '.svg#ic') format('svg');
140
+ }
141
141
 
142
142
  @font-face {
143
143
  font-family: 'jetbrains-mono';
@@ -1,161 +1,161 @@
1
1
  .i-volume-off:before {
2
- content: "\e61e";
2
+ content: "\f026";
3
3
  }
4
4
 
5
5
  .i-volume-on:before {
6
- content: "\e62c";
6
+ content: "\f6a9";
7
7
  }
8
8
 
9
9
  .i-circle-play:before {
10
- content: "\e647";
10
+ content: "\f144";
11
11
  }
12
12
 
13
13
  .i-forward:before {
14
- content: "\e648";
14
+ content: "\f050";
15
15
  }
16
16
 
17
17
  .i-backward:before {
18
- content: "\e649";
18
+ content: "\f04a";
19
19
  }
20
20
 
21
21
  .i-circle-pause:before {
22
- content: "\e64a";
22
+ content: "\f28b";
23
23
  }
24
24
 
25
25
  .i-loop:before {
26
- content: "\e64b";
26
+ content: "\f144";
27
27
  }
28
28
 
29
29
  .i-order:before {
30
- content: "\e64c";
30
+ content: "\f0dc";
31
31
  }
32
32
 
33
33
  .i-random:before {
34
- content: "\e64d";
34
+ content: "\f074";
35
35
  }
36
36
 
37
37
  .i-douban:before {
38
- content: "\e75f";
38
+ content: "\f05e";
39
39
  }
40
40
 
41
41
  .i-linux:before {
42
- content: "\f1e8";
42
+ content: "\f17c";
43
43
  }
44
44
 
45
45
  .i-opera:before {
46
- content: "\f205";
46
+ content: "\f26a";
47
47
  }
48
48
 
49
49
  .i-qq:before {
50
- content: "\f216";
50
+ content: "\f1d6";
51
51
  }
52
52
 
53
53
  .i-safari:before {
54
- content: "\f229";
54
+ content: "\f267";
55
55
  }
56
56
 
57
57
  .i-snapchat-ghost:before {
58
- content: "\f234";
58
+ content: "\f2ab";
59
59
  }
60
60
 
61
61
  .i-weixin:before {
62
- content: "\f262";
62
+ content: "\f1d7";
63
63
  }
64
64
 
65
65
  .i-windows:before {
66
- content: "\f266";
66
+ content: "\f17a";
67
67
  }
68
68
 
69
69
  .i-stars:before {
70
- content: "\e8c4";
70
+ content: "\f762";
71
71
  }
72
72
 
73
73
  .i-apple:before {
74
- content: "\e600";
74
+ content: "\f179";
75
75
  }
76
76
 
77
77
  .i-blackberry:before {
78
- content: "\e601";
78
+ content: "\f37b";
79
79
  }
80
80
 
81
81
  .i-centos:before {
82
- content: "\e602";
82
+ content: "\f789";
83
83
  }
84
84
 
85
85
  .i-fedora:before {
86
- content: "\e603";
86
+ content: "\f798";
87
87
  }
88
88
 
89
89
  .i-redhat:before {
90
- content: "\e604";
90
+ content: "\f7bc";
91
91
  }
92
92
 
93
93
  .i-ubuntu:before {
94
- content: "\e605";
94
+ content: "\f7df";
95
95
  }
96
96
 
97
97
  .i-suse:before {
98
- content: "\e606";
98
+ content: "\f7d6";
99
99
  }
100
100
 
101
101
  .i-mobile-alt:before {
102
- content: "\f052";
102
+ content: "\f3cd";
103
103
  }
104
104
 
105
105
  .i-paw:before {
106
- content: "\f06b";
106
+ content: "\f1b0";
107
107
  }
108
108
 
109
109
  .i-android:before {
110
- content: "\f161";
110
+ content: "\f17b";
111
111
  }
112
112
 
113
113
  .i-chrome:before {
114
- content: "\f178";
114
+ content: "\f268";
115
115
  }
116
116
 
117
117
  .i-edge:before {
118
- content: "\f195";
118
+ content: "\f282";
119
119
  }
120
120
 
121
121
  .i-firefox:before {
122
- content: "\f1a1";
122
+ content: "\f269";
123
123
  }
124
124
 
125
125
  .i-internet-explorer:before {
126
- content: "\f1d4";
126
+ content: "\f26b";
127
127
  }
128
128
 
129
129
  .i-markdown:before {
130
- content: "\f1eb";
130
+ content: "\f60f";
131
131
  }
132
132
 
133
133
  .i-smile:before {
134
- content: "\f2a5";
134
+ content: "\f118";
135
135
  }
136
136
 
137
137
  .i-preview:before {
138
- content: "\e901";
138
+ content: "\f4d5";
139
139
  }
140
140
 
141
141
  .i-share:before {
142
- content: "\e61b";
142
+ content: "\f064";
143
143
  }
144
144
 
145
145
  .i-link-circle:before {
146
- content: "\e67b";
146
+ content: "\f0c1";
147
147
  }
148
148
 
149
149
  .i-person:before {
150
- content: "\e69d";
150
+ content: "\f2bd";
151
151
  }
152
152
 
153
153
  .i-sun:before {
154
- content: "\e6d1";
154
+ content: "\f766";
155
155
  }
156
156
 
157
157
  .i-moon:before {
158
- content: "\e71e";
158
+ content: "\f755";
159
159
  }
160
160
 
161
161
  .i-compress:before {
@@ -207,7 +207,7 @@
207
207
  }
208
208
 
209
209
  .i-music:before {
210
- content: "\f059";
210
+ content: "\f001";
211
211
  }
212
212
 
213
213
  .i-pause:before {
@@ -219,7 +219,7 @@
219
219
  }
220
220
 
221
221
  .i-play:before {
222
- content: "\f07f";
222
+ content: "\f04b";
223
223
  }
224
224
 
225
225
  .i-calendar-check:before {
@@ -255,7 +255,7 @@
255
255
  }
256
256
 
257
257
  .i-star:before {
258
- content: "\f0d4";
258
+ content: "\f005";
259
259
  }
260
260
 
261
261
  .i-link-alt:before {
@@ -283,7 +283,7 @@
283
283
  }
284
284
 
285
285
  .i-home:before {
286
- content: "\e8ed";
286
+ content: "\f015";
287
287
  }
288
288
 
289
289
  .i-magic:before {
@@ -291,7 +291,7 @@
291
291
  }
292
292
 
293
293
  .i-sakura:before {
294
- content: "\e695";
294
+ content: "\f7ff";
295
295
  }
296
296
 
297
297
  .i-tag:before {
@@ -299,19 +299,19 @@
299
299
  }
300
300
 
301
301
  .i-angle-left:before {
302
- content: "\ef19";
302
+ content: "\f104";
303
303
  }
304
304
 
305
305
  .i-arrow-circle-right:before {
306
- content: "\ef23";
306
+ content: "\f0a9";
307
307
  }
308
308
 
309
309
  .i-check-circle:before {
310
- content: "\ef66";
310
+ content: "\f058";
311
311
  }
312
312
 
313
313
  .i-exclamation-circle:before {
314
- content: "\efb5";
314
+ content: "\f06a";
315
315
  }
316
316
 
317
317
  .i-info-circle:before {
@@ -319,11 +319,11 @@
319
319
  }
320
320
 
321
321
  .i-minus-circle:before {
322
- content: "\f050";
322
+ content: "\f056";
323
323
  }
324
324
 
325
325
  .i-plus-circle:before {
326
- content: "\f082";
326
+ content: "\f055";
327
327
  }
328
328
 
329
329
  .i-file-word:before {
@@ -331,15 +331,15 @@
331
331
  }
332
332
 
333
333
  .i-check:before {
334
- content: "\ef65";
334
+ content: "\f00c";
335
335
  }
336
336
 
337
337
  .i-times:before {
338
- content: "\f109";
338
+ content: "\e29e";
339
339
  }
340
340
 
341
341
  .i-list-ol:before {
342
- content: "\f039";
342
+ content: "\f0cb";
343
343
  }
344
344
 
345
345
  .i-archive:before {
@@ -347,15 +347,15 @@
347
347
  }
348
348
 
349
349
  .i-angle-right:before {
350
- content: "\ef1f";
350
+ content: "\f105";
351
351
  }
352
352
 
353
353
  .i-arrow-down:before {
354
- content: "\ef25";
354
+ content: "\f063";
355
355
  }
356
356
 
357
357
  .i-arrow-up:before {
358
- content: "\ef2a";
358
+ content: "\f062";
359
359
  }
360
360
 
361
361
  .i-chart-area:before {
@@ -387,7 +387,7 @@
387
387
  }
388
388
 
389
389
  .i-heartbeat:before {
390
- content: "\f017";
390
+ content: "\f21e";
391
391
  }
392
392
 
393
393
  .i-search:before {
@@ -395,7 +395,7 @@
395
395
  }
396
396
 
397
397
  .i-sitemap:before {
398
- content: "\f0bd";
398
+ content: "\f0e8";
399
399
  }
400
400
 
401
401
  .i-tags:before {
@@ -411,7 +411,7 @@
411
411
  }
412
412
 
413
413
  .i-times-circle:before {
414
- content: "\f10a";
414
+ content: "\f057";
415
415
  }
416
416
 
417
417
  .i-creative-commons:before {
@@ -13,10 +13,10 @@ if $colors = hexo-config('style.colors')
13
13
  else
14
14
  @import "_colors";
15
15
 
16
- //if $_iconfont = hexo-config('style.iconfont')
17
- // @import $_iconfont;
18
- //else
19
- // @import "_iconfont";
16
+ if $_iconfont = hexo-config('style.iconfont')
17
+ @import $_iconfont;
18
+ else
19
+ @import "_iconfont";
20
20
 
21
21
  // Scaffolding
22
22
  @import "_common/scaffolding";
@@ -163,12 +163,12 @@ const getScript = function (url, callback, condition) {
163
163
  };
164
164
  const assetUrl = function (asset, type) {
165
165
  const str = CONFIG[asset][type];
166
- if (str.indexOf('npm') > -1) {
167
- return `https://unpkg.com/${str}`;
168
- }
169
166
  if (str.indexOf('gh') > -1 || str.indexOf('combine') > -1) {
170
167
  return `https://cdn.jsdelivr.net/${str}`;
171
168
  }
169
+ if (str.indexOf('npm') > -1) {
170
+ return `https://unpkg.com/${str}`;
171
+ }
172
172
  if (str.indexOf('http') > -1) {
173
173
  return str;
174
174
  }