hexo-theme-volantis 5.8.1 → 6.0.1
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/CHANGELOG.md +5 -39
- package/_cdn.yml +449 -0
- package/_config.yml +155 -157
- package/languages/en.yml +9 -10
- package/languages/zh-CN.yml +11 -15
- package/languages/zh-TW.yml +10 -11
- package/layout/_meta/category.ejs +10 -5
- package/layout/_meta/counter.ejs +14 -17
- package/layout/_meta/tags.ejs +3 -0
- package/layout/_meta/walinecount.ejs +1 -1
- package/layout/_partial/article.ejs +14 -9
- package/layout/_partial/cover.ejs +4 -4
- package/layout/_partial/footer.ejs +1 -1
- package/layout/_partial/head.ejs +7 -18
- package/layout/_partial/header.ejs +6 -6
- package/layout/_partial/post.ejs +4 -4
- package/layout/_partial/scripts/_ctrl.ejs +43 -2
- package/layout/_partial/scripts/config.ejs +69 -0
- package/layout/_partial/scripts/global.ejs +136 -60
- package/layout/_partial/scripts/index.ejs +16 -23
- package/layout/_plugins/_page_plugins/artitalk/index.ejs +1 -1
- package/layout/_plugins/_page_plugins/bbtalk/index.ejs +1 -1
- package/layout/_plugins/_page_plugins/fcircle/index.ejs +9 -8
- package/layout/_plugins/_page_plugins/katex/index.ejs +3 -3
- package/layout/_plugins/_page_plugins/mathjax/index.ejs +1 -1
- package/layout/_plugins/aplayer/layout.ejs +31 -23
- package/layout/_plugins/aplayer/script.ejs +93 -65
- package/layout/_plugins/comments/artalk/script.ejs +31 -40
- package/layout/_plugins/comments/discuss/script.ejs +1 -1
- package/layout/_plugins/comments/disqusjs/script.ejs +2 -2
- package/layout/_plugins/comments/gitalk/script.ejs +1 -1
- package/layout/_plugins/comments/twikoo/script.ejs +1 -1
- package/layout/_plugins/comments/vssue/script.ejs +3 -3
- package/layout/_plugins/comments/waline/script.ejs +2 -2
- package/layout/_plugins/github-api/script.ejs +3 -3
- package/layout/_plugins/lazyload/script.ejs +1 -1
- package/layout/_plugins/nodewaves/script.ejs +1 -1
- package/layout/_plugins/pace/script.ejs +15 -0
- package/layout/_plugins/parallax/script.ejs +1 -1
- package/layout/_plugins/pjax/index.ejs +66 -11
- package/layout/_plugins/pjax/pdata.ejs +5 -5
- package/layout/_plugins/preload/script.ejs +2 -2
- package/layout/_plugins/rightmenus/layout.ejs +4 -4
- package/layout/_plugins/scrollreveal/script.ejs +2 -2
- package/layout/_plugins/search/script.ejs +11 -8
- package/layout/_plugins/swiper/script.ejs +2 -2
- package/layout/{_partial/scripts/toc.ejs → _plugins/toc/script.ejs} +40 -36
- package/layout/_widget/blogger.ejs +4 -4
- package/layout/_widget/webinfo.ejs +13 -14
- package/layout/friends.ejs +2 -2
- package/layout/layout.ejs +1 -15
- package/package.json +4 -4
- package/scripts/events/lib/cdn.js +206 -0
- package/scripts/events/lib/check-configuration.js +7 -7
- package/scripts/events/lib/check-environment.js +17 -17
- package/scripts/events/lib/config.js +0 -24
- package/scripts/events/lib/render-stylus.js +5 -5
- package/scripts/events/lib/stellar-tag-utils.js +2 -2
- package/scripts/filters/hexo-blog-encrypt-callback.js +44 -0
- package/scripts/filters/img.js +1 -1
- package/scripts/filters/replace.js +3 -3
- package/scripts/filters/z-lazyload.js +3 -5
- package/scripts/helpers/first-style.js +2 -2
- package/scripts/helpers/head/generate_seo.js +24 -10
- package/scripts/helpers/head/generate_title__keywords__description.js +28 -9
- package/scripts/helpers/related-posts.js +3 -3
- package/scripts/helpers/structured-data/lib/blogposting.js +1 -1
- package/scripts/helpers/structured-data/lib/breadcrumblist.js +1 -1
- package/scripts/helpers/structured-data/lib/config.js +1 -1
- package/scripts/helpers/structured-data/lib/website.js +1 -1
- package/scripts/helpers//346/226/207/347/253/240/346/216/250/350/215/220.js +184 -0
- package/scripts/tags/btn.js +2 -2
- package/scripts/tags/btns.js +3 -3
- package/scripts/tags/checkbox.js +6 -6
- package/scripts/tags/contributors.js +7 -7
- package/scripts/tags/dropmenu.js +8 -8
- package/scripts/tags/fancybox.js +6 -6
- package/scripts/tags/folding.js +5 -5
- package/scripts/tags/frame.js +3 -3
- package/scripts/tags/friends.js +8 -8
- package/scripts/tags/ghcard.js +7 -7
- package/scripts/tags/image.js +6 -6
- package/scripts/tags/inline-labels.js +6 -6
- package/scripts/tags/link.js +5 -5
- package/scripts/tags/md.js +4 -4
- package/scripts/tags/media.js +5 -5
- package/scripts/tags/note.js +12 -12
- package/scripts/tags/pandown.js +29 -29
- package/scripts/tags/site.js +4 -4
- package/scripts/tags/span.js +4 -4
- package/scripts/tags/table.js +2 -2
- package/scripts/tags/tabs.js +23 -23
- package/scripts/tags/timeline.js +5 -5
- package/source/css/_first/base_first.styl +1 -1
- package/source/css/_style/_layout/article.styl +43 -0
- package/source/css/_style/_layout/main.styl +1 -1
- package/source/css/_style/_layout/search.styl +206 -14
- package/source/css/_style/_plugins/index.styl +1 -3
- package/source/js/app.js +133 -160
- package/source/js/plugins/parallax.js +1 -1
- package/source/js/plugins/rightMenus.js +24 -20
- package/source/js/search/algolia.js +239 -0
- package/source/js/search/hexo.js +8 -2
- package/source/js/search/meilisearch.js +220 -0
- package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +0 -127
- package/layout/_partial/scripts/_ctrl/coverCtrl.ejs +0 -43
- package/layout/_plugins/analytics/LCCounter.ejs +0 -207
- package/layout/_plugins/pjax/animate.ejs +0 -31
- package/layout/_plugins/rightmenu/layout.ejs +0 -119
- package/scripts/helpers/revisioned.js +0 -167
- package/source/css/_style/_plugins/pjaxanimate.styl +0 -160
- package/source/js/plugins/rightMenu.js +0 -577
- /package/layout/{_partial/scripts/content-visibility-scroll-fix.ejs → _plugins/content-visibility/script.ejs} +0 -0
|
@@ -37,7 +37,7 @@ html
|
|
|
37
37
|
font-size: $fontsize-root
|
|
38
38
|
>
|
|
39
39
|
if hexo-config('custom_css.scrollbar.size')
|
|
40
|
-
scrollbar(convert(hexo-config('custom_css.scrollbar.size')), convert(hexo-config('custom_css.scrollbar.border')) || 0px
|
|
40
|
+
scrollbar(convert(hexo-config('custom_css.scrollbar.size')), convert(hexo-config('custom_css.scrollbar.border')) || 0px)
|
|
41
41
|
|
|
42
42
|
body
|
|
43
43
|
background-color: var(--color-site-body)
|
|
@@ -371,3 +371,46 @@ article .readmore
|
|
|
371
371
|
border-bottom: 1px solid var(--color-meta);
|
|
372
372
|
&:hover
|
|
373
373
|
border-bottom-color: #ff5722
|
|
374
|
+
.recommended-article
|
|
375
|
+
overflow: hidden
|
|
376
|
+
.recommended-article-header
|
|
377
|
+
margin-top: $gap * 0.5
|
|
378
|
+
margin-left: $gap * 0.5
|
|
379
|
+
margin-right: 0
|
|
380
|
+
.recommended-article-group
|
|
381
|
+
display: flex
|
|
382
|
+
flex-wrap: wrap
|
|
383
|
+
overflow: hidden
|
|
384
|
+
@media screen and (max-width: $device-tablet)
|
|
385
|
+
height: 190px
|
|
386
|
+
overflow: scroll
|
|
387
|
+
&::-webkit-scrollbar
|
|
388
|
+
width: 0 !important
|
|
389
|
+
-ms-overflow-style: none
|
|
390
|
+
.recommended-article-item
|
|
391
|
+
display: flex
|
|
392
|
+
flex-wrap: wrap
|
|
393
|
+
align-content: center;
|
|
394
|
+
justify-content: center;
|
|
395
|
+
align-items: center;
|
|
396
|
+
overflow: hidden
|
|
397
|
+
width: "calc(100%/3 - %s)" % $gap
|
|
398
|
+
@media screen and (max-width: $device-tablet)
|
|
399
|
+
width: "calc(100%/2 - %s)" % $gap
|
|
400
|
+
@media screen and (max-width: $device-mobile)
|
|
401
|
+
width: "calc(100% - %s)" % $gap
|
|
402
|
+
max-height: 200px
|
|
403
|
+
margin-top: $gap * 0.5
|
|
404
|
+
margin-left: $gap * 0.5
|
|
405
|
+
margin-right: 0
|
|
406
|
+
img
|
|
407
|
+
display: flex;
|
|
408
|
+
width: 100%
|
|
409
|
+
height: 150px
|
|
410
|
+
span
|
|
411
|
+
display: block
|
|
412
|
+
text-align: justify
|
|
413
|
+
display: -webkit-box
|
|
414
|
+
-webkit-box-orient: vertical
|
|
415
|
+
-webkit-line-clamp: 1;
|
|
416
|
+
overflow: hidden
|
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
z-index: 3
|
|
12
12
|
border-radius: $border-card
|
|
13
13
|
overflow: hidden
|
|
14
|
+
.search-icon,
|
|
15
|
+
#resule-hits-empty
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 50%;
|
|
18
|
+
left: 50%;
|
|
19
|
+
width: 50%;
|
|
20
|
+
text-align: center;
|
|
21
|
+
transform: translate(-50%, -50%);
|
|
22
|
+
i
|
|
23
|
+
font-size: 8em;
|
|
24
|
+
color: #e8e8e8
|
|
25
|
+
margin-bottom 10px
|
|
14
26
|
@media screen and (max-width: $modal-threshold)
|
|
15
27
|
box-shadow: none
|
|
16
28
|
max-width: none
|
|
@@ -19,15 +31,10 @@
|
|
|
19
31
|
margin: 0
|
|
20
32
|
height: 100%
|
|
21
33
|
border-radius: 0
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
34
|
.modal-header
|
|
28
35
|
position: relative
|
|
29
36
|
width: 100%
|
|
30
|
-
height:
|
|
37
|
+
height: 64px
|
|
31
38
|
z-index: 3
|
|
32
39
|
border-top-left-radius: $border-card
|
|
33
40
|
border-top-right-radius: $border-card
|
|
@@ -42,13 +49,13 @@
|
|
|
42
49
|
display: block
|
|
43
50
|
position: absolute
|
|
44
51
|
width: 50px + 5px
|
|
45
|
-
height:
|
|
52
|
+
height: 64px
|
|
46
53
|
top: 0
|
|
47
54
|
right: 0
|
|
48
55
|
color: $color-theme
|
|
49
56
|
cursor: pointer
|
|
50
57
|
text-align: center
|
|
51
|
-
line-height:
|
|
58
|
+
line-height: 64px
|
|
52
59
|
vertical-align: middle
|
|
53
60
|
trans()
|
|
54
61
|
z-index: 2
|
|
@@ -90,7 +97,7 @@
|
|
|
90
97
|
background: transparent
|
|
91
98
|
border: none
|
|
92
99
|
width: 50px
|
|
93
|
-
height:
|
|
100
|
+
height: 64px
|
|
94
101
|
vertical-align: middle
|
|
95
102
|
color: $color-theme
|
|
96
103
|
z-index: 2
|
|
@@ -99,8 +106,8 @@
|
|
|
99
106
|
position: absolute
|
|
100
107
|
padding: $gap
|
|
101
108
|
width: 100%
|
|
102
|
-
height: "calc(100% - %s)" %
|
|
103
|
-
top:
|
|
109
|
+
height: "calc(100% - %s)" % 64px
|
|
110
|
+
top: 64px
|
|
104
111
|
left: 0
|
|
105
112
|
overflow-y: scroll
|
|
106
113
|
-webkit-overflow-scrolling: touch
|
|
@@ -117,12 +124,12 @@
|
|
|
117
124
|
b[mark]
|
|
118
125
|
color: darken($color-theme, 10)
|
|
119
126
|
text-decoration: underline
|
|
127
|
+
font-size 120%
|
|
128
|
+
background-color #ffe600
|
|
120
129
|
&:hover
|
|
121
130
|
background: var(--color-site-bg)
|
|
122
131
|
.title
|
|
123
132
|
color: var(--color-list-hl)
|
|
124
|
-
|
|
125
|
-
|
|
126
133
|
.title
|
|
127
134
|
display: inline-block
|
|
128
135
|
max-width: 100%
|
|
@@ -150,7 +157,6 @@
|
|
|
150
157
|
font-size: 11px
|
|
151
158
|
color: var(--color-meta)
|
|
152
159
|
|
|
153
|
-
|
|
154
160
|
.modal-overlay
|
|
155
161
|
position: absolute
|
|
156
162
|
top: 0
|
|
@@ -159,3 +165,189 @@
|
|
|
159
165
|
height: 100%
|
|
160
166
|
background: rgba(0,0,0,0.7)
|
|
161
167
|
z-index: 1
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
if hexo-config('search.service') == 'meilisearch'
|
|
171
|
+
#u-search
|
|
172
|
+
.modal-header
|
|
173
|
+
.ais-SearchBox-input
|
|
174
|
+
margin: $gap 50px
|
|
175
|
+
padding: 0 $gap * 0.5
|
|
176
|
+
width: "calc(100% - 100px - %s)" % $gap
|
|
177
|
+
@media screen and (max-width: $modal-threshold)
|
|
178
|
+
padding: 0
|
|
179
|
+
line-height: 2rem
|
|
180
|
+
border-radius: $border-card
|
|
181
|
+
vertical-align: middle
|
|
182
|
+
border: none
|
|
183
|
+
appearance: none
|
|
184
|
+
box-shadow: none
|
|
185
|
+
background: transparent
|
|
186
|
+
trans()
|
|
187
|
+
&:focus
|
|
188
|
+
border-top-left-radius: $border-card
|
|
189
|
+
border-top-right-radius: $border-card
|
|
190
|
+
.modal .modal-body
|
|
191
|
+
height: "calc(100% - %s)" % 115px
|
|
192
|
+
.ais-Hits-list
|
|
193
|
+
list-style: none
|
|
194
|
+
.result
|
|
195
|
+
position: relative
|
|
196
|
+
display: block
|
|
197
|
+
padding: $gap
|
|
198
|
+
border-radius: $border-card
|
|
199
|
+
b[mark]
|
|
200
|
+
color: darken($color-theme, 10)
|
|
201
|
+
text-decoration: underline
|
|
202
|
+
font-size 120%
|
|
203
|
+
background-color #ffe600
|
|
204
|
+
&:hover
|
|
205
|
+
background: var(--color-site-bg)
|
|
206
|
+
.title
|
|
207
|
+
color: var(--color-list-hl)
|
|
208
|
+
.title
|
|
209
|
+
display: inline-block
|
|
210
|
+
max-width: 100%
|
|
211
|
+
color: var(--color-list)
|
|
212
|
+
font-weight: bold
|
|
213
|
+
padding: 1px
|
|
214
|
+
margin-bottom: 2px
|
|
215
|
+
white-space: normal
|
|
216
|
+
overflow: hidden
|
|
217
|
+
text-overflow: ellipsis
|
|
218
|
+
font-size: $fontsize-h4
|
|
219
|
+
.digest
|
|
220
|
+
display: block
|
|
221
|
+
white-space: inherit
|
|
222
|
+
overflow: hidden
|
|
223
|
+
word-break: break-all
|
|
224
|
+
text-overflow: ellipsis
|
|
225
|
+
font-size: $fontsize-code
|
|
226
|
+
color: var(--color-meta)
|
|
227
|
+
.icon
|
|
228
|
+
position: absolute
|
|
229
|
+
top: 50%
|
|
230
|
+
right: 0
|
|
231
|
+
margin-top: -4px
|
|
232
|
+
font-size: 11px
|
|
233
|
+
color: var(--color-meta)
|
|
234
|
+
footer
|
|
235
|
+
position: absolute;
|
|
236
|
+
bottom: 0;
|
|
237
|
+
padding: 0 16px;
|
|
238
|
+
width: 100%;
|
|
239
|
+
height: 51px;
|
|
240
|
+
hr
|
|
241
|
+
margin 5px 0
|
|
242
|
+
#meilisearch-info
|
|
243
|
+
height 40px
|
|
244
|
+
line-height 40px
|
|
245
|
+
font-size 14px
|
|
246
|
+
div
|
|
247
|
+
display: inline
|
|
248
|
+
.meilisearch-poweredBy
|
|
249
|
+
float: right
|
|
250
|
+
|
|
251
|
+
if hexo-config('search.service') == 'algolia'
|
|
252
|
+
#u-search
|
|
253
|
+
.modal-header
|
|
254
|
+
.ais-SearchBox-input
|
|
255
|
+
margin: $gap 50px
|
|
256
|
+
padding: 0 $gap * 0.5
|
|
257
|
+
width: "calc(100% - 100px - %s)" % $gap
|
|
258
|
+
@media screen and (max-width: $modal-threshold)
|
|
259
|
+
padding: 0
|
|
260
|
+
line-height: 2rem
|
|
261
|
+
border-radius: $border-card
|
|
262
|
+
vertical-align: middle
|
|
263
|
+
border: none
|
|
264
|
+
appearance: none
|
|
265
|
+
box-shadow: none
|
|
266
|
+
background: transparent
|
|
267
|
+
trans()
|
|
268
|
+
&:focus
|
|
269
|
+
border-top-left-radius: $border-card
|
|
270
|
+
border-top-right-radius: $border-card
|
|
271
|
+
.modal .modal-body
|
|
272
|
+
height: "calc(100% - %s)" % 155px
|
|
273
|
+
.ais-Hits-list
|
|
274
|
+
list-style: none
|
|
275
|
+
.result
|
|
276
|
+
position: relative
|
|
277
|
+
display: block
|
|
278
|
+
padding: $gap
|
|
279
|
+
border-radius: $border-card
|
|
280
|
+
b[mark]
|
|
281
|
+
color: darken($color-theme, 10)
|
|
282
|
+
text-decoration: underline
|
|
283
|
+
font-size 120%
|
|
284
|
+
background-color #ffe600
|
|
285
|
+
&:hover
|
|
286
|
+
background: var(--color-site-bg)
|
|
287
|
+
.title
|
|
288
|
+
color: var(--color-list-hl)
|
|
289
|
+
.title
|
|
290
|
+
display: inline-block
|
|
291
|
+
max-width: 100%
|
|
292
|
+
color: var(--color-list)
|
|
293
|
+
font-weight: bold
|
|
294
|
+
padding: 1px
|
|
295
|
+
margin-bottom: 2px
|
|
296
|
+
white-space: normal
|
|
297
|
+
overflow: hidden
|
|
298
|
+
text-overflow: ellipsis
|
|
299
|
+
font-size: $fontsize-h4
|
|
300
|
+
.digest
|
|
301
|
+
display: block
|
|
302
|
+
white-space: inherit
|
|
303
|
+
overflow: hidden
|
|
304
|
+
word-break: break-all
|
|
305
|
+
text-overflow: ellipsis
|
|
306
|
+
font-size: $fontsize-code
|
|
307
|
+
color: var(--color-meta)
|
|
308
|
+
.icon
|
|
309
|
+
position: absolute
|
|
310
|
+
top: 50%
|
|
311
|
+
right: 0
|
|
312
|
+
margin-top: -4px
|
|
313
|
+
font-size: 11px
|
|
314
|
+
color: var(--color-meta)
|
|
315
|
+
footer
|
|
316
|
+
position: absolute;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
padding: 0 16px;
|
|
319
|
+
width: 100%;
|
|
320
|
+
height: 91px;
|
|
321
|
+
hr
|
|
322
|
+
margin 5px 0
|
|
323
|
+
#algolia-info
|
|
324
|
+
height 40px
|
|
325
|
+
line-height 40px
|
|
326
|
+
font-size 14px
|
|
327
|
+
div
|
|
328
|
+
display: inline
|
|
329
|
+
.algolia-poweredBy
|
|
330
|
+
float: right
|
|
331
|
+
#algolia-pagination
|
|
332
|
+
height 40px
|
|
333
|
+
line-height 40px
|
|
334
|
+
.ais-Pagination
|
|
335
|
+
text-align: center
|
|
336
|
+
padding-top: 5px;
|
|
337
|
+
.ais-Pagination-item
|
|
338
|
+
display: inline
|
|
339
|
+
margin: 0 4px
|
|
340
|
+
padding: 0
|
|
341
|
+
.ais-Pagination-link
|
|
342
|
+
display: inline-block
|
|
343
|
+
min-width: 24px
|
|
344
|
+
height: 24px
|
|
345
|
+
text-align: center
|
|
346
|
+
line-height: 24px
|
|
347
|
+
.ais-Pagination-item--selected
|
|
348
|
+
a
|
|
349
|
+
background: darken($color-theme, 10)
|
|
350
|
+
color: #eee
|
|
351
|
+
cursor: default
|
|
352
|
+
.ais-Pagination-item--disabled
|
|
353
|
+
visibility: hidden
|
|
@@ -8,13 +8,11 @@ if hexo-config('plugins.message.enable')
|
|
|
8
8
|
@import 'message'
|
|
9
9
|
if hexo-config('plugins.aplayer.enable')
|
|
10
10
|
@import 'aplayer'
|
|
11
|
-
if hexo-config('plugins.pjax.enable') and hexo-config('plugins.pjax.animation')
|
|
12
|
-
@import 'pjaxanimate'
|
|
13
11
|
if hexo-config('comments.service')=='gitalk'
|
|
14
12
|
@import 'gitalk'
|
|
15
13
|
if hexo-config('custom_css.cursor.enable')
|
|
16
14
|
@import 'cursor'
|
|
17
|
-
if hexo-config('
|
|
15
|
+
if hexo-config('rightmenus.enable')
|
|
18
16
|
@import '_rightmenu/*'
|
|
19
17
|
|
|
20
18
|
|