hexo-theme-solitude 1.10.3 → 1.10.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/layout/category.pug +1 -1
- package/layout/includes/inject/body.pug +4 -0
- package/layout/includes/inject/head.pug +1 -1
- package/layout/includes/widgets/aside/asideAdsense.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +1 -1
- package/layout/index.pug +8 -7
- package/layout/post.pug +1 -1
- package/layout/tag.pug +1 -1
- package/package.json +1 -1
- package/source/css/_comments/twikoo.styl +2 -1
- package/source/css/_global/index.styl +2 -2
- package/source/css/_layout/aside.styl +4 -4
- package/source/css/_layout/console.styl +1 -2
- package/source/css/_layout/pagination.styl +0 -2
- package/source/css/_layout/recent-post.styl +8 -15
- package/source/css/_page/_home/category-bar.styl +5 -7
- package/source/css/_page/_home/home-top.styl +5 -3
- package/source/css/_page/_home/home.styl +2 -2
- package/source/css/_page/category.styl +1 -2
- package/source/css/_page/message.styl +2 -2
- package/source/css/_page/other.styl +0 -1
- package/source/css/_page/tag.styl +1 -1
- package/source/css/_tags/note.styl +1 -1
package/layout/category.pug
CHANGED
@@ -8,5 +8,5 @@ block content
|
|
8
8
|
.recent-posts#recent-posts
|
9
9
|
each post,index in page.posts.find({ parent: { $exists: false } }).data
|
10
10
|
include includes/widgets/home/postList
|
11
|
-
|
11
|
+
include includes/mixins/pagination
|
12
12
|
include includes/widgets/aside/aside
|
@@ -80,6 +80,10 @@ div
|
|
80
80
|
!= item
|
81
81
|
|
82
82
|
.js-pjax
|
83
|
+
if page.type === 'says' && theme.says.enable
|
84
|
+
script.
|
85
|
+
GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
|
86
|
+
sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
|
83
87
|
if comment_js
|
84
88
|
include ../widgets/third-party/comments/js
|
85
89
|
if theme.mermaid
|
@@ -27,7 +27,7 @@ include ../head/pwa.pug
|
|
27
27
|
|
28
28
|
script.
|
29
29
|
console.log(
|
30
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.10.
|
30
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.10.4",
|
31
31
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
32
32
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
33
33
|
"padding: 5px 10px;color:white;background:#0084ff;border-radius:0 5px 5px 0",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
if theme.google_adsense.enable
|
1
|
+
if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.aside_card
|
2
2
|
.card-widget.card-adsense
|
3
3
|
ins.adsbygoogle(style="display:block; text-align:center; min-height:120px; min-width: 100%", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
|
4
4
|
script.
|
@@ -6,7 +6,7 @@ each item in custom
|
|
6
6
|
if theme.nav.right.random
|
7
7
|
.nav-button#randomPost_button
|
8
8
|
a.site-page(onclick="toRandomPost()", title=_p('nav.randompost'), href="javascript:void(0);")
|
9
|
-
i.solitude.st-
|
9
|
+
i.solitude.st-dice-line
|
10
10
|
if theme.search.enable
|
11
11
|
.nav-button#search-button
|
12
12
|
a.site-page.social-icon.search(href="javascript:void(0);", title=_p('nav.search'))
|
package/layout/index.pug
CHANGED
@@ -8,15 +8,16 @@ block content
|
|
8
8
|
if theme.hometop.enable && is_home_first_page()
|
9
9
|
include ./includes/widgets/home/hometop
|
10
10
|
main.layout#content-inner
|
11
|
-
|
12
|
-
if theme.carousel && is_home_first_page()
|
13
|
-
include ./includes/widgets/home/carousel.pug
|
11
|
+
#home
|
14
12
|
#category-bar
|
15
13
|
include ./includes/widgets/home/categoryBar
|
16
|
-
|
17
|
-
|
14
|
+
.recent-posts#recent-posts
|
15
|
+
if theme.carousel && is_home_first_page()
|
16
|
+
include ./includes/widgets/home/carousel.pug
|
17
|
+
for post, index in page.posts.sort("-sticky" || "-date").data
|
18
|
+
include ./includes/widgets/home/postList
|
18
19
|
|
19
|
-
|
20
|
-
|
20
|
+
// pagination
|
21
|
+
include ./includes/mixins/pagination
|
21
22
|
// aside
|
22
23
|
include ./includes/widgets/aside/aside
|
package/layout/post.pug
CHANGED
@@ -37,7 +37,7 @@ block content
|
|
37
37
|
a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title="Facebook")
|
38
38
|
when 'twitter'
|
39
39
|
a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title="Twitter")
|
40
|
-
if theme.google_adsense.enable && theme.google_adsense.post_content
|
40
|
+
if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.post_content
|
41
41
|
div.google-ads-warp
|
42
42
|
ins.adsbygoogle(style="display:block; text-align:center; height:284px", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
|
43
43
|
script.
|
package/layout/tag.pug
CHANGED
@@ -12,5 +12,5 @@ block content
|
|
12
12
|
.recent-posts#recent-posts
|
13
13
|
each post,index in page.posts.find({ parent: { $exists: false } }).data
|
14
14
|
include includes/widgets/home/postList
|
15
|
-
|
15
|
+
include includes/mixins/pagination
|
16
16
|
include includes/widgets/aside/aside
|
package/package.json
CHANGED
@@ -371,7 +371,7 @@ i.solitude
|
|
371
371
|
.layout
|
372
372
|
display: flex
|
373
373
|
margin: 0 auto
|
374
|
-
padding:
|
374
|
+
padding: 0 1.5rem
|
375
375
|
max-width: 1200px
|
376
376
|
+maxWidth768()
|
377
377
|
padding 0
|
@@ -391,7 +391,7 @@ i.solitude
|
|
391
391
|
+maxWidth1200()
|
392
392
|
width 100%
|
393
393
|
|
394
|
-
>
|
394
|
+
> #post,#category,#tag,#archive
|
395
395
|
box-shadow var(--efu-shadow-border)
|
396
396
|
padding 1rem 2rem
|
397
397
|
border-radius 12px
|
@@ -13,9 +13,9 @@
|
|
13
13
|
+minWidth1300()
|
14
14
|
animation slide-in .6s .3s backwards
|
15
15
|
if hexo-config('aside.position') == 0
|
16
|
-
padding-right
|
16
|
+
padding-right .5rem
|
17
17
|
else
|
18
|
-
padding-left
|
18
|
+
padding-left .5rem
|
19
19
|
|
20
20
|
.item-headline
|
21
21
|
padding-bottom 0
|
@@ -44,7 +44,7 @@
|
|
44
44
|
border-radius 12px
|
45
45
|
position relative
|
46
46
|
overflow hidden
|
47
|
-
margin-top
|
47
|
+
margin-top .5rem
|
48
48
|
padding 1rem 1.2rem
|
49
49
|
|
50
50
|
&:hover
|
@@ -57,7 +57,7 @@
|
|
57
57
|
margin-top 0
|
58
58
|
|
59
59
|
.sticky_layout
|
60
|
-
top calc(60px +
|
60
|
+
top calc(60px + .5rem)
|
61
61
|
position sticky
|
62
62
|
transition: top .3s ease 0s
|
63
63
|
|
@@ -290,14 +290,13 @@
|
|
290
290
|
|
291
291
|
.card-archive-list-link
|
292
292
|
border-radius 8px
|
293
|
-
margin-top 8px
|
294
293
|
display flex
|
295
294
|
flex-direction column
|
296
295
|
align-content space-between
|
297
296
|
border var(--style-border)
|
298
297
|
transition all .3s ease 0s
|
299
298
|
background var(--efu-maskbgdeep)
|
300
|
-
padding
|
299
|
+
padding 12px 16px
|
301
300
|
|
302
301
|
&:hover
|
303
302
|
background var(--efu-main)
|
@@ -13,10 +13,7 @@ if hexo-config('index_post_list.direction') == "column"
|
|
13
13
|
+minWidth1300()
|
14
14
|
display flex
|
15
15
|
flex-wrap wrap
|
16
|
-
|
17
|
-
align-items flex-start
|
18
|
-
align-content flex-start
|
19
|
-
user-select none
|
16
|
+
gap .5rem
|
20
17
|
transition width .3s
|
21
18
|
|
22
19
|
+maxWidth768()
|
@@ -34,19 +31,19 @@ if hexo-config('index_post_list.direction') == "column"
|
|
34
31
|
border-radius 12px
|
35
32
|
cursor pointer
|
36
33
|
border var(--style-border)
|
37
|
-
margin 1rem 0 1rem
|
38
34
|
|
39
35
|
+minWidth1300()
|
40
36
|
flex-direction column
|
41
|
-
width
|
42
|
-
|
43
|
-
|
37
|
+
width 100%
|
38
|
+
flex 1 1 40%
|
39
|
+
max-width 50%
|
44
40
|
box-shadow var(--efu-shadow-border)
|
45
41
|
|
42
|
+
+maxWidth1300()
|
43
|
+
margin-bottom .5rem
|
44
|
+
|
46
45
|
+maxWidth768()
|
47
|
-
margin 1.5rem 0
|
48
46
|
border-radius 12px
|
49
|
-
margin-top 0.5rem
|
50
47
|
border var(--style-border-always)
|
51
48
|
box-shadow var(--efu-shadow-border)
|
52
49
|
display block
|
@@ -250,6 +247,7 @@ else if hexo-config('index_post_list.direction') == "row"
|
|
250
247
|
align-items flex-start
|
251
248
|
align-content flex-start
|
252
249
|
user-select none
|
250
|
+
gap .5rem
|
253
251
|
transition width .3s
|
254
252
|
|
255
253
|
+maxWidth768()
|
@@ -266,17 +264,12 @@ else if hexo-config('index_post_list.direction') == "row"
|
|
266
264
|
border-radius 12px
|
267
265
|
cursor pointer
|
268
266
|
border var(--style-border)
|
269
|
-
margin 1rem 0 1rem
|
270
267
|
flex-direction row
|
271
268
|
width 100%
|
272
|
-
margin-top .25rem
|
273
|
-
margin-bottom .75rem
|
274
269
|
box-shadow var(--efu-shadow-border)
|
275
270
|
|
276
271
|
+maxWidth768()
|
277
|
-
margin 1.5rem 0
|
278
272
|
border-radius 12px
|
279
|
-
margin-top 0.5rem
|
280
273
|
border var(--style-border-always)
|
281
274
|
box-shadow var(--efu-shadow-border)
|
282
275
|
flex-direction column
|
@@ -5,7 +5,6 @@
|
|
5
5
|
display flex
|
6
6
|
white-space nowrap
|
7
7
|
overflow hidden
|
8
|
-
margin-bottom 1rem
|
9
8
|
border var(--style-border)
|
10
9
|
transition 0.3s
|
11
10
|
height 50px
|
@@ -13,23 +12,22 @@
|
|
13
12
|
justify-content space-between
|
14
13
|
user-select none
|
15
14
|
align-items center
|
16
|
-
|
17
|
-
+maxWidth1300()
|
18
|
-
margin-bottom 1rem
|
19
|
-
animation slide-in .6s 0s backwards
|
15
|
+
margin-bottom .5rem
|
20
16
|
|
21
17
|
+minWidth1300()
|
22
|
-
margin-bottom .75rem
|
23
18
|
&:hover
|
24
19
|
border var(--style-border-hover)
|
25
20
|
box-shadow var(--efu-shadow-main)
|
26
21
|
|
22
|
+
+minWidth1200()
|
23
|
+
animation: slide-in .6s .3s backwards;
|
24
|
+
|
27
25
|
+maxWidth768()
|
28
26
|
margin-bottom 0
|
29
27
|
margin-top 0
|
30
28
|
border-radius 0
|
31
29
|
background var(--efu-background)
|
32
|
-
padding 0
|
30
|
+
padding 0 1rem
|
33
31
|
border none
|
34
32
|
|
35
33
|
.category-bar-right
|
@@ -16,6 +16,10 @@
|
|
16
16
|
flex-wrap nowrap
|
17
17
|
width 100%
|
18
18
|
overflow-x scroll
|
19
|
+
gap .5rem
|
20
|
+
|
21
|
+
+maxWidth1200()
|
22
|
+
gap 0
|
19
23
|
|
20
24
|
&::-webkit-scrollbar
|
21
25
|
display none
|
@@ -24,7 +28,6 @@
|
|
24
28
|
display flex
|
25
29
|
+minWidth1201()
|
26
30
|
width calc(50% - .25rem)
|
27
|
-
margin-right 1rem
|
28
31
|
height calc(328px + .5rem)
|
29
32
|
display flex
|
30
33
|
flex-direction column
|
@@ -53,7 +56,6 @@
|
|
53
56
|
display none
|
54
57
|
+maxWidth768()
|
55
58
|
min-width 130px
|
56
|
-
margin-bottom .5rem
|
57
59
|
margin-left 1rem
|
58
60
|
max-height 164px
|
59
61
|
overflow hidden
|
@@ -313,7 +315,7 @@
|
|
313
315
|
|
314
316
|
.banner-button-group
|
315
317
|
bottom: 1rem
|
316
|
-
|
318
|
+
|
317
319
|
+maxWidth768()
|
318
320
|
margin-right 1rem
|
319
321
|
|
@@ -69,6 +69,7 @@
|
|
69
69
|
font-size 2em
|
70
70
|
|
71
71
|
.tag-cloud-list
|
72
|
+
gap .5rem
|
72
73
|
a
|
73
74
|
display flex
|
74
75
|
width fit-content
|
@@ -76,7 +77,6 @@
|
|
76
77
|
font-size 1.4em
|
77
78
|
padding 0.2em 0.5em
|
78
79
|
background var(--efu-card-bg)
|
79
|
-
margin 0.5em 0.5em
|
80
80
|
border-radius 12px
|
81
81
|
border var(--style-border-always)
|
82
82
|
box-shadow var(--efu-shadow-border)
|
@@ -90,7 +90,6 @@
|
|
90
90
|
transition none
|
91
91
|
|
92
92
|
&:hover
|
93
|
-
transform scale(1.1)
|
94
93
|
background var(--efu-main) !important
|
95
94
|
box-shadow var(--efu-shadow-blue)
|
96
95
|
color var(--efu-white) !important
|