hexo-theme-solitude 1.10.4 → 1.10.5
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 +11 -8
- package/layout/includes/inject/body.pug +3 -4
- package/layout/includes/inject/head.pug +1 -1
- package/layout/includes/widgets/aside/asideInfoCard.pug +31 -1
- package/package.json +1 -1
- package/scripts/event/merge_config.js +1 -0
- package/source/css/_global/index.styl +4 -8
- package/source/css/_layout/aside.styl +157 -13
- package/source/css/_layout/console.styl +5 -13
- package/source/css/_layout/header.styl +1 -1
- package/source/css/_layout/sidebar.styl +1 -1
- package/source/css/_page/_home/home.styl +8 -1
- package/source/css/_page/says.styl +3 -9
package/_config.yml
CHANGED
@@ -184,21 +184,24 @@ aside:
|
|
184
184
|
# 表情图片链接
|
185
185
|
# Emoticon image link
|
186
186
|
# tip: 26x26 size
|
187
|
-
sticker: https://7.isyangs.cn/34/65f2e4e0423cc-34.png
|
188
|
-
#
|
189
|
-
# Click the author
|
187
|
+
sticker: https://7.isyangs.cn/34/65f2e4e0423cc-34.png # 不填不显示
|
188
|
+
# 点击作者头像跳转链接
|
189
|
+
# Click the author's avatar to jump link
|
190
190
|
url: /about/
|
191
|
+
# 背景图片
|
192
|
+
# Background image
|
193
|
+
background: # https://s3.qjqq.cn/47/663af296b85f4.webp!color # 不设置不会展示(仅样式为1、2时有效)
|
191
194
|
# 文案1
|
192
195
|
# label1
|
193
|
-
content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。
|
196
|
+
content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。 # 样式为1时无效
|
194
197
|
# 文案2
|
195
198
|
# label2
|
196
|
-
content2: 相信你可以在这里找到对你有用的知识和教程。
|
199
|
+
content2: 相信你可以在这里找到对你有用的知识和教程。 # 样式为1时无效
|
197
200
|
# 个人信息卡片底部的小图标,按照例子填写
|
198
201
|
# Small icons at the bottom of the personal information card, fill in according to the example
|
199
202
|
# 个人信息卡片顶部按钮的打招呼语句
|
200
203
|
# Greeting statement of the button at the top of the personal information card
|
201
|
-
sayhello:
|
204
|
+
sayhello: # 样式为2时无效
|
202
205
|
morning: 一日之计在于晨
|
203
206
|
noon: 吃饱了才有力气干活
|
204
207
|
afternoon: 集中精力,攻克难关
|
@@ -206,7 +209,7 @@ aside:
|
|
206
209
|
goodnight: 睡个好觉,保证精力充沛
|
207
210
|
# 个人信息卡片顶部按钮的切换文字
|
208
211
|
# Switching text of the button at the top of the personal information card
|
209
|
-
sayhello2:
|
212
|
+
sayhello2: # 样式为2时无效
|
210
213
|
# - 🤖️ 数码科技爱好者
|
211
214
|
# - 🔍 分享与热心帮助
|
212
215
|
# - 🏠 智能家居小能手
|
@@ -217,7 +220,7 @@ aside:
|
|
217
220
|
# - 💢 壮汉人狠话不多
|
218
221
|
# - 🎮 电竞游戏爱好者
|
219
222
|
# 个人信息卡片底部的小图标,按照例子填写
|
220
|
-
information:
|
223
|
+
information: # 样式为1时请不要超过4个
|
221
224
|
# Github: https://github.com/efuo || st-github-line # 名称:链接 || 图标 / Name: link || icon
|
222
225
|
# Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
|
223
226
|
|
@@ -80,6 +80,9 @@ div
|
|
80
80
|
!= item
|
81
81
|
|
82
82
|
.js-pjax
|
83
|
+
if is_home() && theme.says.enable && theme.says.home_mini
|
84
|
+
script.
|
85
|
+
sco.initbbtalk()
|
83
86
|
if page.type === 'says' && theme.says.enable
|
84
87
|
script.
|
85
88
|
GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
|
@@ -92,10 +95,6 @@ div
|
|
92
95
|
if is_home() && theme.carousel && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false
|
93
96
|
script.
|
94
97
|
carousel_swiper()
|
95
|
-
if page.type === 'says' && theme.says.enable
|
96
|
-
script.
|
97
|
-
GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".bber-content-img img"));
|
98
|
-
sco.changeTimeFormat(document.querySelectorAll('.bber-info-time time'))
|
99
98
|
if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv)
|
100
99
|
if theme.busuanzi_use === 0
|
101
100
|
script(defer pjax src=url_for(theme.cdn.busuanzi_js))
|
@@ -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.5",
|
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",
|
@@ -53,4 +53,34 @@
|
|
53
53
|
each value, label in theme.aside.card.information || {}
|
54
54
|
- var array = value.split('||')
|
55
55
|
a.social-icon(href=url_for(trim(array[0])), title=label)
|
56
|
-
i.solitude(class=array[1])
|
56
|
+
i.solitude(class=array[1])
|
57
|
+
when 2
|
58
|
+
.card-info-bg-top
|
59
|
+
.author-info-social
|
60
|
+
.social-icons
|
61
|
+
each value, label in theme.aside.card.information || {}
|
62
|
+
- var array = value.split('||')
|
63
|
+
a.social-icon(href=url_for(trim(array[0])), title=label)
|
64
|
+
i.solitude(class=array[1])
|
65
|
+
span.more-info(onclick="document.querySelector('.social-icons').classList.toggle('show')")
|
66
|
+
i.solitude.st-more-2-fill
|
67
|
+
a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
|
68
|
+
.avatar-img
|
69
|
+
img(src=theme.aside.card.author.img alt=_p('aside.avatar'))
|
70
|
+
if theme.aside.card.author.sticker
|
71
|
+
.avatar-sticker
|
72
|
+
img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
|
73
|
+
.author-info__name= config.author
|
74
|
+
.card-info__data.is-center
|
75
|
+
a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
|
76
|
+
.length-num= site.posts.length
|
77
|
+
.headline= _p('page.archives')
|
78
|
+
a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
|
79
|
+
.length-num= site.tags.length
|
80
|
+
.headline= _p('page.tag')
|
81
|
+
a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
|
82
|
+
.length-num= site.categories.length
|
83
|
+
.headline= _p('page.category')
|
84
|
+
.card-info__desc_group
|
85
|
+
.author-info__description!= theme.aside.card.content
|
86
|
+
.author-info__description2!= theme.aside.card.content2
|
package/package.json
CHANGED
@@ -95,14 +95,6 @@ main
|
|
95
95
|
*::-webkit-scrollbar-track
|
96
96
|
background-color transparent
|
97
97
|
|
98
|
-
#site-title,
|
99
|
-
#site-subtitle,
|
100
|
-
.site-name,
|
101
|
-
#aside-content .author-info__name,
|
102
|
-
#aside-content .author-info__description
|
103
|
-
font-family "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif
|
104
|
-
|
105
|
-
|
106
98
|
if hexo-config('lazyload.enable') && !hexo-config('lazyload.placeholder')
|
107
99
|
img
|
108
100
|
&[data-lazy-src]:not(.loaded)
|
@@ -409,6 +401,10 @@ i.solitude
|
|
409
401
|
padding 0 1rem
|
410
402
|
background var(--efu-background)
|
411
403
|
|
404
|
+
.show
|
405
|
+
opacity 1 !important
|
406
|
+
pointer-events all !important
|
407
|
+
|
412
408
|
span.tags-punctuation::before
|
413
409
|
content: "\e071"
|
414
410
|
font-family: solitude, serif !important
|
@@ -1,5 +1,9 @@
|
|
1
1
|
#aside-content
|
2
2
|
width 300px
|
3
|
+
if hexo-config('aside.position') == 0
|
4
|
+
order 1
|
5
|
+
else
|
6
|
+
order 2
|
3
7
|
|
4
8
|
+minWidth900()
|
5
9
|
if hexo-config('aside.position') == 0
|
@@ -50,11 +54,10 @@
|
|
50
54
|
&:hover
|
51
55
|
box-shadow var(--efu-shadow-border)
|
52
56
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
margin-top 0
|
57
|
+
> .card-widget
|
58
|
+
&:first-child
|
59
|
+
transition 0.3s
|
60
|
+
margin-top 0
|
58
61
|
|
59
62
|
.sticky_layout
|
60
63
|
top calc(60px + .5rem)
|
@@ -66,6 +69,7 @@
|
|
66
69
|
width fit-content
|
67
70
|
color var(--efu-white)
|
68
71
|
background var(--efu-white-op)
|
72
|
+
backdrop-filter blur(10px)
|
69
73
|
font-size 12px
|
70
74
|
padding 2px 8px
|
71
75
|
border-radius 12px
|
@@ -90,7 +94,7 @@
|
|
90
94
|
&:active
|
91
95
|
transform scale(.97)
|
92
96
|
opacity .8
|
93
|
-
|
97
|
+
|
94
98
|
.card-info-social-icons
|
95
99
|
margin 0
|
96
100
|
display flex
|
@@ -256,12 +260,6 @@
|
|
256
260
|
|
257
261
|
if hexo-config('aside.card.style') == 0
|
258
262
|
#aside-content
|
259
|
-
> .card-widget:first-child
|
260
|
-
transition: .3s
|
261
|
-
border: none
|
262
|
-
box-shadow: none
|
263
|
-
background: var(--efu-main)
|
264
|
-
margin-top: 0
|
265
263
|
|
266
264
|
.card-widget
|
267
265
|
if hexo-config('aside.card.author.sticker')
|
@@ -475,6 +473,11 @@ if hexo-config('aside.card.style') == 1
|
|
475
473
|
min-height 140px
|
476
474
|
background: linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep), var(--efu-main), var(--efu-main-op-deep))
|
477
475
|
background-size: 400%
|
476
|
+
if hexo-config('aside.card.background')
|
477
|
+
background-image url(hexo-config('aside.card.background'))
|
478
|
+
background-size cover
|
479
|
+
background-position center
|
480
|
+
background-repeat no-repeat
|
478
481
|
|
479
482
|
.card-info-avatar
|
480
483
|
width 114px
|
@@ -485,6 +488,7 @@ if hexo-config('aside.card.style') == 1
|
|
485
488
|
position absolute
|
486
489
|
transition cubic-bezier(.69, .39, 0, 1.21) .3s
|
487
490
|
transform-origin bottom
|
491
|
+
z-index 1
|
488
492
|
border 7px solid var(--efu-card-bg)
|
489
493
|
|
490
494
|
.avatar-img
|
@@ -546,7 +550,7 @@ if hexo-config('aside.card.style') == 1
|
|
546
550
|
margin-top 60px
|
547
551
|
text-align center
|
548
552
|
font-weight 700
|
549
|
-
color var(--efu-
|
553
|
+
color var(--efu-fontcolor)
|
550
554
|
font-size 20px
|
551
555
|
line-height 1
|
552
556
|
margin-bottom 5px
|
@@ -596,6 +600,146 @@ if hexo-config('aside.card.style') == 1
|
|
596
600
|
font-size: 1em
|
597
601
|
line-height: 1.5
|
598
602
|
|
603
|
+
if hexo-config('aside.card.style') == 2
|
604
|
+
#aside-content .card-widget.card-info
|
605
|
+
padding 0
|
606
|
+
|
607
|
+
.card-info-bg-top
|
608
|
+
width 100%
|
609
|
+
height 95px
|
610
|
+
position relative
|
611
|
+
background: linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep), var(--efu-main), var(--efu-main-op-deep))
|
612
|
+
if hexo-config('aside.card.background')
|
613
|
+
background-image url(hexo-config('aside.card.background'))
|
614
|
+
background-size cover
|
615
|
+
background-position center
|
616
|
+
background-repeat no-repeat
|
617
|
+
.author-info__name
|
618
|
+
font-size 24px
|
619
|
+
line-height 35px
|
620
|
+
color var(--efu-white)
|
621
|
+
font-weight 700
|
622
|
+
position absolute
|
623
|
+
top 55px
|
624
|
+
if hexo-config('aside.position') == 0
|
625
|
+
left 6rem
|
626
|
+
else
|
627
|
+
left 1rem
|
628
|
+
.card-info__data
|
629
|
+
position absolute
|
630
|
+
top 98px
|
631
|
+
gap .5rem
|
632
|
+
z-index 1
|
633
|
+
if hexo-config('aside.position') == 0
|
634
|
+
right 1rem
|
635
|
+
else
|
636
|
+
left 1rem
|
637
|
+
|
638
|
+
.headline
|
639
|
+
color var(--efu-gray)
|
640
|
+
|
641
|
+
.length-num
|
642
|
+
font-weight 700
|
643
|
+
|
644
|
+
a
|
645
|
+
font-size 14px
|
646
|
+
display flex
|
647
|
+
line-height 18px
|
648
|
+
gap .1rem
|
649
|
+
.card-info__desc_group
|
650
|
+
padding 44px 1rem 1rem
|
651
|
+
min-height 50px
|
652
|
+
opacity .8
|
653
|
+
line-height 18px
|
654
|
+
.author-info-social
|
655
|
+
position absolute
|
656
|
+
display inline-flex
|
657
|
+
gap: 5px
|
658
|
+
top .5rem
|
659
|
+
if hexo-config('aside.position') == 0
|
660
|
+
right 1rem
|
661
|
+
else
|
662
|
+
left 1rem
|
663
|
+
|
664
|
+
i
|
665
|
+
font-size 18px
|
666
|
+
width 30px
|
667
|
+
height 30px
|
668
|
+
border-radius 50%
|
669
|
+
background rgba(255, 255, 255, .2)
|
670
|
+
backdrop-filter blur(10px)
|
671
|
+
color var(--efu-white)
|
672
|
+
display flex
|
673
|
+
justify-content center
|
674
|
+
align-items center
|
675
|
+
|
676
|
+
.social-icons
|
677
|
+
order 1
|
678
|
+
opacity 0
|
679
|
+
transition .3s
|
680
|
+
display flex
|
681
|
+
gap 5px
|
682
|
+
.more-info
|
683
|
+
if hexo-config('aside.position') == 0
|
684
|
+
order 1
|
685
|
+
else
|
686
|
+
order 0
|
687
|
+
cursor pointer
|
688
|
+
display flex
|
689
|
+
justify-content center
|
690
|
+
align-items center
|
691
|
+
.card-info-avatar
|
692
|
+
width 80px
|
693
|
+
height 80px
|
694
|
+
top 50px
|
695
|
+
border-radius 500px
|
696
|
+
position absolute
|
697
|
+
transition cubic-bezier(.69, .39, 0, 1.21) .3s
|
698
|
+
transform-origin bottom
|
699
|
+
border 3px solid var(--efu-card-bg)
|
700
|
+
z-index 1
|
701
|
+
if hexo-config('aside.position') == 0
|
702
|
+
left 1rem
|
703
|
+
else
|
704
|
+
right 1rem
|
705
|
+
|
706
|
+
.avatar-img
|
707
|
+
overflow hidden
|
708
|
+
border-radius 500px
|
709
|
+
width 74px
|
710
|
+
cursor pointer
|
711
|
+
height 74px
|
712
|
+
|
713
|
+
img
|
714
|
+
object-fit cover
|
715
|
+
width 100%
|
716
|
+
height 100%
|
717
|
+
transition .3s
|
718
|
+
|
719
|
+
&:hover
|
720
|
+
transform: scale(1.3)
|
721
|
+
|
722
|
+
if hexo-config('aside.card.author.sticker')
|
723
|
+
.avatar-sticker
|
724
|
+
position absolute
|
725
|
+
bottom -2px
|
726
|
+
right -2px
|
727
|
+
width 26px
|
728
|
+
height 26px
|
729
|
+
line-height 26px
|
730
|
+
z-index 0
|
731
|
+
display flex
|
732
|
+
align-items center
|
733
|
+
justify-content center
|
734
|
+
transition .3s .2s
|
735
|
+
transform scale(1)
|
736
|
+
background var(--efu-card-bg)
|
737
|
+
border-radius 50%
|
738
|
+
|
739
|
+
img
|
740
|
+
width 21px
|
741
|
+
height 21px
|
742
|
+
|
599
743
|
[data-theme=dark] #aside-content
|
600
744
|
> .card-widget.card-info
|
601
745
|
border var(--style-border-always)
|
@@ -14,10 +14,6 @@
|
|
14
14
|
pointer-events none
|
15
15
|
user-select none
|
16
16
|
|
17
|
-
&.show
|
18
|
-
opacity 1
|
19
|
-
pointer-events all
|
20
|
-
|
21
17
|
&.show .close-btn i
|
22
18
|
transform rotate(0)
|
23
19
|
|
@@ -175,10 +171,8 @@
|
|
175
171
|
background var(--efu-orange)
|
176
172
|
color var(--efu-white)
|
177
173
|
.button-group
|
174
|
+
gap .5rem
|
178
175
|
.console-btn-item
|
179
|
-
&:not(:last-child)
|
180
|
-
margin-right .5rem
|
181
|
-
|
182
176
|
&:hover
|
183
177
|
span
|
184
178
|
background var(--efu-main)
|
@@ -216,11 +210,11 @@
|
|
216
210
|
.card-tag-cloud
|
217
211
|
margin-top 1.5rem
|
218
212
|
display flex
|
213
|
+
gap .5rem
|
219
214
|
flex-wrap wrap
|
220
215
|
|
221
216
|
a
|
222
217
|
color var(--efu-fontcolor)
|
223
|
-
margin 6px 4px
|
224
218
|
padding 2px 8px
|
225
219
|
border-radius 8px
|
226
220
|
background var(--efu-card-bg)
|
@@ -281,12 +275,10 @@
|
|
281
275
|
flex-direction row
|
282
276
|
flex-wrap wrap
|
283
277
|
height 164px
|
278
|
+
gap .5rem
|
284
279
|
|
285
280
|
li.card-archive-list-item
|
286
|
-
flex 0
|
287
|
-
|
288
|
-
&:not(:nth-child(4n))
|
289
|
-
margin-right .555rem
|
281
|
+
flex 0 1 24.101%
|
290
282
|
|
291
283
|
.card-archive-list-link
|
292
284
|
border-radius 8px
|
@@ -296,7 +288,7 @@
|
|
296
288
|
border var(--style-border)
|
297
289
|
transition all .3s ease 0s
|
298
290
|
background var(--efu-maskbgdeep)
|
299
|
-
padding
|
291
|
+
padding 9.5px 16px
|
300
292
|
|
301
293
|
&:hover
|
302
294
|
background var(--efu-main)
|
@@ -171,13 +171,13 @@
|
|
171
171
|
display flex
|
172
172
|
white-space nowrap
|
173
173
|
flex-direction row
|
174
|
+
gap .5rem
|
174
175
|
flex-wrap wrap
|
175
176
|
margin-bottom 60px
|
176
177
|
|
177
178
|
a
|
178
179
|
color var(--efu-fontcolor) !important
|
179
180
|
padding 2px 8px 2px 12px
|
180
|
-
margin 4px
|
181
181
|
border-radius 8px
|
182
182
|
border var(--style-border-always)
|
183
183
|
background var(--efu-card-bg)
|
@@ -56,7 +56,7 @@ if hexo-config('says.home_mini')
|
|
56
56
|
|
57
57
|
if hexo-config('says.enable')
|
58
58
|
#bber
|
59
|
-
margin-top
|
59
|
+
margin-top .5rem
|
60
60
|
width 100%
|
61
61
|
|
62
62
|
if hexo-config('says.style') == 2
|
@@ -101,12 +101,6 @@ if hexo-config('says.enable')
|
|
101
101
|
width 100%
|
102
102
|
height 100%
|
103
103
|
|
104
|
-
& > section
|
105
|
-
& > ul
|
106
|
-
& > li
|
107
|
-
&.item
|
108
|
-
margin-bottom 1rem
|
109
|
-
|
110
104
|
if hexo-config('says.style') == 1
|
111
105
|
.bber-bottom
|
112
106
|
display flex
|
@@ -279,7 +273,7 @@ if hexo-config('says.enable')
|
|
279
273
|
li
|
280
274
|
&.item
|
281
275
|
position relative
|
282
|
-
width
|
276
|
+
width 33%
|
283
277
|
border var(--style-border-always)
|
284
278
|
border-radius 12px
|
285
279
|
padding 1rem 1rem .5rem
|
@@ -290,8 +284,8 @@ if hexo-config('says.enable')
|
|
290
284
|
justify-content space-between
|
291
285
|
align-items flex-start
|
292
286
|
background var(--efu-card-bg)
|
287
|
+
margin-right .5rem
|
293
288
|
box-shadow var(--efu-shadow-border)
|
294
|
-
margin-right 2%
|
295
289
|
|
296
290
|
+maxWidth1300()
|
297
291
|
width 49%
|