hexo-theme-solitude 2.1.11 → 2.1.13

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/README.md CHANGED
@@ -11,13 +11,17 @@
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
12
  ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
13
  [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
14
+ [![NPM all downloads](https://img.shields.io/npm/d18m/hexo-theme-solitude
15
+ )](https://www.npmjs.com/package/hexo-theme-solitude)
15
16
 
16
17
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
18
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
19
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-white?logo=jetbrains)
18
20
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
21
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&color=blue)
22
+ ![jsdelivr](https://img.shields.io/jsdelivr/npm/hd/hexo-theme-solitude
23
+ )
24
+ ![npm publish](https://img.shields.io/github/actions/workflow/status/everfu/hexo-theme-solitude/npm-publish.yml)
21
25
 
22
26
  </div>
23
27
 
package/README_en-US.md CHANGED
@@ -11,13 +11,17 @@ Theme design fully authorized by [@Zhang Hong Heo](https://github.com/zhheo)
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
12
  ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
13
  [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
14
+ [![NPM all downloads](https://img.shields.io/npm/d18m/hexo-theme-solitude
15
+ )](https://www.npmjs.com/package/hexo-theme-solitude)
15
16
 
16
17
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
18
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
19
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-white?logo=jetbrains)
18
20
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
21
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&color=blue)
22
+ ![jsdelivr](https://img.shields.io/jsdelivr/npm/hd/hexo-theme-solitude
23
+ )
24
+ ![npm publish](https://img.shields.io/github/actions/workflow/status/everfu/hexo-theme-solitude/npm-publish.yml)
21
25
 
22
26
  </div>
23
27
 
package/README_zh-Hant.md CHANGED
@@ -11,13 +11,17 @@
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude)
12
12
  ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531)
13
13
  [![Stars](https://img.shields.io/github/stars/everfu/hexo-theme-solitude)](https://github.com/everfu/hexo-theme-solitude/stargazers)
14
- [![NPM all downloads](https://img.shields.io/npm/dy/hexo-theme-solitude?color=white)](https://www.npmjs.com/package/hexo-theme-solitude)
14
+ [![NPM all downloads](https://img.shields.io/npm/d18m/hexo-theme-solitude
15
+ )](https://www.npmjs.com/package/hexo-theme-solitude)
15
16
 
16
17
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white)
17
18
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white)
19
+ ![JetBrains](https://img.shields.io/badge/jetbrains-support-white?logo=jetbrains)
18
20
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true)
20
- ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains)
21
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&color=blue)
22
+ ![jsdelivr](https://img.shields.io/jsdelivr/npm/hd/hexo-theme-solitude
23
+ )
24
+ ![npm publish](https://img.shields.io/github/actions/workflow/status/everfu/hexo-theme-solitude/npm-publish.yml)
21
25
 
22
26
  </div>
23
27
 
package/SECURITY.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Reporting a Vulnerability
4
4
 
5
- If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability). If you're unable to report via GitHub, you can email us at [o@everfu.cn](mailto:o@everfu.cn).
5
+ If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability). If you're unable to report via GitHub, you can email us at [o@everfu.org](mailto:o@everfu.org).
6
6
 
7
7
  We take security seriously and will verify and resolve any reported vulnerabilities promptly.
8
8
 
package/_config.yml CHANGED
@@ -93,6 +93,7 @@ hometop:
93
93
  group:
94
94
  # 热门: /tags/Fire/ || fas fa-fire || linear-gradient(to right,#f65,#ffbf37)
95
95
  recommendList:
96
+ enable: true
96
97
  sup: 置顶
97
98
  title: Solitude 官方文档
98
99
  url: https://solitude.js.org/
@@ -552,7 +553,7 @@ footer:
552
553
  author: false # img url / false
553
554
  left:
554
555
  # Github: https://github.com/everfu || fab fa-github # 名称: 链接 || 图标
555
- # Mail: mailto:o@everfu.cn || fab fa-envelope
556
+ # Mail: mailto:o@everfu.org || fab fa-envelope
556
557
  right:
557
558
  # Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
558
559
  # Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
@@ -574,7 +575,7 @@ footer:
574
575
  # 备案
575
576
  beian:
576
577
  # - name: 湘公网安备43048102000175号
577
- # icon: https://ui.everfu.cn/28399dd1b7b415efb0b3d822c31f59af.png/cover
578
+ # icon: https://beian.mps.gov.cn/img/logo01.dd7ff50e.png
578
579
  # url: https://beian.mps.gov.cn/#/query/webSearch
579
580
  # - name: 湘ICP备2024080357号-1
580
581
  # url: https://beian.miit.gov.cn/
@@ -603,7 +604,7 @@ errorpage:
603
604
  # can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
604
605
  # the subsequent consideration of the use of JSON files to store music information and customize the implementation of the third-party API does not depend on the page.
605
606
  # Music Page
606
- meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
607
+ meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
607
608
  # --------------------------- end ---------------------------
608
609
 
609
610
  # --------------------------- start ---------------------------
@@ -612,7 +613,7 @@ meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:au
612
613
  capsule:
613
614
  enable: false
614
615
  # 歌单 ID / 单曲 ID
615
- id: 8407304077
616
+ id: 5144842535
616
617
  # 服务商:netease / qq / xiami / kugou / baidu
617
618
  server: netease
618
619
  # 类型:playlist / song
@@ -889,7 +890,7 @@ search:
889
890
  music:
890
891
  enable: false
891
892
  # 歌单 ID / 单曲 ID
892
- id: 1994908354
893
+ id: 5144842535
893
894
  # 服务商:netease / qq / xiami / kugou / baidu
894
895
  server: netease
895
896
  # 类型:playlist / song
@@ -933,7 +934,6 @@ recent_comments:
933
934
  limit: 50 # ⚠️waline 仅支持最大50条评论 / ⚠️waline only supports a maximum of 50 comments
934
935
  cache: 0.2 # 1 = 1天 / 1 = 1 day
935
936
  page: /recentcomments/ # 最近评论页面 / recent comments page
936
- img: /img/recent_c.avif # 中控台显示图片(不填不显示) / image displayed in the console
937
937
  # --------------------------- end ---------------------------
938
938
 
939
939
  # --------------------------- start ---------------------------
@@ -993,9 +993,9 @@ google_adsense:
993
993
  # 非必要请勿修改
994
994
  CDN:
995
995
  internal: local # local / cdnjs / jsdelivr / unpkg / custom
996
- third_party: cdnjs # cdnjs / jsdelivr / unpkg / custom
996
+ third_party: custom # cdnjs / jsdelivr / unpkg / custom
997
997
  version: true # 是否使用版本号
998
- custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} # 自定义格式
998
+ custom_format: https://fastly.jsdelivr.net/npm/${name}@${version}/${min_file} # 自定义格式
999
999
  # 直接覆盖默认 CDN 链接(优先级最高)
1000
1000
  options:
1001
1001
  # algolia_search:
@@ -5,8 +5,9 @@
5
5
  .aside-list
6
6
  each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1).slice(0, 5)
7
7
  a.aside-list-item(href=url_for(post.path) title=post.title)
8
- .thumbnail
9
- img(alt=post.title src=url_for(post.cover))
8
+ if post.cover
9
+ .thumbnail
10
+ img(alt=post.title src=url_for(post.cover))
10
11
  .content
11
12
  span.title(href=url_for(post.path) title=post.title)= post.title
12
13
  if post.categories.data[0]
@@ -23,4 +23,7 @@ if icon
23
23
  .tags-group-icon-pair
24
24
  each key in pair
25
25
  .tags-group-icon(style=`background: ${icon[key].color}`)
26
- img.nolazyload(src=icon[key].img, title=key)
26
+ if icon[key].img
27
+ img.nolazyload(src=icon[key].img, title=key)
28
+ else if icon[key].icon
29
+ i(class=icon[key].icon, style=`color: ${icon[key].icon_color ? icon[key].icon_color : ''}`)
@@ -3,5 +3,6 @@
3
3
  #bannerGroup
4
4
  #banners
5
5
  include ./banner.pug
6
- .topGroup
7
- include ./topGroup.pug
6
+ if theme.hometop.recommendList.enable
7
+ .topGroup
8
+ include ./topGroup.pug
@@ -44,15 +44,17 @@ div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
44
44
  else
45
45
  case position
46
46
  when 0
47
- div.post_cover
48
- +cover()
47
+ if post.cover
48
+ div.post_cover
49
+ +cover()
49
50
  div.recent-post-info
50
51
  +info()
51
52
  when 1
52
53
  div.recent-post-info
53
54
  +info()
54
- div.post_cover
55
- +cover()
55
+ if post.cover
56
+ div.post_cover
57
+ +cover()
56
58
 
57
59
 
58
60
  if theme.google_adsense && theme.google_adsense.enable && theme.google_adsense.auto_ads === false && theme.google_adsense.post_card
@@ -11,21 +11,27 @@ if skills || careers
11
11
  .skills-style-group
12
12
  .tags-group-all
13
13
  .tags-group-wrapper
14
- each i in [1,2]
15
- - var pair = []
16
- each tag, index in skills.tags
17
- - pair.push(tag)
18
- if pair.length === 2 || index === skills.tags.length - 1
19
- .tags-group-icon-pair
20
- each item in pair
21
- .tags-group-icon(style=`background:${item.color}`)
22
- img(src=item.icon, title=item.title)
23
- - pair = []
14
+ - var pair = []
15
+ each tag, index in skills.tags
16
+ - pair.push(tag)
17
+ if pair.length === 2 || index === skills.tags.length - 1
18
+ .tags-group-icon-pair
19
+ each item in pair
20
+ .tags-group-icon(style=`background:${item.color}`)
21
+ if item.img
22
+ img(src=item.img, title=item.title)
23
+ else if item.icon
24
+ i(class=item.icon, title=item.title, style=`color: ${item.icon_color ? item.icon_color : ''}`)
25
+ - pair = []
24
26
  .skills-list
25
27
  each tag in skills.tags
26
28
  .skill-info
27
29
  .skill-icon(style=`background:${tag.color}`)
28
- img(src=tag.icon, title=tag.title)
30
+ if tag.img
31
+ img(src=tag.img, title=tag.title)
32
+ else if tag.icon
33
+ i(class=tag.icon, title=tag.title, style=`color: ${tag.icon_color ? tag.icon_color : ''}`)
34
+
29
35
  .skill-name
30
36
  span= tag.title
31
37
  .etc ...
@@ -2,7 +2,7 @@
2
2
  .post-copyright
3
3
  .post-copyright__author_group
4
4
  a.post-copyright__author_img(href=url_for(copyright.author.url))
5
- img.post-copyright__author_img_front(src=page.avatar || copyright.author.img || theme.site.icon)
5
+ img.post-copyright__author_img_front(src=url_for(page.avatar || copyright.author.img || theme.site.icon))
6
6
  .post-copyright__author_name= page.author || config.title
7
7
  .post-copyright__author_desc= page.desc || config.subtitle
8
8
  .post-tools#post-tools
@@ -1,4 +1,4 @@
1
- #post-info
1
+ #post-info(style=`${page.top_color ? 'background: ' + page.top_color : ''}`)
2
2
  #post-firstinfo
3
3
  .meta-firstline
4
4
  - var cc = page.reprint ? _p('post.reprint') : _p('post.original')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "bugs": {
27
27
  "url": "https://github.com/everfu/hexo-theme-solitude/issues",
28
- "email": "o@everfu.cn"
28
+ "email": "o@everfu.org"
29
29
  },
30
30
  "homepage": "https://solitude.js.org",
31
- "author": "Hexo-Theme-Solitude<o@everfu.cn>",
31
+ "author": "Hexo-Theme-Solitude<o@everfu.org>",
32
32
  "license": "MIT"
33
33
  }
@@ -3,13 +3,14 @@
3
3
  hexo.extend.filter.register('after_post_render', function (data) {
4
4
  data.title = data.title || 'Untitled';
5
5
  const { config } = hexo.theme;
6
- const defaultCover = ['/img/default.avif'];
7
6
 
8
7
  const setCoverAndExcerpt = (layout) => {
9
8
  const { copyright, locate, cover } = hexo.theme.config[layout].default;
10
9
  data.locate = data.locate || locate;
11
10
  data.cc = data.cc || copyright;
12
- data.cover = data.cover || (cover?.length ? cover[getRandomInt(0, cover.length)] : defaultCover[0]);
11
+ data.cover = data.cover || (cover?.length && cover[getRandomInt(0, cover.length)]);
12
+ data.top_color = data.top_color;
13
+ data.not_cover = data.cover ? false : true;
13
14
  data.excerpt = layout === 'post' ? data.description || data.excerpt : data.title;
14
15
  data.toc = !!(config.aside.toc[layout] && data.toc !== false);
15
16
  data.aside = layout === 'post' ? (data.aside || true) : (data.aside || false);
@@ -723,7 +723,7 @@ if hexo-config('aside.card.style') == 2
723
723
  .avatar-img
724
724
  overflow hidden
725
725
  border-radius 500px
726
- width 74px
726
+ width 75px
727
727
  cursor pointer
728
728
  height 74px
729
729
 
@@ -255,8 +255,6 @@ else if hexo-config('index_post_list.direction') == "row"
255
255
  flex-direction row
256
256
  width 100%
257
257
  box-shadow var(--efu-shadow-border)
258
- #tag &:first-child
259
- margin-top: 2.5rem
260
258
 
261
259
  +maxWidth768()
262
260
  border-radius 12px
@@ -24,7 +24,7 @@ if hexo-config('rightside.enable')
24
24
  font-size: 16px
25
25
 
26
26
  &.pc
27
- display: blok
27
+ display: block
28
28
  +maxWidth900()
29
29
  display: none
30
30
 
@@ -37,7 +37,7 @@
37
37
  / #bannerGroup
38
38
  display flex
39
39
  +minWidth1201()
40
- width calc(50% - .25rem)
40
+ flex 1 1 0
41
41
  height calc(328px + .5rem)
42
42
  display flex
43
43
  flex-direction column
@@ -70,10 +70,10 @@
70
70
  display flex
71
71
  flex-direction row
72
72
  flex-wrap wrap
73
+ flex 1 1 0
73
74
  justify-content flex-start
74
75
  height calc(328px + 0.5rem)
75
76
  align-content space-between
76
- width calc(50% - 0.25rem)
77
77
  position relative
78
78
  animation slide-in .6s .1s backwards
79
79
 
@@ -63,13 +63,13 @@
63
63
  width 100%
64
64
  padding-bottom 2rem
65
65
 
66
- .error_title
67
- font-size 4rem
68
-
69
66
  .error_title
70
67
  font-size 9em
71
68
  line-height 1
72
69
 
70
+ +maxWidth768()
71
+ font-size 4rem
72
+
73
73
  .error_subtitle
74
74
  word-break break-word
75
75
  font-size 1.6em
@@ -81,12 +81,12 @@
81
81
  padding .3rem 1.5rem
82
82
  background var(--btn-bg)
83
83
  color var(--btn-color)
84
- transition .3s
85
84
 
86
85
  &:hover
87
86
  background var(--efu-theme)
88
87
 
89
88
  i
89
+ font-size 16px
90
90
  padding-right .3rem
91
91
 
92
92
  .aside-list
@@ -98,10 +98,7 @@
98
98
 
99
99
  +maxWidth768()
100
100
  padding-top 0
101
-
102
- .aside-list-item
103
- .thumbnail
104
- height 100px
101
+ margin 0
105
102
 
106
103
  .aside-list-group
107
104
  display flex
@@ -127,6 +124,9 @@
127
124
  background var(--efu-card-bg)
128
125
  display flex
129
126
 
127
+ +maxWidth768()
128
+ height 100px
129
+
130
130
  .content .title
131
131
  -webkit-line-clamp 2
132
132
  overflow hidden
@@ -186,7 +186,6 @@
186
186
  z-index 1
187
187
 
188
188
  +minWidth1300()
189
- width 1100px
190
189
  font-size 2.6rem !important
191
190
 
192
191
  #post-meta