hexo-theme-solitude 1.4.0 → 1.4.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/_config.yml CHANGED
@@ -404,7 +404,7 @@ aside:
404
404
  errorpage:
405
405
  # 图片
406
406
  # image
407
- img: https://npm.elemecdn.com/wzheo-absolute@1.0.3/image/source/404.png
407
+ img: https://bu.dusays.com/2023/03/03/6401a7906aa4a.gif
408
408
  # 文字
409
409
  # text
410
410
  text: =awa= 页面走丢了
@@ -412,10 +412,6 @@ errorpage:
412
412
  # Recommended article list
413
413
  recommendList: true
414
414
 
415
- # 关于页
416
- # about page
417
- about: false
418
-
419
415
  # 即刻说说页
420
416
  # jike says page
421
417
  # 前置要求:需配置即刻说说页面
@@ -430,8 +426,8 @@ says:
430
426
  # 1:张洪heo样式 / 2:Leonus样式
431
427
  # 1: Zhang Hong heo style / 2: Leonus style
432
428
  style: 1
433
- # 即刻短文数量(条)。建议范围:1 ~ 999,当数量为-1时,将显示全部。
434
- # Number of immediate short articles (pieces). Suggested range: 1~999, when the quantity is -1, all will be displayed.
429
+ # 即刻短文仅展示前n条
430
+ # Jike short text only shows the first n
435
431
  strip: 30
436
432
  # 模式选择。local:本地静态 / json:动态json / memos:动态Memos
437
433
  # Mode selection. Local: local static/JSON: dynamic JSON/memory: dynamic Memos
@@ -832,11 +828,11 @@ pwa:
832
828
  enable: false
833
829
  manifest: /manifest.json # manifest.json 文件路径
834
830
  theme_color: '#ffffff' # 主题颜色
835
- mask_icon: https://cdn.cbd.int/solitude-source@1.0.3/img/pwa/180.png # 遮罩图标
836
- apple_touch_icon: https://cdn.cbd.int/solitude-source@1.0.3/img/pwa/180.png # 苹果触摸图标
837
- bookmark_icon: https://cdn.cbd.int/solitude-source@1.0.3/img/pwa/180.png # 书签图标
838
- favicon_32_32: https://cdn.cbd.int/solitude-source@1.0.3/img/pwa/32.png # 32x32图标
839
- favicon_16_16: https://cdn.cbd.int/solitude-source@1.0.3/img/pwa/16.png # 16x16图标
831
+ mask_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 遮罩图标
832
+ apple_touch_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 苹果触摸图标
833
+ bookmark_icon: https://cdn.cbd.int/solitude-source/img/pwa/180.png # 书签图标
834
+ favicon_32_32: https://cdn.cbd.int/solitude-source/img/pwa/32.png # 32x32图标
835
+ favicon_16_16: https://cdn.cbd.int/solitude-source/img/pwa/16.png # 16x16图标
840
836
 
841
837
  # CDN
842
838
  # Don't modify the following settings unless you know how they work
@@ -858,9 +854,9 @@ CDN:
858
854
  custom_format: https://cdn.staticfile.org/${cdnjs_name}/${version}/${min_cdnjs_file}
859
855
 
860
856
  option:
861
- scoicon_css: https://cdn.cbd.int/solitude-source@1.0.3/icon/scoicon.min.css
862
- waterfall: https://cdn.cbd.int/solitude-source@1.0.3/js/waterfall.min.js
863
- view_image: https://cdn.cbd.int/solitude-source@1.0.3/js/view-image.min.js
857
+ scoicon_css: https://cdn.cbd.int/solitude-source/icon/scoicon.min.css
858
+ waterfall: https://cdn.cbd.int/solitude-source/js/waterfall.min.js
859
+ view_image: https://cdn.cbd.int/solitude-source/js/view-image.min.js
864
860
  # algolia_search:
865
861
  # instantsearch:
866
862
  # pjax:
@@ -19,7 +19,7 @@ page:
19
19
  tags: All tags
20
20
  categories: All categories
21
21
  archives: Archives
22
- echarts: Echarts
22
+ 404: Page not found
23
23
 
24
24
  home:
25
25
  bannertext: Just browsing
@@ -71,7 +71,7 @@ search:
71
71
 
72
72
  head:
73
73
  noscript: Please enable JavaScript to view the site
74
- console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/DuoSco/Hexo-theme-solitude | Version: v1.4.0 😄'
74
+ console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/DuoSco/Hexo-theme-solitude | Version: v1.4.1 😄'
75
75
 
76
76
  aside:
77
77
  postcount: 'Posts :'
@@ -19,7 +19,7 @@ page:
19
19
  tags: 全部标签
20
20
  categories: 全部分类
21
21
  archives: 文章
22
- echarts: 博客统计
22
+ 404: 页面没有找到
23
23
 
24
24
  nav:
25
25
  site_name_title: 返回博客主页
@@ -70,7 +70,7 @@ search:
70
70
 
71
71
  head:
72
72
  noscript: 开启JavaScript才能访问本站哦~
73
- console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/DuoSco/Hexo-theme-solitude | 版本:v1.4.0 😄'
73
+ console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/DuoSco/Hexo-theme-solitude | 版本:v1.4.1 😄'
74
74
 
75
75
  aside:
76
76
  postcount: '文章总数 :'
package/layout/404.pug CHANGED
@@ -14,7 +14,7 @@ block content
14
14
  if theme.errorpage.recommendList
15
15
  .aside-list
16
16
  .aside-list-group
17
- each post, index in site.posts.sort('-date').data
17
+ each post, index in site.posts.sort('-date').data.slice(0, 6)
18
18
  if index >= 5
19
19
  break
20
20
  .aside-list-item
@@ -3,7 +3,7 @@
3
3
  - else if (is_archive()) title = _p('page.archives') + (page.year || "")
4
4
  - else if (is_tag()) title = _p('page.tag')+': ' + page.tag
5
5
  - else if (is_category()) title = _p('page.category') +': ' + page.category
6
- - else if (page.type === '404') title = '404'+': ' + theme.errorpage.text
6
+ - else if (page.type === '404') title = _p('page.404')
7
7
  - else if (page.type === 'tags') title = _p('page.tags')
8
8
  - else if (page.type === 'categories') title = _p('page.categories')
9
9
  - else if (is_post() || is_page()) title = page.title
@@ -1,4 +1,4 @@
1
- if theme.about && site.data.about
1
+ if site.data.about
2
2
  #about-page
3
3
  include ../widgets/page/about/authorinfo
4
4
  include ../widgets/page/about/contentinfo
@@ -2,11 +2,10 @@ case theme.says.style
2
2
  when 1
3
3
  script.
4
4
  !async function () {
5
- let say_strip = !{theme.says.strip}
6
5
  await fetch('!{url_for(theme.says.mode_link)}')
7
6
  .then(res => res.json())
8
7
  .then(res => {
9
- let list = say_strip === -1 || say_strip >= res.length ? res : res.slice(0, say_strip)
8
+ let list = res.slice(0, !{theme.says.strip})
10
9
  let aplayer = null
11
10
  let video = null
12
11
  let imageBox = null
@@ -43,11 +42,10 @@ case theme.says.style
43
42
  when 2
44
43
  script.
45
44
  !async function () {
46
- let say_strip = !{theme.says.strip}
47
45
  await fetch('!{url_for(theme.says.mode_link)}')
48
46
  .then(res => res.json())
49
47
  .then(res => {
50
- let list = say_strip === -1 || say_strip >= res.length ? res : res.slice(0, say_strip)
48
+ let list = res.slice(0, !{theme.says.strip})
51
49
  let aplayer = null
52
50
  let video = null
53
51
  let imageBox = null
@@ -1,8 +1,4 @@
1
- if theme.says.strip === -1
2
- - var limitedList = site.data.essay.essay_list
3
- else
4
- - var limitedList = site.data.essay.essay_list.slice(0, theme.says.strip)
5
- each item in limitedList
1
+ each item in site.data.essay.essay_list.slice(0, theme.says.strip)
6
2
  li.item
7
3
  if theme.says.style === 2
8
4
  .meta
@@ -45,4 +41,4 @@ each item in limitedList
45
41
  | 链接
46
42
  if item.content
47
43
  a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
48
- i.scoicon.sco-chat-fill(style="font-size: 1rem;")
44
+ i.scoicon.sco-chat-fill
@@ -2,7 +2,6 @@ case theme.says.style
2
2
  when 1
3
3
  script.
4
4
  !async function () {
5
- let say_strip = !{theme.says.strip};
6
5
  let aplayerRegex = /{aplayer,(.*?),(.*?)}/g;
7
6
  let linkRegex = /(?<!\!)\[([^\]]*)\]\(([^\)]*)\)/g;
8
7
  let bilibiliRegex = /{bilibili,(.*?)}/g;
@@ -13,7 +12,7 @@ case theme.says.style
13
12
  await fetch("!{url_for(theme.says.mode_link)}")
14
13
  .then(res => res.json())
15
14
  .then(data => {
16
- let list = say_strip === -1 || say_strip >= data.length ? data : data.slice(0, say_strip);
15
+ let list = data.slice(0, !{theme.says.strip});
17
16
  let aplayer = null;
18
17
  let video = null;
19
18
  let imageBox = null;
@@ -59,7 +58,6 @@ case theme.says.style
59
58
  when 2
60
59
  script.
61
60
  !async function () {
62
- let say_strip = !{theme.says.strip};
63
61
  let aplayerRegex = /{aplayer,(.*?),(.*?)}/g;
64
62
  let bilibiliRegex = /{bilibili,(.*?)}/g;
65
63
  let playerRegex = /{player,(.*?)}/g;
@@ -69,7 +67,7 @@ case theme.says.style
69
67
  await fetch("!{url_for(theme.says.mode_link)}")
70
68
  .then(res => res.json())
71
69
  .then(data => {
72
- let list = say_strip === -1 || say_strip >= data.length ? data : data.slice(0, say_strip);
70
+ let list = data.slice(0, !{theme.says.strip})
73
71
  let aplayer = null;
74
72
  let video = null;
75
73
  let imageBox = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the DuoSco team",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -295,4 +295,9 @@ table thead
295
295
  background var(--sco-secondbg)
296
296
 
297
297
  b, strong
298
- color var(--sco-lighttext)
298
+ color var(--sco-lighttext)
299
+
300
+ .button--animated
301
+ border-radius 8px
302
+ transition .3s
303
+ position relative
@@ -0,0 +1,94 @@
1
+ #about-page
2
+ .author-info
3
+ display flex
4
+ align-items center
5
+ margin 0 0 16px 0
6
+
7
+ .author-tag-left
8
+ display flex
9
+ flex-direction column
10
+ align-items flex-end
11
+
12
+ .author-tag
13
+ &:first-child,
14
+ &:last-child
15
+ margin-right -16px
16
+
17
+ .author-tag-right
18
+ display flex
19
+ flex-direction column
20
+ align-items flex-start
21
+
22
+ .author-tag
23
+ &:first-child,
24
+ &:last-child
25
+ margin-left -16px
26
+
27
+ +maxWidth768()
28
+ .author-tag-left, .author-tag-right
29
+ display none
30
+
31
+ .author-tag
32
+ transform translate(0, -4px)
33
+ padding 1px 8px
34
+ background var(--sco-card-bg)
35
+ border var(--style-border-always)
36
+ border-radius 40px
37
+ margin-top 6px
38
+ font-size 14px
39
+ font-weight 700
40
+ box-shadow var(--sco-shadow-lightblack)
41
+ animation 6s ease-in-out 0s infinite normal none running floating
42
+
43
+ &:nth-child(1)
44
+ animation-delay 0s
45
+
46
+ &:nth-child(2)
47
+ animation-delay .6s
48
+
49
+ &:nth-child(3)
50
+ animation-delay 1.2s
51
+
52
+ &:nth-child(4)
53
+ animation-delay 1.8s
54
+
55
+ .author-img
56
+ margin 0 30px
57
+ border-radius 50%
58
+ width 180px
59
+ height 180px
60
+ position relative
61
+ background var(--sco-secondbg)
62
+ user-select none
63
+ transition .3s
64
+
65
+ &:hover
66
+ transform scale(1.1)
67
+
68
+ +maxWidth768()
69
+ width 120px
70
+ height 120px
71
+
72
+ &::before
73
+ bottom -5px
74
+ right -5px
75
+
76
+ img
77
+ border-radius 200px
78
+
79
+ &::before
80
+ content ''
81
+ -webkit-transition 1s
82
+ -moz-transition 1s
83
+ -o-transition 1s
84
+ -ms-transition 1s
85
+ transition 1s
86
+ width 30px
87
+ height 30px
88
+ background var(--sco-green)
89
+ position absolute
90
+ border-radius 50%
91
+ border 5px solid var(--sco-background)
92
+ bottom 5px
93
+ right 10px
94
+ z-index 2
@@ -0,0 +1,34 @@
1
+ #about-page
2
+ .author-content-item.buff
3
+ font-size 36px
4
+ font-weight 700
5
+ line-height 1.1
6
+ display flex
7
+ align-items flex-start
8
+ flex-direction column
9
+ justify-content center
10
+ background linear-gradient(120deg, #ff27e8 0, #ff8000 100%)
11
+ color var(--sco-white)
12
+ background-size 200%
13
+ animation gradient 15s ease infinite
14
+ min-height 200px
15
+ height fit-content
16
+ width 59%
17
+
18
+ .card-content
19
+ display flex
20
+ flex-direction column
21
+ justify-content center
22
+
23
+ .buff-title
24
+ display flex
25
+ flex-direction column
26
+
27
+ span:first-child
28
+ opacity 0.6
29
+ margin-bottom 8px
30
+
31
+ .title1
32
+ opacity .8
33
+ font-size .6rem
34
+ margin-bottom .5rem
@@ -0,0 +1,27 @@
1
+ #about-page
2
+ .author-content-item.careers
3
+ min-height 400px
4
+
5
+ img
6
+ position absolute
7
+ left 0
8
+ bottom 20px
9
+ width 100%
10
+ transition .6s
11
+ user-select none
12
+
13
+ .careers-group
14
+ margin-top 12px
15
+
16
+ .careers-item
17
+ display flex
18
+ align-items center
19
+
20
+ .circle
21
+ width 16px
22
+ height 16px
23
+ margin-right 8px
24
+ border-radius 16px
25
+
26
+ .name
27
+ color var(--sco-secondtext)
@@ -0,0 +1,78 @@
1
+ #about-page
2
+ .myInfoAndSayHello
3
+ display flex
4
+ flex-direction column
5
+ justify-content center
6
+ color var(--sco-white)
7
+ background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
8
+ background-size 200%
9
+ animation gradient 15s ease infinite
10
+ width 59%
11
+
12
+ .title1
13
+ opacity .8
14
+ line-height 1.3
15
+
16
+ .title2
17
+ font-size 36px
18
+ font-weight 700
19
+ line-height 1.1
20
+ margin .5rem 0
21
+
22
+ .inline-word
23
+ word-break keep-all
24
+ white-space nowrap
25
+
26
+ .aboutsiteTips
27
+ display flex
28
+ justify-content center
29
+ align-items flex-start
30
+ flex-direction column
31
+ width 39%
32
+
33
+ h2
34
+ margin-right auto
35
+ font-size 36px
36
+ font-family Helvetica
37
+ line-height 1.06
38
+ letter-spacing -.02em
39
+ color var(--sco-fontcolor)
40
+ margin-top 0
41
+
42
+ .mask
43
+ height 36px
44
+ position relative
45
+ overflow hidden
46
+ margin-top 4px
47
+
48
+ span
49
+ display block
50
+ box-sizing border-box
51
+ position absolute
52
+ top 36px
53
+ padding-bottom var(--offset)
54
+ background-size 100% 100%
55
+ -webkit-background-clip text
56
+ background-clip text
57
+ -webkit-text-fill-color transparent
58
+ background-repeat no-repeat
59
+
60
+ &[data-show]
61
+ transform translateY(-100%)
62
+ transition .5s transform ease-in-out
63
+
64
+ &[data-up]
65
+ transform translateY(-200%)
66
+ transition .5s transform ease-in-out
67
+
68
+ span:nth-child(1)
69
+ background-image linear-gradient(45deg, #0ecffe 50%, #07a6f1)
70
+
71
+ span:nth-child(2)
72
+ background-image linear-gradient(45deg, #18e198 50%, #0ec15d)
73
+
74
+ span:nth-child(3)
75
+ background-image linear-gradient(45deg, #8a7cfb 50%, #633e9c)
76
+
77
+ span:nth-child(4)
78
+ background-image linear-gradient(45deg, #fa7671 50%, #f45f7f)
@@ -0,0 +1,41 @@
1
+ #about-page
2
+ .author-content-item.game-apex
3
+ min-height 300px
4
+ overflow hidden
5
+ color var(--sco-white)
6
+ width 59%
7
+
8
+ &::after
9
+ box-shadow 0 -69px 203px 11px #04120f inset
10
+ position absolute
11
+ content ''
12
+ width 100%
13
+ height 100%
14
+ top 0
15
+ left 0
16
+
17
+ .card-content
18
+ position absolute
19
+ width 100%
20
+ height 100%
21
+ top 0
22
+ left 0
23
+ z-index 2
24
+ display flex
25
+ flex-direction column
26
+ padding 1rem 2rem
27
+
28
+ .author-content-item.game-jl
29
+ width 39%
30
+ min-height 300px
31
+ overflow hidden
32
+ color var(--sco-white)
33
+
34
+ &::after
35
+ box-shadow 0 -69px 203px 11px #415dc9 inset
36
+ position absolute
37
+ content ''
38
+ width 100%
39
+ height 100%
40
+ top 0
41
+ left 0
@@ -1 +1,39 @@
1
- @import "./tenyear.styl"
1
+ #about-page
2
+ display flex
3
+ padding-top 1rem
4
+ flex-direction column
5
+ align-items center
6
+
7
+ .author-title
8
+ font-size 2rem
9
+ font-weight 700
10
+ margin 1rem 0
11
+ line-height 1
12
+
13
+ @import "tenyear"
14
+
15
+ @import "author"
16
+
17
+ @import "contentinfo"
18
+
19
+ @import "skills"
20
+
21
+ @import "oneself"
22
+
23
+ @import "buff"
24
+
25
+ @import "game"
26
+
27
+ @import "personalities"
28
+
29
+ @import "myphoto"
30
+
31
+ @import "careers"
32
+
33
+ @import "like"
34
+
35
+ @import "maxim"
36
+
37
+ @import "statistic"
38
+
39
+ @import "reward"
@@ -0,0 +1,29 @@
1
+ #about-page
2
+ .author-content-item.like-technology
3
+ background-size cover
4
+ min-height 230px
5
+ color var(--sco-white)
6
+
7
+ &::after
8
+ box-shadow 0 -69px 203px 11px #050b20 inset
9
+ position absolute
10
+ content ''
11
+ width 100%
12
+ height 100%
13
+ top 0
14
+ left 0
15
+
16
+ .author-content-item.like-music
17
+ background-size cover
18
+ min-height 400px
19
+ color var(--sco-white)
20
+ overflow hidden
21
+
22
+ &::after
23
+ box-shadow 0 -69px 203px 11px #0e0e0e inset
24
+ position absolute
25
+ content ''
26
+ width 100%
27
+ height 100%
28
+ top 0
29
+ left 0
@@ -0,0 +1,23 @@
1
+ #about-page
2
+ .author-content-item.maxim
3
+ font-size 36px
4
+ font-weight 700
5
+ line-height 1.1
6
+ display flex
7
+ align-items flex-start
8
+ flex-direction column
9
+ justify-content center
10
+ width 39%
11
+
12
+ .maxim-title
13
+ display flex
14
+ flex-direction column
15
+
16
+ span:first-child
17
+ opacity 0.6
18
+ margin-bottom 8px
19
+
20
+ .title1
21
+ opacity .8
22
+ font-size .6rem
23
+ margin-bottom .5rem
@@ -0,0 +1,34 @@
1
+ #about-page
2
+ .author-content-item.myphoto
3
+ height 60%
4
+ min-height 240px
5
+ position relative
6
+ overflow hidden
7
+ width 39%
8
+ display flex
9
+ align-items center
10
+ justify-content center
11
+
12
+ img
13
+ position absolute
14
+ height 100%
15
+ min-width 100%
16
+ object-fit cover
17
+ transition .6s
18
+ user-select none
19
+
20
+ &:hover
21
+ img
22
+ min-width 105%
23
+ transition 2s
24
+
25
+ .myphoto-title
26
+ position absolute
27
+ bottom 0
28
+ left 0
29
+ width 100%
30
+ background var(--sco-maskbgdeep)
31
+ padding .5rem 2rem
32
+ backdrop-filter saturate(180%) blur(20px)
33
+ -webkit-backdrop-filter blur(20px)
34
+ transform translateZ(0)