hexo-theme-shokax 0.0.4-alpha2 → 0.0.4-alpha4
Sign up to get free protection for your applications and to get access to all the features.
- package/layout/_partials/footer.pug +2 -0
- package/layout/_partials/head/head.pug +3 -3
- package/layout/_partials/layout.pug +4 -1
- package/layout/_partials/sidebar/overview.pug +1 -1
- package/package.json +8 -8
- package/scripts/plugin/lib/injects-point.js +2 -1
- package/source/css/_common/components/highlight/highlight.styl +2 -2
- package/source/css/_common/components/pages/home.styl +2 -2
- package/source/css/_common/components/post/breadcrumb.styl +1 -1
- package/source/css/_common/components/post/post.styl +0 -5
- package/source/css/_common/components/tags/links.styl +1 -1
- package/source/css/_common/components/third-party/valine.styl +1 -6
- package/source/css/_common/outline/header/menu.styl +1 -1
- package/source/css/_common/outline/sidebar/menu.styl +1 -1
- package/source/css/_common/scaffolding/base.styl +0 -21
- package/source/css/_common/scaffolding/buttons.styl +1 -1
- package/source/css/_common/scaffolding/iconfont.styl +60 -60
- package/source/js/_app/library.js +3 -3
@@ -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
|
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
|
43
|
+
if tk
|
44
44
|
!= _css("twikoo.css")
|
45
|
-
script(src=
|
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
|
-
|
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
|
|
@@ -32,7 +32,7 @@ nav(class="state")
|
|
32
32
|
div(class="social")
|
33
33
|
each link, name in theme.social
|
34
34
|
- var sidebarURL = link.split('||')[0].trim()
|
35
|
-
- var sidebarIcon = '<i class="fa fa-
|
35
|
+
- var sidebarIcon = '<i class="fa fa-brands fa-' + link.split('||')[1].trim() + '"></i>'
|
36
36
|
!= _url(sidebarURL, sidebarIcon, {title: sidebarURL, class: 'item ' + name})
|
37
37
|
|
38
38
|
!= shokax_inject('sidebar')
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-shokax",
|
3
|
-
"version": "0.0.4-
|
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.
|
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.
|
22
|
-
"@typescript-eslint/parser": "^5.
|
23
|
-
"eslint": "^8.
|
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
|
-
"eslint-plugin-n": "^15.6.
|
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.
|
28
|
+
"eslint-plugin-vue": "^9.9.0",
|
29
29
|
"typescript": "^4.9.4",
|
30
30
|
"vue": "^3.2.45"
|
31
31
|
},
|
@@ -243,7 +243,7 @@ code,
|
|
243
243
|
background: var(--grey-2);
|
244
244
|
}
|
245
245
|
|
246
|
-
.
|
246
|
+
.fa {
|
247
247
|
margin-top: 1rem;
|
248
248
|
@extend .up-down;
|
249
249
|
}
|
@@ -256,7 +256,7 @@ code,
|
|
256
256
|
display: none;
|
257
257
|
}
|
258
258
|
|
259
|
-
.
|
259
|
+
.fa {
|
260
260
|
@extend .down-up;
|
261
261
|
}
|
262
262
|
}
|
@@ -186,16 +186,11 @@
|
|
186
186
|
margin: .5rem;
|
187
187
|
overflow: hidden;
|
188
188
|
vertical-align: middle;
|
189
|
-
|
190
|
-
&.actived .ic {
|
191
|
-
color: var(--primary-color);
|
192
|
-
}
|
193
|
-
|
194
189
|
&.actived .fa {
|
195
190
|
color: var(--primary-color);
|
196
191
|
}
|
197
192
|
|
198
|
-
.
|
193
|
+
.fa {
|
199
194
|
color: var(--grey-6);
|
200
195
|
transition: all .25s ease;
|
201
196
|
|
@@ -146,19 +146,6 @@ input, textarea {
|
|
146
146
|
}
|
147
147
|
|
148
148
|
// TODO
|
149
|
-
.ic {
|
150
|
-
font-family: "ic" !important;
|
151
|
-
-webkit-font-smoothing: antialiased;
|
152
|
-
-moz-osx-font-smoothing: grayscale;
|
153
|
-
text-align: center;
|
154
|
-
width: 1.25em;
|
155
|
-
display: inline-block;
|
156
|
-
font-style: normal;
|
157
|
-
font-variant: normal;
|
158
|
-
text-rendering: auto;
|
159
|
-
line-height: 1;
|
160
|
-
}
|
161
|
-
|
162
149
|
.fa {
|
163
150
|
-webkit-font-smoothing: antialiased;
|
164
151
|
-moz-osx-font-smoothing: grayscale;
|
@@ -172,20 +159,12 @@ input, textarea {
|
|
172
159
|
}
|
173
160
|
|
174
161
|
// TODO
|
175
|
-
.ic em {
|
176
|
-
font-size: 0;
|
177
|
-
}
|
178
162
|
|
179
163
|
.fa em {
|
180
164
|
font-size: 0;
|
181
165
|
}
|
182
166
|
|
183
167
|
// TODO
|
184
|
-
.ic-lg {
|
185
|
-
font-size: 1.33333em;
|
186
|
-
line-height: .75em;
|
187
|
-
vertical-align: -.0667em;
|
188
|
-
}
|
189
168
|
|
190
169
|
.fa-lg {
|
191
170
|
font-size: 1.33333em;
|
@@ -1,161 +1,161 @@
|
|
1
1
|
.i-volume-off:before {
|
2
|
-
content: "\
|
2
|
+
content: "\f026";
|
3
3
|
}
|
4
4
|
|
5
5
|
.i-volume-on:before {
|
6
|
-
content: "\
|
6
|
+
content: "\f6a9";
|
7
7
|
}
|
8
8
|
|
9
9
|
.i-circle-play:before {
|
10
|
-
content: "\
|
10
|
+
content: "\f144";
|
11
11
|
}
|
12
12
|
|
13
13
|
.i-forward:before {
|
14
|
-
content: "\
|
14
|
+
content: "\f050";
|
15
15
|
}
|
16
16
|
|
17
17
|
.i-backward:before {
|
18
|
-
content: "\
|
18
|
+
content: "\f04a";
|
19
19
|
}
|
20
20
|
|
21
21
|
.i-circle-pause:before {
|
22
|
-
content: "\
|
22
|
+
content: "\f28b";
|
23
23
|
}
|
24
24
|
|
25
25
|
.i-loop:before {
|
26
|
-
content: "\
|
26
|
+
content: "\f144";
|
27
27
|
}
|
28
28
|
|
29
29
|
.i-order:before {
|
30
|
-
content: "\
|
30
|
+
content: "\f0dc";
|
31
31
|
}
|
32
32
|
|
33
33
|
.i-random:before {
|
34
|
-
content: "\
|
34
|
+
content: "\f074";
|
35
35
|
}
|
36
36
|
|
37
37
|
.i-douban:before {
|
38
|
-
content: "\
|
38
|
+
content: "\f05e";
|
39
39
|
}
|
40
40
|
|
41
41
|
.i-linux:before {
|
42
|
-
content: "\
|
42
|
+
content: "\f17c";
|
43
43
|
}
|
44
44
|
|
45
45
|
.i-opera:before {
|
46
|
-
content: "\
|
46
|
+
content: "\f26a";
|
47
47
|
}
|
48
48
|
|
49
49
|
.i-qq:before {
|
50
|
-
content: "\
|
50
|
+
content: "\f1d6";
|
51
51
|
}
|
52
52
|
|
53
53
|
.i-safari:before {
|
54
|
-
content: "\
|
54
|
+
content: "\f267";
|
55
55
|
}
|
56
56
|
|
57
57
|
.i-snapchat-ghost:before {
|
58
|
-
content: "\
|
58
|
+
content: "\f2ab";
|
59
59
|
}
|
60
60
|
|
61
61
|
.i-weixin:before {
|
62
|
-
content: "\
|
62
|
+
content: "\f1d7";
|
63
63
|
}
|
64
64
|
|
65
65
|
.i-windows:before {
|
66
|
-
content: "\
|
66
|
+
content: "\f17a";
|
67
67
|
}
|
68
68
|
|
69
69
|
.i-stars:before {
|
70
|
-
content: "\
|
70
|
+
content: "\f762";
|
71
71
|
}
|
72
72
|
|
73
73
|
.i-apple:before {
|
74
|
-
content: "\
|
74
|
+
content: "\f179";
|
75
75
|
}
|
76
76
|
|
77
77
|
.i-blackberry:before {
|
78
|
-
content: "\
|
78
|
+
content: "\f37b";
|
79
79
|
}
|
80
80
|
|
81
81
|
.i-centos:before {
|
82
|
-
content: "\
|
82
|
+
content: "\f789";
|
83
83
|
}
|
84
84
|
|
85
85
|
.i-fedora:before {
|
86
|
-
content: "\
|
86
|
+
content: "\f798";
|
87
87
|
}
|
88
88
|
|
89
89
|
.i-redhat:before {
|
90
|
-
content: "\
|
90
|
+
content: "\f7bc";
|
91
91
|
}
|
92
92
|
|
93
93
|
.i-ubuntu:before {
|
94
|
-
content: "\
|
94
|
+
content: "\f7df";
|
95
95
|
}
|
96
96
|
|
97
97
|
.i-suse:before {
|
98
|
-
content: "\
|
98
|
+
content: "\f7d6";
|
99
99
|
}
|
100
100
|
|
101
101
|
.i-mobile-alt:before {
|
102
|
-
content: "\
|
102
|
+
content: "\f3cd";
|
103
103
|
}
|
104
104
|
|
105
105
|
.i-paw:before {
|
106
|
-
content: "\
|
106
|
+
content: "\f1b0";
|
107
107
|
}
|
108
108
|
|
109
109
|
.i-android:before {
|
110
|
-
content: "\
|
110
|
+
content: "\f17b";
|
111
111
|
}
|
112
112
|
|
113
113
|
.i-chrome:before {
|
114
|
-
content: "\
|
114
|
+
content: "\f268";
|
115
115
|
}
|
116
116
|
|
117
117
|
.i-edge:before {
|
118
|
-
content: "\
|
118
|
+
content: "\f282";
|
119
119
|
}
|
120
120
|
|
121
121
|
.i-firefox:before {
|
122
|
-
content: "\
|
122
|
+
content: "\f269";
|
123
123
|
}
|
124
124
|
|
125
125
|
.i-internet-explorer:before {
|
126
|
-
content: "\
|
126
|
+
content: "\f26b";
|
127
127
|
}
|
128
128
|
|
129
129
|
.i-markdown:before {
|
130
|
-
content: "\
|
130
|
+
content: "\f60f";
|
131
131
|
}
|
132
132
|
|
133
133
|
.i-smile:before {
|
134
|
-
content: "\
|
134
|
+
content: "\f118";
|
135
135
|
}
|
136
136
|
|
137
137
|
.i-preview:before {
|
138
|
-
content: "\
|
138
|
+
content: "\f4d5";
|
139
139
|
}
|
140
140
|
|
141
141
|
.i-share:before {
|
142
|
-
content: "\
|
142
|
+
content: "\f064";
|
143
143
|
}
|
144
144
|
|
145
145
|
.i-link-circle:before {
|
146
|
-
content: "\
|
146
|
+
content: "\f0c1";
|
147
147
|
}
|
148
148
|
|
149
149
|
.i-person:before {
|
150
|
-
content: "\
|
150
|
+
content: "\f2bd";
|
151
151
|
}
|
152
152
|
|
153
153
|
.i-sun:before {
|
154
|
-
content: "\
|
154
|
+
content: "\f766";
|
155
155
|
}
|
156
156
|
|
157
157
|
.i-moon:before {
|
158
|
-
content: "\
|
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: "\
|
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: "\
|
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: "\
|
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: "\
|
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: "\
|
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: "\
|
302
|
+
content: "\f104";
|
303
303
|
}
|
304
304
|
|
305
305
|
.i-arrow-circle-right:before {
|
306
|
-
content: "\
|
306
|
+
content: "\f0a9";
|
307
307
|
}
|
308
308
|
|
309
309
|
.i-check-circle:before {
|
310
|
-
content: "\
|
310
|
+
content: "\f058";
|
311
311
|
}
|
312
312
|
|
313
313
|
.i-exclamation-circle:before {
|
314
|
-
content: "\
|
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: "\
|
322
|
+
content: "\f056";
|
323
323
|
}
|
324
324
|
|
325
325
|
.i-plus-circle:before {
|
326
|
-
content: "\
|
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: "\
|
334
|
+
content: "\f00c";
|
335
335
|
}
|
336
336
|
|
337
337
|
.i-times:before {
|
338
|
-
content: "\
|
338
|
+
content: "\e29e";
|
339
339
|
}
|
340
340
|
|
341
341
|
.i-list-ol:before {
|
342
|
-
content: "\
|
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: "\
|
350
|
+
content: "\f105";
|
351
351
|
}
|
352
352
|
|
353
353
|
.i-arrow-down:before {
|
354
|
-
content: "\
|
354
|
+
content: "\f063";
|
355
355
|
}
|
356
356
|
|
357
357
|
.i-arrow-up:before {
|
358
|
-
content: "\
|
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: "\
|
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: "\
|
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: "\
|
414
|
+
content: "\f057";
|
415
415
|
}
|
416
416
|
|
417
417
|
.i-creative-commons:before {
|
@@ -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
|
}
|