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/languages/en.yml CHANGED
@@ -241,6 +241,7 @@ rightside:
241
241
  toc: Toc
242
242
  comment: Comment
243
243
  top: Top
244
+ barrage: 弹
244
245
  hide:
245
246
  translate: 简繁转换
246
247
  mode: Mode
@@ -240,6 +240,7 @@ rightside:
240
240
  toc: 目录
241
241
  comment: 评论
242
242
  top: 返回顶部
243
+ barrage: 弹
243
244
  hide:
244
245
  translate: 简繁转换
245
246
  mode: 显示模式切换
@@ -239,6 +239,7 @@ rightside:
239
239
  toc: 目錄
240
240
  comment: 評論
241
241
  top: 返回頂部
242
+ barrage: 彈
242
243
  hide:
243
244
  translate: 簡繁轉換
244
245
  mode: 顯示模式切換
@@ -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
- div#footer_deal
16
- - var leftInfo = information.left || []
17
- - var rightInfo = information.right || []
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
- each value, label in leftInfo
20
- - var array = value.split('||')
21
- a.deal_link(href=url_for(trim(array[0])), title=label)
22
- i.solitude(class=array[1])
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
- if information.author
25
- div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
26
- img(src=information.author, alt=_p('nav.backtop'))
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
- each value, label in rightInfo
29
- - var array = value.split('||')
30
- a.deal_link(href=url_for(trim(array[0])), title=label)
31
- i.solitude(class=array[1])
32
- div#st-footer
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
- each value, x in group || []
35
- div.footer-group
36
- h3.footer-title= x
37
- div.footer-links
38
- each url, y in value
39
- a.footer-item(href=url_for(url), title=y)= y
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
- .top-post-group
3
- each post in filteredPosts
4
- .top-post-item
5
- .post_cover
6
- a(href=url_for(post.path), title=post.title)
7
- span.top-post-top-text= _p('home.recommend')
8
- img.post_bg(alt=post.title, src=url_for(post.cover))
9
- .top-post-info
10
- a.article-title(href=url_for(post.path), title=post.title)= post.title
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
- .banner-button-group
18
- a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
19
- i.solitude.fa-solid.fa-circle-plus
20
- span.banner-button-text= _p('home.recommendmore')
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"
@@ -21,6 +21,8 @@
21
21
  i.solitude.fa-solid.fa-spinner.fa-spin
22
22
  when "Artalk"
23
23
  span.artalk-count
24
+ when "Giscus"
25
+ span.giscus-count
24
26
  | )
25
27
 
26
28
  if use.length > 1
@@ -55,6 +55,6 @@ script.
55
55
  loadGiscus()
56
56
  }
57
57
  } else {
58
- window.loadOtherComment = loadGiscus
58
+ window.loadTwoComment = loadGiscus
59
59
  }
60
60
  })()
@@ -1,3 +1,3 @@
1
- div.needEndHide#nav-music(onclick="sco.musicToggle()")
2
- div#nav-music-hoverTips=__('music.hit')
3
- meting-js(id=theme.capsule.id, server=theme.capsule.server, type="playlist", mutex="true", preload="none", data-lrctype="0", order="random", theme="var(--efu-main)")
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
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.24.0
4
+ version: 5.4.1
5
5
  instantsearch:
6
6
  name: instantsearch.js
7
7
  file: dist/instantsearch.production.min.js
8
- version: 4.73.3
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.0
21
+ version: 3.3.1
22
22
  waline_css:
23
23
  name: '@waline/client'
24
24
  file: dist/waline.css
25
- version: 3.3.0
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.8.7
34
+ version: 2.9.0
35
35
  artalk_js:
36
36
  name: artalk
37
37
  file: dist/Artalk.js
38
- version: 2.8.7
38
+ version: 2.9.0
39
39
  katex:
40
40
  name: katex
41
41
  file: dist/katex.min.css
@@ -231,6 +231,7 @@ hexo.extend.filter.register('before_generate', () => {
231
231
  id: '8407304077',
232
232
  server: 'netease',
233
233
  type: 'playlist',
234
+ volume: 0.8,
234
235
  },
235
236
  keyboard: {
236
237
  enable: false,
@@ -54,6 +54,10 @@ maxWidth1024()
54
54
  @media screen and (max-width: 1024px)
55
55
  {block}
56
56
 
57
+ maxWidth1199()
58
+ @media screen and (max-width: 1199px)
59
+ {block}
60
+
57
61
  maxWidth1200()
58
62
  @media screen and (max-width: 1200px)
59
63
  {block}
@@ -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
@@ -51,8 +51,8 @@
51
51
  display none
52
52
 
53
53
  &::before
54
- content "\e082"
55
- font-family solitude
54
+ content "\f0c1"
55
+ font-family 'FontAwesome'
56
56
  cursor pointer
57
57
 
58
58
  &:hover
@@ -6,13 +6,13 @@
6
6
  else
7
7
  order 2
8
8
 
9
- +minWidth900()
9
+ +minWidth1200()
10
10
  if hexo-config('aside.position') == 0
11
11
  padding-right 15px
12
12
  else
13
13
  padding-left 15px
14
14
 
15
- +maxWidth1200()
15
+ +maxWidth1199()
16
16
  .card-widget:not(#card-toc)
17
17
  display: none
18
18