hexo-theme-solitude 2.0.2 → 2.0.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.
@@ -94,19 +94,19 @@ award:
94
94
  search:
95
95
  empty: No results found
96
96
  hit: Found ${query} results for you
97
- placeholder: Enter keywords to quickly search
97
+ placeholder: Enter keywords to search
98
98
  count: Total <b>${count}</b> results.
99
99
 
100
100
  head:
101
101
  noscript: Please enable JavaScript to view the site
102
102
 
103
103
  aside:
104
- postcount: 'Posts :'
105
- pv: 'PV :'
106
- uv: 'UV :'
107
- runtime: 'Runtime :'
108
- updatetime: 'Last update :'
109
- wordcount: 'Word count :'
104
+ postcount: 'Posts:'
105
+ pv: 'PV:'
106
+ uv: 'UV:'
107
+ runtime: 'Runtime:'
108
+ updatetime: 'Last update:'
109
+ wordcount: 'Word count:'
110
110
  toc: Table of contents
111
111
  tagmore: View all
112
112
  avatar: Avatar
@@ -125,7 +125,7 @@ console:
125
125
  comment_title: Latest comments
126
126
  tag_tip: Tags
127
127
  tag_title: Find interesting areas
128
- switch_darkmode: Day and night switching
128
+ switch_darkmode: Day and night mode
129
129
  switch_hideAside: Sidebar display control
130
130
  switch_keyboard: Keyboard operation
131
131
  switch_music: Music switch
@@ -170,7 +170,7 @@ keyboard:
170
170
  title: Blog shortcuts
171
171
 
172
172
  newest_comment:
173
- error: Unable to get a comment, please confirm that the relevant configuration is correct.
173
+ error: Unable to get comments, please check the configuration.
174
174
  zero: No comments.
175
175
 
176
176
  comment:
@@ -196,19 +196,19 @@ right_menu:
196
196
  cht_to_chs: 转为简体
197
197
  img_error: This image cannot be copied or downloaded.
198
198
  barrage:
199
- open: OpenBarrage
200
- close: CloseBarrage
199
+ open: Open Barrage
200
+ close: Close Barrage
201
201
  music:
202
202
  start: Play
203
203
  stop: Pause
204
204
  back: Back
205
205
  forward: Forward
206
- copyMusicName: CopyName
206
+ copyMusicName: Copy Name
207
207
 
208
208
  pagination:
209
209
  prev: Prev
210
210
  next: Next
211
- to: To page
211
+ to: Go to page
212
212
 
213
213
  about:
214
214
  other:
package/languages/en.yml CHANGED
@@ -77,6 +77,7 @@ post:
77
77
  next: Next
78
78
  prev: Previous
79
79
 
80
+
80
81
  nav:
81
82
  site_name_title: Back to home
82
83
  backtop: Back to top
@@ -93,19 +94,19 @@ award:
93
94
  search:
94
95
  empty: No results found
95
96
  hit: Found ${query} results for you
96
- placeholder: Enter keywords to quickly search
97
+ placeholder: Enter keywords to search
97
98
  count: Total <b>${count}</b> results.
98
99
 
99
100
  head:
100
101
  noscript: Please enable JavaScript to view the site
101
102
 
102
103
  aside:
103
- postcount: 'Posts :'
104
- pv: 'PV :'
105
- uv: 'UV :'
106
- runtime: 'Runtime :'
107
- updatetime: 'Last update :'
108
- wordcount: 'Word count :'
104
+ postcount: 'Posts:'
105
+ pv: 'PV:'
106
+ uv: 'UV:'
107
+ runtime: 'Runtime:'
108
+ updatetime: 'Last update:'
109
+ wordcount: 'Word count:'
109
110
  toc: Table of contents
110
111
  tagmore: View all
111
112
  avatar: Avatar
@@ -124,7 +125,7 @@ console:
124
125
  comment_title: Latest comments
125
126
  tag_tip: Tags
126
127
  tag_title: Find interesting areas
127
- switch_darkmode: Day and night switching
128
+ switch_darkmode: Day and night mode
128
129
  switch_hideAside: Sidebar display control
129
130
  switch_keyboard: Keyboard operation
130
131
  switch_music: Music switch
@@ -169,7 +170,7 @@ keyboard:
169
170
  title: Blog shortcuts
170
171
 
171
172
  newest_comment:
172
- error: Unable to get a comment, please confirm that the relevant configuration is correct.
173
+ error: Unable to get comments, please check the configuration.
173
174
  zero: No comments.
174
175
 
175
176
  comment:
@@ -195,19 +196,19 @@ right_menu:
195
196
  cht_to_chs: 转为简体
196
197
  img_error: This image cannot be copied or downloaded.
197
198
  barrage:
198
- open: OpenBarrage
199
- close: CloseBarrage
199
+ open: Open Barrage
200
+ close: Close Barrage
200
201
  music:
201
202
  start: Play
202
203
  stop: Pause
203
204
  back: Back
204
205
  forward: Forward
205
- copyMusicName: CopyName
206
+ copyMusicName: Copy Name
206
207
 
207
208
  pagination:
208
209
  prev: Prev
209
210
  next: Next
210
- to: To page
211
+ to: Go to page
211
212
 
212
213
  about:
213
214
  other:
@@ -3,8 +3,15 @@ extends includes/layout.pug
3
3
  block content
4
4
  main.layout#content-inner
5
5
  #archive
6
- .article-sort-title #{__('page.archives')}<sup>#{site.posts.find({ parent: { $exists: false } }).length}</sup>
7
- .article-sort
8
- include includes/mixins/articleSort
9
- include includes/mixins/pagination
6
+ .article-sort-title #{__('page.archives')}<sup>#{site.posts.find({parent: {$exists: false}}).length}</sup>
7
+ case theme.page.archives
8
+ when 0
9
+ .article-sort
10
+ include includes/mixins/articleSort
11
+ include includes/mixins/pagination
12
+ when 1
13
+ .recent-posts#recent-posts
14
+ each post,index in page.posts.find({ parent: { $exists: false } }).data
15
+ include includes/widgets/home/postList
16
+ include includes/mixins/pagination
10
17
  include includes/widgets/aside/aside
@@ -56,11 +56,12 @@ div#footer-bar
56
56
  div.footer-bar-right
57
57
  each item in theme.footer.links
58
58
  a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
59
- a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
60
- i.solitude.fa-solid.fa-copyright
61
- i.solitude.fa-brands.fa-creative-commons-by
62
- i.solitude.fa-brands.fa-creative-commons-nc
63
- i.solitude.fa-brands.fa-creative-commons-nd
59
+ if theme.footer.license
60
+ a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
61
+ i.solitude.fa-solid.fa-copyright
62
+ i.solitude.fa-brands.fa-creative-commons-by
63
+ i.solitude.fa-brands.fa-creative-commons-nc
64
+ i.solitude.fa-brands.fa-creative-commons-nd
64
65
  if theme.footer.privacy
65
66
  div.needEndHide#cookies-window
66
67
  div.cookies-window-title= __('cookies.title')
@@ -12,4 +12,5 @@ div.category-bar-right
12
12
  if wordcount > 40 || categories.data.length > 10
13
13
  .category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
14
14
  i.solitude.fa-solid.fa-angles-right
15
- a.category-bar-more(href=url_for('/categories/'))= __('more')
15
+ if theme.page.categories
16
+ a.category-bar-more(href=url_for('/categories/'))= __('more')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -112,6 +112,7 @@ hexo.extend.filter.register('before_generate', () => {
112
112
  error: true,
113
113
  tags: true,
114
114
  categories: true,
115
+ archives: 0,
115
116
  default: {
116
117
  cover: ['/img/default.avif'],
117
118
  }
@@ -151,6 +152,10 @@ hexo.extend.filter.register('before_generate', () => {
151
152
  api: 'https://api.qjqq.cn/api/Imgcolor?img=',
152
153
  time: 43200000,
153
154
  },
155
+ share: {
156
+ enable: false,
157
+ list: []
158
+ },
154
159
  footer: {
155
160
  enable: true,
156
161
  desc: "来自 Efu 的文章",
@@ -4,7 +4,6 @@ hexo.extend.filter.register('before_post_render', data => {
4
4
  const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
5
5
  let { cover: coverVal } = data
6
6
 
7
- // Add path to top_img and cover if post_asset_folder is enabled
8
7
  if (hexo.config.post_asset_folder) {
9
8
  if (coverVal && coverVal.indexOf('/') === -1 && imgTestReg.test(coverVal)) data.cover = `${data.path}${coverVal}`
10
9
  }
@@ -81,7 +81,7 @@
81
81
 
82
82
  / [data-theme=dark] &
83
83
  background #00000015
84
- color var(--efu-black)
84
+ color var(--efu-white)
85
85
 
86
86
  &:hover
87
87
  color var(--efu-white)
@@ -19,13 +19,22 @@
19
19
  &:hover
20
20
  color var(--efu-card-bg)
21
21
 
22
- &:not(.nav-fixed)
23
- #nav
24
- background var(--efu-none)
25
- transition .3s
22
+ &:not(.nav-fixed)
23
+ #nav
24
+ background var(--efu-none)
25
+ transition .3s
26
26
 
27
- +maxWidth768()
28
- transition 0s
27
+ +maxWidth768()
28
+ transition 0s
29
+
30
+ .post &
31
+
32
+ #nav-right
33
+ .nav-button
34
+ .console_switchbutton
35
+ label
36
+ i
37
+ background var(--efu-white)
29
38
 
30
39
  #page-header
31
40
  #site-title
@@ -141,7 +150,8 @@
141
150
  padding 0
142
151
 
143
152
  .nav-button
144
- margin-left .5rem
153
+ margin-left 12px
154
+ cursor pointer
145
155
 
146
156
  a
147
157
  height 35px
@@ -151,6 +161,9 @@
151
161
  justify-content center
152
162
  border-radius 40px
153
163
 
164
+ i
165
+ font-size 20px
166
+
154
167
  &.totopbtn
155
168
  width 25px
156
169
  height 25px
@@ -163,7 +176,7 @@
163
176
  transition .3s
164
177
 
165
178
  &.console_switchbutton
166
- padding 10px 8px
179
+ padding 10px 7.5px
167
180
 
168
181
  &:hover
169
182
  label
@@ -195,9 +208,6 @@
195
208
  border-radius 12px
196
209
  background var(--efu-fontcolor)
197
210
 
198
- .post &
199
- background var(--efu-white)
200
-
201
211
  &.left
202
212
  top 0
203
213
  width 100%
@@ -611,9 +621,6 @@
611
621
  +maxWidth899()
612
622
  display none !important
613
623
 
614
- .nav-button
615
- cursor pointer
616
-
617
624
  #site-logo
618
625
  width 121px
619
626
 
@@ -795,7 +802,7 @@ if hexo-config('nav.group')
795
802
  +minWidth900()
796
803
  align-items center
797
804
 
798
- &:before
805
+ i.fa-solid.fa-home
799
806
  color var(--efu-white)
800
807
 
801
808
  .nav-fixed
@@ -4,7 +4,7 @@
4
4
  min-height 240px
5
5
  position relative
6
6
  overflow hidden
7
- width 39.5%
7
+ width calc(40% - (.5rem / 2))
8
8
  display flex
9
9
  align-items center
10
10
  justify-content center
@@ -3,14 +3,14 @@
3
3
  &.column
4
4
  display flex
5
5
  flex-direction column
6
- width 49%
6
+ width calc(50% - (.5rem / 2))
7
7
  justify-content space-between
8
8
 
9
9
  +maxWidth768()
10
10
  width 100% !important
11
11
 
12
12
  &.mapAndInfo
13
- width 59.5%
13
+ width calc(60% - (.5rem / 2))
14
14
  gap .5rem
15
15
 
16
16
  .author-content-item
@@ -1,7 +1,7 @@
1
1
  .author-content-item.personalities
2
2
  overflow hidden
3
3
  position relative
4
- width 59.5%
4
+ width calc(60% - (.5rem / 2))
5
5
  +maxWidth768()
6
6
  min-height 360px
7
7
 
@@ -4,7 +4,7 @@
4
4
  justify-content center
5
5
  align-items flex-start
6
6
  flex-direction column
7
- width 49.5%
7
+ width calc(50% - (.5rem / 2))
8
8
  min-height 450px
9
9
 
10
10
  .tags-group-all
@@ -5,7 +5,7 @@
5
5
 
6
6
  .about-statistic
7
7
  min-height 380px
8
- width 39.5%
8
+ width calc(40% - (.5rem / 2))
9
9
  background-size cover
10
10
  color var(--efu-white)
11
11
  overflow hidden
@@ -3,7 +3,7 @@ error_img = hexo-config('errorpage.img')
3
3
  $dark_theme = convert(hexo-config('theme_color.dark'))
4
4
  $dark_theme_op = convert(hexo-config('theme_color.dark_op'))
5
5
  $dark_theme_op_deep = convert(hexo-config('theme_color.dark_op_deep'))
6
- $dark_theme_none = hexo-config('theme_color.dark_none')
6
+ $dark_theme_none = convert(hexo-config('theme_color.dark_none'))
7
7
  $light_theme = convert(hexo-config('theme_color.light'))
8
8
  $light_theme_op = convert(hexo-config('theme_color.light_op'))
9
9
  $light_theme_op_deep = convert(hexo-config('theme_color.light_op_deep'))
Binary file
Binary file
Binary file
package/source/js/main.js CHANGED
@@ -198,6 +198,7 @@ const sco = {
198
198
  },
199
199
  initConsoleState() {
200
200
  const consoleHideAside = document.querySelector("#consoleHideAside");
201
+ if(!consoleHideAside) return;
201
202
  consoleHideAside.classList.toggle("on", document.documentElement.classList.contains("hide-aside"));
202
203
  },
203
204
  changeSayHelloText() {
Binary file
Binary file
Binary file
Binary file