hexo-theme-solitude 2.1.2 → 2.1.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/README.md +1 -1
- package/README_zh-Hans.md +1 -1
- package/README_zh-Hant.md +1 -1
- package/_config.yml +298 -286
- package/languages/default.yml +1 -0
- package/languages/en.yml +1 -0
- package/languages/zh-CN.yml +1 -0
- package/languages/zh-TW.yml +1 -0
- package/layout/includes/footer.pug +30 -29
- package/layout/includes/widgets/home/topGroup.pug +15 -13
- package/layout/includes/widgets/rightside/hide.pug +4 -1
- package/layout/includes/widgets/rightside/show.pug +3 -0
- package/layout/includes/widgets/third-party/comments/comment.pug +2 -0
- package/layout/includes/widgets/third-party/comments/giscus.pug +1 -1
- package/layout/includes/widgets/third-party/music.pug +3 -3
- package/package.json +1 -1
- package/plugins.yml +6 -6
- package/scripts/event/merge_config.js +1 -0
- package/source/css/_global/function.styl +4 -0
- package/source/css/_global/index.styl +8 -0
- package/source/css/_layout/article-container.styl +2 -2
- package/source/css/_layout/aside.styl +2 -2
- package/source/css/_layout/capsule.styl +228 -217
- package/source/css/_layout/recent-post.styl +4 -0
- package/source/css/_page/_home/home.styl +1 -0
- package/source/css/_page/links.styl +16 -2
- package/source/js/main.js +41 -12
- package/source/js/right_menu.js +2 -2
package/languages/en.yml
CHANGED
package/languages/zh-CN.yml
CHANGED
package/languages/zh-TW.yml
CHANGED
@@ -12,39 +12,40 @@ if theme.post.footer.enable && is_post()
|
|
12
12
|
div.footer-bar-description=theme.post.footer.desc
|
13
13
|
if theme.post.footer.button.enable
|
14
14
|
a.footer-bar-link(href=url_for(theme.post.footer.button.url))= theme.post.footer.button.name
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
if information.left || information.right || information.author
|
16
|
+
div#footer_deal
|
17
|
+
- var leftInfo = information.left || []
|
18
|
+
- var rightInfo = information.right || []
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
each value, label in leftInfo
|
21
|
+
- var array = value.split('||')
|
22
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
23
|
+
i.solitude(class=array[1])
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
if information.author
|
26
|
+
div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
|
27
|
+
img(src=information.author, alt=_p('nav.backtop'))
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
each value, label in rightInfo
|
30
|
+
- var array = value.split('||')
|
31
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
32
|
+
i.solitude(class=array[1])
|
33
|
+
if group
|
34
|
+
div#st-footer
|
35
|
+
each value, x in group || []
|
36
|
+
div.footer-group
|
37
|
+
h3.footer-title= x
|
38
|
+
div.footer-links
|
39
|
+
each url, y in value
|
40
|
+
a.footer-item(href=url_for(url), title=y)= y
|
33
41
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
if theme.footer && theme.footer.randomlink
|
42
|
-
div.footer-group
|
43
|
-
div.footer-title-group
|
44
|
-
h3.footer-title= _p('footer.randomlink')
|
45
|
-
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
46
|
-
i.solitude.fa-solid.fa-arrows-rotate
|
47
|
-
div.footer-links#friend-links-in-footer
|
42
|
+
if theme.footer && theme.footer.randomlink
|
43
|
+
div.footer-group
|
44
|
+
div.footer-title-group
|
45
|
+
h3.footer-title= _p('footer.randomlink')
|
46
|
+
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
47
|
+
i.solitude.fa-solid.fa-arrows-rotate
|
48
|
+
div.footer-links#friend-links-in-footer
|
48
49
|
div#footer-bar
|
49
50
|
div.footer-bar-links
|
50
51
|
div.footer-bar-left
|
@@ -1,23 +1,25 @@
|
|
1
1
|
- var filteredPosts = site.posts.data.filter(item => item.recommend === true).slice(0,6)
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
if filteredPosts.length > 0
|
3
|
+
.top-post-group
|
4
|
+
each post in filteredPosts
|
5
|
+
.top-post-item
|
6
|
+
.post_cover
|
7
|
+
a(href=url_for(post.path), title=post.title)
|
8
|
+
span.top-post-top-text= _p('home.recommend')
|
9
|
+
img.post_bg(alt=post.title, src=url_for(post.cover))
|
10
|
+
.top-post-info
|
11
|
+
a.article-title(href=url_for(post.path), title=post.title)= post.title
|
11
12
|
|
12
13
|
mixin todayCardContent
|
13
14
|
.todayCard-info
|
14
15
|
.todayCard-tips= theme.hometop.recommendList.sup
|
15
16
|
.todayCard-title= theme.hometop.recommendList.title
|
16
17
|
.todayCard-cover.nolazyload(style=`background: url('${theme.hometop.recommendList.img}') no-repeat center /cover`)
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
if filteredPosts.length > 0
|
19
|
+
.banner-button-group
|
20
|
+
a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
|
21
|
+
i.solitude.fa-solid.fa-circle-plus
|
22
|
+
span.banner-button-text= _p('home.recommendmore')
|
21
23
|
|
22
24
|
case theme.hometop.recommendList.url.startsWith('/')
|
23
25
|
when true
|
@@ -6,4 +6,7 @@
|
|
6
6
|
i.fas.fa-circle-half-stroke
|
7
7
|
if theme.rightside.hide.aside
|
8
8
|
button.aside.pc(type='button' title=_p('rightside.hide.aside') onclick='sco.switchHideAside()')
|
9
|
-
i.fas.fa-arrows-alt-h
|
9
|
+
i.fas.fa-arrows-alt-h
|
10
|
+
if theme.keyboard.enable
|
11
|
+
button.keyboard.pc(type='button' title=_p('console.switch_keyboard') onclick="sco.switchKeyboard()")
|
12
|
+
i.fas.fa-keyboard
|
@@ -8,6 +8,9 @@
|
|
8
8
|
if page.comment
|
9
9
|
button.comment(type='button' title=_p('rightside.show.comment') onclick="sco.scrollTo('post-comment')")
|
10
10
|
i.fas.fa-comment
|
11
|
+
if theme.comment.commentBarrage && page.comment
|
12
|
+
button.barrage.pc(type='button' title=_p('rightside.show.barrage') onclick="sco.switchCommentBarrage()")
|
13
|
+
span= _p('rightside.show.barrage')
|
11
14
|
button.top(type='button' title=_p('rightside.show.top') onclick='sco.toTop()')
|
12
15
|
i.fas.fa-arrow-up
|
13
16
|
span#percent= "0"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
div.needEndHide#nav-music
|
2
|
-
|
3
|
-
|
1
|
+
div.needEndHide#nav-music
|
2
|
+
#nav-music-hoverTips(onclick='sco.musicToggle()')= __('music.hit')
|
3
|
+
meting-js(id=theme.capsule.id server=theme.capsule.server type="playlist" mutex="true" preload="none" theme="var(--efu-main)" data-lrctype="0" order="random" volume=theme.capsule.volume)
|
package/package.json
CHANGED
package/plugins.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
algolia_search:
|
2
2
|
name: algoliasearch
|
3
3
|
file: dist/algoliasearch-lite.umd.js
|
4
|
-
version: 4.
|
4
|
+
version: 5.4.1
|
5
5
|
instantsearch:
|
6
6
|
name: instantsearch.js
|
7
7
|
file: dist/instantsearch.production.min.js
|
8
|
-
version: 4.
|
8
|
+
version: 4.74.1
|
9
9
|
pjax:
|
10
10
|
name: pjax
|
11
11
|
file: pjax.min.js
|
@@ -18,11 +18,11 @@ waline_js:
|
|
18
18
|
name: '@waline/client'
|
19
19
|
file: dist/waline.js
|
20
20
|
other_name: waline
|
21
|
-
version: 3.3.
|
21
|
+
version: 3.3.1
|
22
22
|
waline_css:
|
23
23
|
name: '@waline/client'
|
24
24
|
file: dist/waline.css
|
25
|
-
version: 3.3.
|
25
|
+
version: 3.3.1
|
26
26
|
other_name: waline
|
27
27
|
valine:
|
28
28
|
name: valine
|
@@ -31,11 +31,11 @@ valine:
|
|
31
31
|
artalk_css:
|
32
32
|
name: artalk
|
33
33
|
file: dist/Artalk.css
|
34
|
-
version: 2.
|
34
|
+
version: 2.9.0
|
35
35
|
artalk_js:
|
36
36
|
name: artalk
|
37
37
|
file: dist/Artalk.js
|
38
|
-
version: 2.
|
38
|
+
version: 2.9.0
|
39
39
|
katex:
|
40
40
|
name: katex
|
41
41
|
file: dist/katex.min.css
|
@@ -362,16 +362,24 @@ i.solitude
|
|
362
362
|
line-height 1
|
363
363
|
font-synthesis style
|
364
364
|
|
365
|
+
#body-wrap
|
366
|
+
display: flex
|
367
|
+
flex-direction: column
|
368
|
+
min-height: 100vh
|
369
|
+
justify-content: space-between
|
370
|
+
|
365
371
|
.layout
|
366
372
|
display: flex
|
367
373
|
margin: 0 auto
|
368
374
|
padding: 0 1.5rem
|
375
|
+
width 100%
|
369
376
|
max-width: 1200px
|
370
377
|
+maxWidth768()
|
371
378
|
padding 0
|
372
379
|
|
373
380
|
&#content-inner
|
374
381
|
max-width: 1400px
|
382
|
+
flex-grow: 1
|
375
383
|
|
376
384
|
/.hide-aside.layout
|
377
385
|
max-width: 1400px
|