hexo-theme-solitude 1.8.8 → 1.8.10

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 CHANGED
@@ -174,6 +174,7 @@ aside:
174
174
  # 侧边栏个人信息卡片
175
175
  # Sidebar personal information
176
176
  card:
177
+ style: 0 # 0: Heo样式 :1: 设计样式
177
178
  # 头像信息
178
179
  # Avatar information
179
180
  author:
@@ -330,6 +331,9 @@ post:
330
331
  # default post copyright
331
332
  copyright:
332
333
  enable: true
334
+ author:
335
+ url: /about/ # 点击头像跳转地址
336
+ img: # 显示头像,不填写默认显示site_icon
333
337
  license: CC BY-NC-SA 4.0
334
338
  licenurl: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
335
339
  # 顶部文章简介
@@ -521,31 +525,6 @@ capsule:
521
525
  # Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
522
526
  type: playlist
523
527
 
524
- # 友链鱼塘
525
- # Links fish pond
526
- moments:
527
- # enable
528
- enable: false
529
- # API 地址
530
- # example: https://example.com/
531
- api: # https://example.com/
532
- # 加载失败显示图片 / Loading failed display image
533
- error_img: /img/pwa/favicon_64.ico
534
- # 排序规则:created:按创建时间排序 / updated:按更新时间排序
535
- # Sort rule: created: Sort by creation time / updated: Sort by update time
536
- sort_rule: created
537
- # 缓存过期时间(天),默认为1天 / Cache expiration time (days), default is 1 day
538
- expire_days: 1
539
- # 页面初始化加载数量,默认为10条 / Page initialization loading quantity, default is 10
540
- page_init_number: 10
541
- # 页面翻页加载数量,默认为5条 / Page turning loading quantity, default is 5
542
- page_turning_number: 5
543
- # 鱼塘随机文章 / Fish pond random article
544
- angle: false
545
- appjs: https://cdn.cbd.int/st-source@1.0.3/js/fcircle.min.js
546
- bundlejs: https://cdn.cbd.int/st-source/js/moment/bundle.min.js
547
- randompostjs: https://cdn.cbd.int/st-source/js/moment/random_post.min.js
548
-
549
528
  # 快捷菜单你
550
529
  # quick menu
551
530
  keyboard:
@@ -90,6 +90,10 @@ aside:
90
90
  avatar: Avatar
91
91
  sticker: Mood sticker
92
92
  newpost: New posts
93
+ card:
94
+ posts: 'Posts:'
95
+ tags: 'Tags:'
96
+ categories: 'Categories:'
93
97
 
94
98
  console:
95
99
  comment_tip: Interaction
package/languages/en.yml CHANGED
@@ -90,6 +90,10 @@ aside:
90
90
  avatar: Avatar
91
91
  sticker: Mood sticker
92
92
  newpost: New posts
93
+ card:
94
+ posts: 'Posts:'
95
+ tags: 'Tags:'
96
+ categories: 'Categories:'
93
97
 
94
98
  console:
95
99
  comment_tip: Interaction
@@ -92,6 +92,10 @@ aside:
92
92
  avatar: 头像
93
93
  sticker: 心情贴纸
94
94
  newpost: 最近发布
95
+ card:
96
+ posts: '累计文章数:'
97
+ tags: '标签总数:'
98
+ categories: '分类总数:'
95
99
 
96
100
  console:
97
101
  comment_tip: 互动
@@ -92,6 +92,10 @@ aside:
92
92
  avatar: 头像
93
93
  sticker: 心情贴纸
94
94
  newpost: 最近发布
95
+ card:
96
+ posts: '累計文章數:'
97
+ tags: '標籤總數:'
98
+ categories: '分類總數:'
95
99
 
96
100
  console:
97
101
  comment_tip: 互動
@@ -27,11 +27,11 @@ include ../head/pwa.pug
27
27
 
28
28
  script.
29
29
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.8",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.10",
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
- "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
34
- );
33
+ "padding: 5px 10px;color:white;background:#0084ff;",
34
+ )
35
35
 
36
36
  if theme.extends.head
37
37
  each item in theme.extends.head
@@ -1,7 +1,5 @@
1
1
  .flink#banners
2
2
  include ../widgets/page/links/banner
3
- if theme.moments.angle
4
- include ../widgets/page/moments/angle
5
3
  .flink#article-container
6
4
  each data in site.data.links.links
7
5
  h2= data.class_name + " (" + data.link_list.length + ")"
@@ -1,22 +1,56 @@
1
+ - const {style ,url} = theme.aside.card
1
2
  .card-widget.card-info
2
3
  .card-content
3
- .card-info-avatar.is-center
4
- .author-info__top-group
5
- .author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
6
- .avatar-img-group
7
- img.avatar-img(alt=_p('aside.avatar'), src=theme.aside.card.author.img)
8
- if theme.aside.card.author.sticker
9
- .avatar-sticker
10
- img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
11
- .author-info__description_group
12
- .author-info__description!= theme.aside.card.content
13
- .author-info__description2!= theme.aside.card.content2
14
- .author-info__bottom-group
15
- a.author-info__bottom-group-left(href=url_for(theme.aside.card.url))
16
- .author-info__name= config.author
17
- .author-info__desc!= config.subtitle
18
- .card-info-social-icons.is-center
19
- each value, label in theme.aside.card.information || {}
20
- - var array = value.split('||')
21
- a.social-icon(href=url_for(trim(array[0])), title=label)
22
- i.solitude(class=array[1])
4
+ case style
5
+ when 0
6
+ .card-info-avatar.is-center
7
+ .author-info__top-group
8
+ .author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
9
+ .avatar-img-group
10
+ img.avatar-img(alt=_p('aside.avatar'), src=theme.aside.card.author.img)
11
+ if theme.aside.card.author.sticker
12
+ .avatar-sticker
13
+ img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
14
+ .author-info__description_group
15
+ .author-info__description!= theme.aside.card.content
16
+ .author-info__description2!= theme.aside.card.content2
17
+ .author-info__bottom-group
18
+ a.author-info__bottom-group-left(href=url_for(theme.aside.card.url))
19
+ .author-info__name= config.author
20
+ .author-info__desc!= config.subtitle
21
+ .card-info-social-icons.is-center
22
+ each value, label in theme.aside.card.information || {}
23
+ - var array = value.split('||')
24
+ a.social-icon(href=url_for(trim(array[0])), title=label)
25
+ i.solitude(class=array[1])
26
+ when 1
27
+ .card-info-bg-top
28
+ .is-center
29
+ .author-info__top-group
30
+ .author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
31
+ a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
32
+ .avatar-img
33
+ img(src=theme.aside.card.author.img)
34
+ if theme.aside.card.author.sticker
35
+ .avatar-sticker
36
+ img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
37
+ .card-info__desc_group
38
+ .author-info__name= config.author
39
+ .author-info__desc!= config.subtitle
40
+
41
+ .card-info__data.is-center
42
+ a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
43
+ .length-num= site.posts.length
44
+ .headline= _p('page.archives')
45
+ a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
46
+ .length-num= site.tags.length
47
+ .headline= _p('page.tag')
48
+ a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
49
+ .length-num= site.categories.length
50
+ .headline= _p('page.category')
51
+
52
+ .card-info-social-icons.is-center
53
+ each value, label in theme.aside.card.information || {}
54
+ - var array = value.split('||')
55
+ a.social-icon(href=url_for(trim(array[0])), title=label)
56
+ i.solitude(class=array[1])
@@ -1,8 +1,8 @@
1
1
  - const {copyright} = theme.post.default
2
2
  .post-copyright
3
3
  .post-copyright__author_group
4
- a.post-copyright__author_img(href=url_for("/about/"))
5
- img.post-copyright__author_img_front(src=theme.site.icon)
4
+ a.post-copyright__author_img(href=url_for(copyright.author.url))
5
+ img.post-copyright__author_img_front(src=copyright.author.img || theme.site.icon)
6
6
  .post-copyright__author_name= config.title
7
7
  .post-copyright__author_desc= config.subtitle
8
8
  .post-tools#post-tools
package/layout/page.pug CHANGED
@@ -18,16 +18,14 @@ block content
18
18
  include includes/page/says
19
19
  when 'equipment'
20
20
  include includes/page/equipment
21
- when 'moment'
22
- include includes/page/moment
23
- when 'douban'
24
- include includes/widgets/page/banner
25
- != page.content
26
21
  when 'music'
27
22
  include includes/page/music
28
23
  when 'banner'
29
24
  include includes/widgets/page/banner
30
- include includes/page/default
25
+ if page.container
26
+ include includes/page/default
27
+ else
28
+ != page.content
31
29
  default
32
30
  include includes/page/default
33
31
  if page.comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -37,6 +37,7 @@ hexo.extend.filter.register('before_generate', () => {
37
37
  noSticky: 'about', Sticky: 'allInfo'
38
38
  },
39
39
  card: {
40
+ style: 0,
40
41
  author: {
41
42
  img: '/img/logo.png', sticker: '/img/happy-sticker.png',
42
43
  },
@@ -189,19 +190,6 @@ hexo.extend.filter.register('before_generate', () => {
189
190
  server: 'netease',
190
191
  type: 'playlist',
191
192
  },
192
- moments: {
193
- enable: false,
194
- api: '',
195
- error_img: '/img/logo.png',
196
- sort_rule: 'created',
197
- expire_days: 1,
198
- page_init_number: 10,
199
- page_turning_number: 5,
200
- angle: false,
201
- appjs: 'https://cdn.cbd.int/st-source@1.0.3/js/fcircle.min.js',
202
- bundlejs: 'https://cdn.cbd.int/st-source/js/moment/bundle.min.js',
203
- randompostjs: 'https://cdn.cbd.int/st-source/js/moment/random_post.min.js'
204
- },
205
193
  keyboard: {
206
194
  enable: false,
207
195
  list: []
@@ -1,13 +1,6 @@
1
1
  #aside-content
2
2
  width 300px
3
3
 
4
- > .card-widget:first-child
5
- transition: .3s
6
- border: none
7
- box-shadow: none
8
- background: var(--efu-main)
9
- margin-top: 0
10
-
11
4
  +minWidth900()
12
5
  if hexo-config('aside.position') == 0
13
6
  padding-right 15px
@@ -68,6 +61,74 @@
68
61
  position sticky
69
62
  transition: top .3s ease 0s
70
63
 
64
+ #author-info__sayhi
65
+ text-align center
66
+ width fit-content
67
+ color var(--efu-white)
68
+ background var(--efu-white-op)
69
+ font-size 12px
70
+ padding 2px 8px
71
+ border-radius 12px
72
+ cursor pointer
73
+ user-select none
74
+ transition .3s
75
+ margin auto
76
+ min-width 100px
77
+
78
+ / [data-theme=dark] &
79
+ background #00000015
80
+ color var(--efu-black)
81
+
82
+ &:hover
83
+ color var(--efu-white)
84
+
85
+ &:hover
86
+ background var(--efu-card-bg)
87
+ color var(--efu-main)
88
+ transform scale(1.1)
89
+
90
+ .card-info-social-icons
91
+ margin 0
92
+ display flex
93
+ justify-content flex-start
94
+ flex-direction row
95
+ flex-wrap nowrap
96
+ cursor pointer
97
+
98
+ .social-icon
99
+ margin 0
100
+ margin-left 8px
101
+ color var(--efu-fontcolor)
102
+ font-size 1.4em
103
+ cursor pointer
104
+ display flex
105
+
106
+ i
107
+ transition all .3s ease 0s
108
+ padding 8px
109
+ border-radius 32px
110
+ cursor pointer
111
+ background var(--efu-white-op)
112
+ color var(--efu-card-bg)
113
+ width 40px
114
+ height 40px
115
+ display flex
116
+ align-items center
117
+ justify-content center
118
+
119
+ &:hover
120
+ background var(--efu-white)
121
+ transform scale(1.1)
122
+ color var(--efu-main)
123
+ box-shadow none
124
+
125
+ / [data-theme=dark] &
126
+ background var(--efu-black-op)
127
+
128
+ &:hover
129
+ background-color var(--efu-black)
130
+ color var(--efu-white)
131
+
71
132
  +minWidth900()
72
133
  html.hide-aside .layout
73
134
  -webkit-box-pack: center
@@ -188,269 +249,346 @@
188
249
  .toc-item.active .toc-link .toc-text
189
250
  color: var(--efu-white)
190
251
 
191
- #aside-content
192
- .card-widget
193
- if hexo-config('aside.card.author.sticker')
194
- &:hover
195
- .avatar-sticker
196
- opacity 0
197
- transform scale(0)
198
-
199
- &.card-recent-post
200
- padding .4rem .6rem !important
201
-
202
- &.card-info
203
- padding 0 !important
204
- box-shadow var(--efu-shadow-black)
252
+ if hexo-config('aside.card.style') == 0
253
+ #aside-content
254
+ > .card-widget:first-child
255
+ transition: .3s
256
+ border: none
257
+ box-shadow: none
258
+ background: var(--efu-main)
259
+ margin-top: 0
260
+
261
+ .card-widget
262
+ if hexo-config('aside.card.author.sticker')
263
+ &:hover
264
+ .avatar-sticker
265
+ opacity 0
266
+ transform scale(0)
267
+
268
+ &.card-recent-post
269
+ padding .4rem .6rem !important
270
+
271
+ &.card-info
272
+ padding 0 !important
273
+ box-shadow var(--efu-shadow-black)
274
+
275
+ > div.card-content
276
+ padding 1rem 1.2rem
277
+ min-height 320px
278
+ position relative
279
+
280
+ > .card-widget.card-info
281
+ &:before
282
+ background linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep))
283
+ background-size 400%
284
+ position absolute
285
+ width 100%
286
+ height 100%
287
+ left 0
288
+ top 0
289
+ content ''
290
+ animation gradient 15s ease infinite
205
291
 
206
292
  > div.card-content
207
293
  padding 1rem 1.2rem
208
294
  min-height 320px
209
295
  position relative
210
296
 
211
- > .card-widget.card-info
212
- &:before
213
- background linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep))
214
- background-size 400%
215
- position absolute
216
- width 100%
217
- height 100%
218
- left 0
219
- top 0
220
- content ''
221
- animation gradient 15s ease infinite
297
+ > div.card-info-avatarimg
298
+ overflow hidden
299
+ background var(--efu-yellow)
300
+ transition 1.5s
301
+ min-height 160px
302
+ position relative
303
+ box-shadow var(--efu-shadow-yellow)
222
304
 
223
- > div.card-content
224
- padding 1rem 1.2rem
225
- min-height 320px
226
- position relative
305
+ &:hover img
306
+ transform scale(1.03)
227
307
 
228
- > div.card-info-avatarimg
229
- overflow hidden
230
- background var(--efu-yellow)
231
- transition 1.5s
232
- min-height 160px
233
- position relative
234
- box-shadow var(--efu-shadow-yellow)
308
+ .card-info
309
+ if hexo-config('aside.card.author.sticker')
310
+ .avatar-sticker
311
+ position absolute
312
+ bottom -2px
313
+ right -2px
314
+ width 33px
315
+ height 33px
316
+ line-height 34px
317
+ z-index 0
318
+ display flex
319
+ align-items center
320
+ justify-content center
321
+ transition .3s .2s
322
+ transform scale(1)
323
+ background var(--efu-card-bg)
324
+ border-radius 50%
235
325
 
236
- &:hover img
237
- transform scale(1.03)
326
+ img
327
+ width 26px
328
+ height 26px
238
329
 
239
- .card-info
240
- if hexo-config('aside.card.author.sticker')
241
- .avatar-sticker
242
- position absolute
243
- bottom -2px
244
- right -2px
245
- width 33px
246
- height 33px
247
- line-height 34px
248
- z-index 0
330
+ ../ :hover .avatar-sticker
331
+ opacity 0
332
+ transform scale(0)
333
+
334
+ .author-info__desc
335
+ font-size 12px
336
+ color var(--efu-card-bg)
337
+ opacity .6
338
+ line-height 1
339
+
340
+ .card-info-avatar.is-center
341
+ flex-direction column
249
342
  display flex
250
- align-items center
251
- justify-content center
252
- transition .3s .2s
253
- transform scale(1)
254
- background var(--efu-card-bg)
255
- border-radius 50%
343
+ align-items flex-start
256
344
 
257
- img
258
- width 26px
259
- height 26px
345
+ .avatar-img-group
346
+ width 118px
347
+ height 118px
348
+ right calc(50% - 59px)
349
+ top 90px
350
+ border-radius 500px
351
+ position absolute
352
+ transition cubic-bezier(.69, .39, 0, 1.21) .3s
353
+ transform-origin bottom
354
+ border 5px solid var(--efu-card-bg)
260
355
 
261
- ../ :hover .avatar-sticker
356
+ ../ :hover .avatar-img-group
262
357
  opacity 0
263
358
  transform scale(0)
264
359
 
265
- .author-info__desc
266
- font-size 12px
267
- color var(--efu-card-bg)
268
- opacity .6
269
- line-height 1
270
-
271
- #author-info__sayhi
272
- text-align center
273
- width fit-content
274
- color var(--efu-white)
275
- background var(--efu-white-op)
276
- font-size 12px
277
- padding 2px 8px
278
- border-radius 12px
279
- cursor pointer
280
- user-select none
281
- transition .3s
282
- margin auto
283
- min-width 100px
284
-
285
- / [data-theme=dark] &
286
- background #00000015
287
- color var(--efu-black)
288
-
289
- &:hover
290
- color var(--efu-white)
291
-
292
- &:hover
293
- background var(--efu-card-bg)
294
- color var(--efu-main)
295
- transform scale(1.1)
360
+ .author-info__name
361
+ text-align left
362
+ font-weight 700
363
+ color var(--efu-card-bg)
364
+ font-size 20px
365
+ line-height 1
366
+ margin-bottom 5px
296
367
 
297
- .card-info-avatar.is-center
298
- flex-direction column
299
- display flex
300
- align-items flex-start
301
-
302
- .avatar-img-group
303
- width 118px
304
- height 118px
305
- right calc(50% - 59px)
306
- top 90px
307
- border-radius 500px
308
- position absolute
309
- transition cubic-bezier(.69, .39, 0, 1.21) .3s
310
- transform-origin bottom
311
- border 5px solid var(--efu-card-bg)
368
+ .author-info__top-group
369
+ display flex
370
+ height 28px
371
+ width 100%
312
372
 
313
- ../ :hover .avatar-img-group
373
+ .author-info__description_group
374
+ position absolute
375
+ top 50px
376
+ width 100%
377
+ left 0
378
+ padding 1.2rem
314
379
  opacity 0
315
- transform scale(0)
380
+ transition .3s
316
381
 
317
- .author-info__name
318
- text-align left
319
- font-weight 700
320
- color var(--efu-card-bg)
321
- font-size 20px
322
- line-height 1
323
- margin-bottom 5px
382
+ ../ :hover .author-info__description_group
383
+ opacity 1
324
384
 
325
- .author-info__top-group
326
- display flex
327
- height 28px
328
- width 100%
385
+ .author-info__description
386
+ line-height 1.38
387
+ margin .3rem 0
388
+ text-align left
389
+ color var(--efu-card-bg)
329
390
 
330
- .author-info__description_group
331
- position absolute
332
- top 50px
333
- width 100%
334
- left 0
335
- padding 1.2rem
336
- opacity 0
337
- transition .3s
391
+ b
392
+ color var(--efu-card-bg)
338
393
 
339
- ../ :hover .author-info__description_group
340
- opacity 1
394
+ .author-info__description2
395
+ line-height 1.38
396
+ margin .3rem 0
397
+ text-align left
398
+ width 100%
399
+ z-index 2
400
+ color var(--efu-card-bg)
341
401
 
342
- .author-info__description
343
- line-height 1.38
344
- margin .3rem 0
345
- text-align left
346
- color var(--efu-card-bg)
402
+ b
403
+ color var(--efu-card-bg)
347
404
 
348
- b
349
- color var(--efu-card-bg)
405
+ .author-info__bottom-group
406
+ display flex
407
+ justify-content space-between
408
+ position absolute
409
+ padding 1.2rem
410
+ width 100%
411
+ left 0
412
+ bottom 0
413
+ align-items center
350
414
 
351
- .author-info__description2
352
- line-height 1.38
353
- margin .3rem 0
354
- text-align left
415
+ a.author-info__bottom-group-left:hover
416
+ opacity .8
417
+
418
+ .card-info-data
419
+ display table
420
+ margin .7rem 0 .2rem
355
421
  width 100%
356
- z-index 2
357
- color var(--efu-card-bg)
422
+ table-layout fixed
358
423
 
359
- b
360
- color var(--efu-card-bg)
424
+ > div:nth-child(0) > a > div.headline
425
+ font-weight 700
361
426
 
362
- .author-info__bottom-group
363
- display flex
364
- justify-content space-between
365
- position absolute
366
- padding 1.2rem
367
- width 100%
368
- left 0
369
- bottom 0
370
- align-items center
427
+ > .card-info-data-item
428
+ display table-cell
429
+ transition .3s
371
430
 
372
- a.author-info__bottom-group-left:hover
373
- opacity .8
431
+ a
432
+ .headline
433
+ color var(--efu-fontcolor)
434
+ font-size 1em
374
435
 
375
- .card-info-data
376
- display table
377
- margin .7rem 0 .2rem
378
- width 100%
379
- table-layout fixed
436
+ .length-num
437
+ margin-top -.3rem
438
+ color var(--efu-fontcolor)
439
+ font-size 1.4em
380
440
 
381
- > div:nth-child(0) > a > div.headline
382
- font-weight 700
441
+ &:hover
442
+ background #000
443
+ border-radius 5px
383
444
 
384
- > .card-info-data-item
385
- display table-cell
445
+ img.avatar-img
446
+ width 108px
447
+ height 108px
448
+ object-fit cover
449
+ right 0
450
+ top 0
451
+ border-radius 500px
452
+ position absolute
453
+ opacity 1
386
454
  transition .3s
387
455
 
388
- a
389
- .headline
390
- color var(--efu-fontcolor)
391
- font-size 1em
456
+ if hexo-config('aside.card.style') == 1
457
+ #aside-content
458
+ .card-widget.card-info
459
+ min-height 340px
460
+ padding 0
461
+ margin-top 0
392
462
 
393
- .length-num
394
- margin-top -.3rem
395
- color var(--text-highlight-color)
396
- font-size 1.4em
463
+ .author-info__top-group
464
+ margin-top 20px
465
+ display flex
466
+ height 28px
467
+ width 100%
397
468
 
398
- &:hover
399
- background #000
400
- border-radius 5px
469
+ .card-info-bg-top
470
+ min-height 140px
471
+ background: linear-gradient(-25deg, var(--efu-main), var(--efu-main-op-deep), var(--efu-main), var(--efu-main-op-deep))
472
+ background-size: 400%
473
+
474
+ .card-info-avatar
475
+ width 114px
476
+ height 114px
477
+ right calc(50% - 57px)
478
+ top 75px
479
+ border-radius 500px
480
+ position absolute
481
+ transition cubic-bezier(.69, .39, 0, 1.21) .3s
482
+ transform-origin bottom
483
+ border 7px solid var(--efu-card-bg)
401
484
 
402
- .card-info-social-icons
403
- margin 0
404
- display flex
405
- justify-content flex-start
406
- flex-direction row
407
- flex-wrap nowrap
408
- cursor pointer
485
+ .avatar-img
486
+ overflow hidden
487
+ border-radius 500px
488
+ width 100px
489
+ cursor pointer
490
+ height 100px
409
491
 
410
- .social-icon
411
- margin 0
412
- margin-left 8px
413
- color var(--efu-fontcolor)
414
- font-size 1.4em
415
- cursor pointer
416
- display flex
492
+ img
493
+ object-fit cover
494
+ width 100%
495
+ height 100%
496
+ transition .3s
497
+
498
+ &:hover
499
+ transform: scale(1.3)
500
+
501
+ if hexo-config('aside.card.author.sticker')
502
+ .avatar-sticker
503
+ position absolute
504
+ bottom -2px
505
+ right -2px
506
+ width 33px
507
+ height 33px
508
+ line-height 34px
509
+ z-index 0
510
+ display flex
511
+ align-items center
512
+ justify-content center
513
+ transition .3s .2s
514
+ transform scale(1)
515
+ background var(--efu-card-bg)
516
+ border-radius 50%
517
+
518
+ img
519
+ width 26px
520
+ height 26px
521
+
522
+ .card-info-social-icons
523
+ width 100%
524
+ justify-content center
525
+ padding 10px 20px
417
526
 
418
- i
419
- transition all .3s ease 0s
420
- padding 8px
421
- border-radius 32px
422
- cursor pointer
423
- background var(--efu-white-op)
424
- color var(--efu-card-bg)
425
- width 40px
426
- height 40px
527
+ i
528
+ background 0 0
529
+ color var(--efu-fontcolor)
530
+
531
+ &:hover
532
+ color var(--efu-theme)
533
+
534
+ .card-info__desc_group
427
535
  display flex
428
536
  align-items center
429
- justify-content center
430
-
431
- &:hover
432
- background var(--efu-white)
433
- transform scale(1.1)
434
- color var(--efu-main)
435
- box-shadow none
537
+ flex-direction column
436
538
 
437
- / [data-theme=dark] &
438
- background var(--efu-black-op)
539
+ .author-info__name
540
+ margin-top 60px
541
+ text-align center
542
+ font-weight 700
543
+ color var(--efu-font-color)
544
+ font-size 20px
545
+ line-height 1
546
+ margin-bottom 5px
439
547
 
440
- &:hover
441
- background-color var(--efu-black)
442
- color var(--efu-white)
548
+ .author-info__desc
549
+ font-size 14px
550
+ color var(--efu-font-color)
551
+ line-height 2
443
552
 
444
- img.avatar-img
445
- width 108px
446
- height 108px
447
- object-fit cover
448
- right 0
449
- top 0
450
- border-radius 500px
451
- position absolute
452
- opacity 1
453
- transition .3s
553
+ .card-info__data
554
+ display table
555
+ width 100%
556
+ table-layout fixed
557
+ margin 12px 0 4px
558
+ padding 0 20px
559
+
560
+ a
561
+ position relative
562
+ display table-cell
563
+
564
+ &:hover
565
+ transition all .3s
566
+ color var(--efu-theme)
567
+
568
+ div
569
+ transition all .3s
570
+ color var(--efu-theme)
571
+
572
+ &:not(:last-child):after
573
+ opacity: .3
574
+ position: absolute
575
+ top: 6px
576
+ right: 0
577
+ content: ""
578
+ width: 1px
579
+ height: 40px
580
+ background: var(--efu-fontcolor)
581
+
582
+ .length-num
583
+ margin-top: -.32em
584
+ color: var(--efu-fontcolor)
585
+ font-size: 1.4em
586
+ line-height: 1.5
587
+
588
+ .headline
589
+ color: var(--efu-font-color)
590
+ font-size: 1em
591
+ line-height: 1.5
454
592
 
455
593
  [data-theme=dark] #aside-content
456
594
  > .card-widget.card-info
@@ -41,13 +41,13 @@
41
41
  font-weight 400
42
42
 
43
43
  .site-page:hover
44
- background var(--efu-main)!important
44
+ background var(--efu-main) !important
45
45
  color var(--efu-white)
46
46
 
47
47
  .site-page span:hover
48
48
  color var(--efu-white)
49
49
 
50
- .site-data
50
+ / .site-data
51
51
  display flex
52
52
  width 100%
53
53
  justify-content flex-start
@@ -6,9 +6,6 @@
6
6
 
7
7
  @import "error.styl"
8
8
 
9
- if hexo-config('moments.enable')
10
- @import "moment.styl"
11
-
12
9
  if hexo-config('says.enable')
13
10
  @import "says.styl"
14
11
 
@@ -12,6 +12,7 @@
12
12
  +maxWidth768()
13
13
  box-shadow var(--efu-shadow-border)
14
14
  padding: 1rem 1.3rem;
15
+
15
16
  .post-copyright__author_group
16
17
  .post-copyright__author_img
17
18
  width 64px
@@ -34,6 +35,9 @@
34
35
  bottom 0
35
36
  left 0
36
37
 
38
+ &:hover
39
+ transform scale(1.3)
40
+
37
41
  .post-copyright__author_name
38
42
  text-align center
39
43
  font-size 20px
@@ -37,7 +37,7 @@ function img2color(src) {
37
37
  localStorage.setItem('Solitude', JSON.stringify(cacheGroup));
38
38
  })
39
39
  .catch(error => {
40
- console.error('请检查API是否正常!\n' + error);
40
+ console.error('API:error:', error);
41
41
  });
42
42
  }
43
43
 
@@ -73,26 +73,4 @@ function setThemeColors(value, r = null, g = null, b = null) {
73
73
  document.documentElement.style.setProperty('--efu-main-none', 'var(--efu-theme-none)');
74
74
  initThemeColor();
75
75
  }
76
- }
77
-
78
- function initThemeColor() {
79
- const currentTop = window.scrollY || document.documentElement.scrollTop;
80
- let themeColor;
81
- if (currentTop > 0) {
82
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-card-bg');
83
- } else if (PAGE_CONFIG.is_post) {
84
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-main');
85
- } else {
86
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-background');
87
- }
88
- changeThemeColor(themeColor);
89
- }
90
-
91
- function changeThemeColor(color) {
92
- if (null !== document.querySelector('meta[name="theme-color"]') && (document.querySelector('meta[name="theme-color"]').setAttribute("content", color),
93
- document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]').setAttribute("content", color)),
94
- window.matchMedia("(display-mode: standalone)").matches) {
95
- const t = document.body;
96
- t ? t.style.backgroundColor = color : console.error("document.body不存在")
97
- }
98
76
  }
@@ -29,7 +29,7 @@ const localColor = (path) => {
29
29
  setThemeColors(value, r, g, b);
30
30
  };
31
31
  img.onerror = function () {
32
- console.error('图片加载失败');
32
+ console.error('Image Error');
33
33
  };
34
34
  img.src = path;
35
35
  }
@@ -138,26 +138,4 @@ function setThemeColors(value, r = null, g = null, b = null) {
138
138
  document.documentElement.style.setProperty('--efu-main-none', 'var(--efu-theme-none)');
139
139
  initThemeColor();
140
140
  }
141
- }
142
-
143
- function initThemeColor() {
144
- const currentTop = window.scrollY || document.documentElement.scrollTop;
145
- let themeColor;
146
- if (currentTop > 0) {
147
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-card-bg');
148
- } else if (PAGE_CONFIG.is_post) {
149
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-main');
150
- } else {
151
- themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-background');
152
- }
153
- changeThemeColor(themeColor);
154
- }
155
-
156
- function changeThemeColor(color) {
157
- if (null !== document.querySelector('meta[name="theme-color"]') && (document.querySelector('meta[name="theme-color"]').setAttribute("content", color),
158
- document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]').setAttribute("content", color)),
159
- window.matchMedia("(display-mode: standalone)").matches) {
160
- const t = document.body;
161
- t ? t.style.backgroundColor = color : console.error("document.body not found.")
162
- }
163
141
  }
package/source/js/main.js CHANGED
@@ -137,6 +137,28 @@ const initObserver = () => {
137
137
  }
138
138
  }
139
139
 
140
+ function initThemeColor() {
141
+ const currentTop = window.scrollY || document.documentElement.scrollTop;
142
+ let themeColor;
143
+ if (currentTop > 0) {
144
+ themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-card-bg');
145
+ } else if (PAGE_CONFIG.is_post) {
146
+ themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-main');
147
+ } else {
148
+ themeColor = getComputedStyle(document.documentElement).getPropertyValue('--efu-background');
149
+ }
150
+ changeThemeColor(themeColor);
151
+ }
152
+
153
+ function changeThemeColor(color) {
154
+ if (null !== document.querySelector('meta[name="theme-color"]') && (document.querySelector('meta[name="theme-color"]').setAttribute("content", color),
155
+ document.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]').setAttribute("content", color)),
156
+ window.matchMedia("(display-mode: standalone)").matches) {
157
+ const t = document.body;
158
+ t ? t.style.backgroundColor = color : console.error("document.body不存在")
159
+ }
160
+ }
161
+
140
162
  class toc {
141
163
  static init() {
142
164
  const tocContainer = document.getElementById('card-toc')
@@ -1,30 +0,0 @@
1
- name: Node.js Package
2
- on:
3
- release:
4
- types: [created]
5
-
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v4
11
- - uses: actions/setup-node@v4
12
- with:
13
- node-version: 16
14
- - run: npm test
15
-
16
- publish-gpr:
17
- needs: build
18
- runs-on: ubuntu-latest
19
- permissions:
20
- packages: write
21
- contents: read
22
- steps:
23
- - uses: actions/checkout@v4
24
- - uses: actions/setup-node@v4
25
- with:
26
- node-version: 16
27
- registry-url: https://npm.pkg.github.com/
28
- - run: npm publish
29
- env:
30
- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -1,28 +0,0 @@
1
- include ../widgets/page/banner
2
- if theme.moments.angle
3
- include ../widgets/page/moments/angle
4
-
5
- .title-h2-a
6
- .title-h2-a-left
7
- h2(style="padding-top: 0;margin:0.6rem 0 0.6rem;") 🐟 鱼塘
8
- .title-h2-a-right
9
- span 以下内容自动生成,未经过审核
10
-
11
- div#hexo-circle-of-friends-root
12
- script.
13
- let UserConfig = {
14
- // 填写你的api地址
15
- private_api_url: '!{theme.moments.api}',
16
- // 默认加载文章数
17
- page_init_number: !{theme.moments.page_init_number},
18
- // 点击加载更多时,一次最多加载几篇文章,默认10
19
- page_turning_number: !{theme.moments.page_turning_number},
20
- // 头像加载失败时,默认头像地址
21
- error_img: '!{theme.moments.error_img}',
22
- // 进入页面时第一次的排序规则
23
- sort_rule: '!{theme.moments.sort_rule}',
24
- // 本地文章缓存数据过期时间(天)
25
- expire_days: !{theme.moments.expire_days},
26
- }
27
- script(src=url_for(theme.moments.appjs))
28
- script(src=url_for(theme.moments.bundlejs))
@@ -1,19 +0,0 @@
1
- .title-h2-a
2
- .title-h2-a-left
3
- h2(style="padding-top: 0;margin:0.6rem 0 0.6rem;") 🎣 钓鱼
4
- a#random-post-start(href="javascript:fetchRandomPost();", style="transition-duration: 0.3s; transform: rotate(63000deg); opacity: 1;", data-pjax-state="")
5
- i.solitude.st-restart-line
6
- .title-h2-a-right
7
- if page.type !== 'links'
8
- a.random-post-all(href=url_for("/links/"), data-pjax-state="") 全部友链
9
-
10
- #random-post
11
-
12
- script.
13
- var fdata = {
14
- apiurl: "#{theme.moments.api}",
15
- defaultFish: 100,
16
- hungryFish: 100,
17
- }
18
-
19
- script(src=url_for(theme.moments.randompostjs))
@@ -1,180 +0,0 @@
1
- #random-post
2
- min-height 32px
3
- background var(--efu-card-bg)
4
- border var(--style-border-always)
5
- box-shadow var(--efu-shadow-border)
6
- padding 20px 30px
7
- border-radius 12px
8
- margin-top 8px
9
-
10
- .random-friends-post
11
- text-decoration none
12
- border-bottom 2px solid var(--efu-lighttext)
13
- color var(--efu-fontcolor)
14
- font-weight 700
15
- padding 0 4px
16
-
17
- &:hover
18
- text-decoration none
19
- border-bottom 2px solid var(--efu-none)
20
- color var(--efu-white)
21
- background var(--efu-main)
22
- border-radius 4px
23
- box-shadow var(--efu-shadow-main)
24
-
25
- .random-post-start
26
- transition-duration .3s
27
-
28
- &:hover
29
- color var(--efu-hovertext)
30
-
31
- .moments-list
32
- display flex
33
- flex-direction column
34
-
35
- .article-sort-item-info
36
- display flex
37
- flex-direction column
38
-
39
- .article-sort-item-title
40
- color var(--efu-lighttext)
41
-
42
- &:hover
43
- color var(--efu-hovertext)
44
-
45
- #friend_link_moments
46
- border none
47
-
48
- .moments-article-img
49
- height 100%
50
- margin 0
51
-
52
- .tab-item-content
53
- #moments_container
54
- .moments-item
55
- a
56
- border-bottom none
57
- padding 0
58
- margin-right auto
59
- width auto
60
-
61
- &:hover
62
- background none
63
- color var(--efu-lighttext)
64
- box-shadow none
65
-
66
- h2
67
- display none
68
-
69
- #friend_moments_list
70
- .moments-sort-item
71
- margin 1rem 0
72
-
73
- .moments-sort-item-img
74
- border-radius 12px
75
-
76
- .moments-item-time
77
- order 1
78
-
79
- .moments-sort-item-title
80
- color: var(--efu-lighttext)
81
- border-bottom none
82
- padding 0
83
-
84
- &:hover
85
- color var(--efu-hovertext)
86
- background 0 0
87
- box-shadow none
88
-
89
- .moments_load_button
90
- color var(--efu-fontcolor)
91
- background var(--efu-card-btn-bg)
92
- padding 12px 16px
93
- border-radius 12px
94
- transition .3s
95
- width 100%
96
- margin-top 1rem
97
- margin-bottom 1rem
98
- border 0
99
-
100
- &:hover
101
- color var(--efu-white)
102
- background var(--efu-main)
103
- transition .3s
104
-
105
- .moments-item-title
106
- color var(--efu-lighttext)
107
- font-size 1rem
108
- order 0
109
- width 100%
110
- font-weight 700
111
- -webkit-line-clamp 1
112
- overflow hidden
113
-
114
- .moments-item-info
115
- display flex
116
- flex-direction column
117
-
118
- .moments_post_time
119
- display none
120
-
121
- i
122
- margin-right 8px
123
-
124
- .moments-item-title
125
- font-weight 700
126
-
127
- .moments_post_info_number
128
- float right
129
-
130
- .moments-item-img
131
- width 60px
132
- height 60px
133
-
134
- img
135
- border-radius 80px
136
- width 80px
137
- height 80px
138
- overflow hidden
139
-
140
- .moments-item
141
- margin-left 0
142
- box-shadow none
143
-
144
- #hexo-circle-of-friends-root
145
- margin 0 -8px
146
-
147
- #cf-container
148
- a
149
- width fit-content
150
-
151
- .cf-article .cf-img-avatar
152
- border-radius 50% !important
153
- right -30px!important
154
- bottom -30px!important
155
-
156
- #page
157
- .title-h2-a
158
- display flex
159
- align-items center
160
- justify-content space-between
161
- margin-top .5rem
162
-
163
- a
164
- margin-left .5rem
165
- color var(--efu-secondtext)
166
- font-weight 700
167
-
168
- &:hover
169
- color var(--efu-main)
170
-
171
- .title-h2-a-left
172
- display flex
173
- align-items center
174
-
175
- h2
176
- margin 0
177
-
178
- .title-h2-a-right
179
- font-size 14px
180
- color var(--efu-secondtext)