hexo-theme-solitude 2.0.3 → 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.
- package/.github/FUNDING.yml +3 -3
- package/.github/ISSUE_TEMPLATE/config.yml +1 -5
- package/README.md +34 -30
- package/README_zh-Hans.md +25 -21
- package/README_zh-Hant.md +27 -23
- package/SECURITY.md +1 -1
- package/_config.yml +453 -306
- package/languages/default.yml +13 -13
- package/languages/en.yml +14 -13
- package/layout/archive.pug +11 -4
- package/layout/includes/footer.pug +6 -5
- package/layout/includes/widgets/home/categoryBar.pug +2 -1
- package/package.json +1 -1
- package/scripts/event/merge_config.js +1 -0
- package/scripts/filter/post_image.js +0 -1
- package/source/css/_layout/aside.styl +1 -1
- package/source/css/_layout/header.styl +22 -15
- package/source/css/var.styl +1 -1
- package/source/js/main.js +1 -0
- package/.github/persona.avif +0 -0
package/languages/default.yml
CHANGED
@@ -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
|
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
|
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
|
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:
|
200
|
-
close:
|
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:
|
206
|
+
copyMusicName: Copy Name
|
207
207
|
|
208
208
|
pagination:
|
209
209
|
prev: Prev
|
210
210
|
next: Next
|
211
|
-
to:
|
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
|
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
|
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
|
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:
|
199
|
-
close:
|
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:
|
206
|
+
copyMusicName: Copy Name
|
206
207
|
|
207
208
|
pagination:
|
208
209
|
prev: Prev
|
209
210
|
next: Next
|
210
|
-
to:
|
211
|
+
to: Go to page
|
211
212
|
|
212
213
|
about:
|
213
214
|
other:
|
package/layout/archive.pug
CHANGED
@@ -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({
|
7
|
-
.
|
8
|
-
|
9
|
-
|
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
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
15
|
+
if theme.page.categories
|
16
|
+
a.category-bar-more(href=url_for('/categories/'))= __('more')
|
package/package.json
CHANGED
@@ -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
|
}
|
@@ -19,13 +19,22 @@
|
|
19
19
|
&:hover
|
20
20
|
color var(--efu-card-bg)
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
&:not(.nav-fixed)
|
23
|
+
#nav
|
24
|
+
background var(--efu-none)
|
25
|
+
transition .3s
|
26
26
|
|
27
|
-
|
28
|
-
|
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
|
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
|
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
|
-
|
805
|
+
i.fa-solid.fa-home
|
799
806
|
color var(--efu-white)
|
800
807
|
|
801
808
|
.nav-fixed
|
package/source/css/var.styl
CHANGED
@@ -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'))
|
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() {
|
package/.github/persona.avif
DELETED
Binary file
|