hexo-theme-solitude 1.13.3 → 2.0.1

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.
Files changed (91) hide show
  1. package/.github/FUNDING.yml +1 -1
  2. package/README.md +26 -29
  3. package/README_zh-Hant.md +1 -1
  4. package/{README_en-US.md → README_zh_CN.md} +29 -26
  5. package/_config.yml +153 -590
  6. package/languages/default.yml +2 -1
  7. package/languages/en.yml +2 -1
  8. package/languages/zh-CN.yml +1 -1
  9. package/languages/zh-TW.yml +1 -1
  10. package/layout/404.pug +1 -1
  11. package/layout/includes/console.pug +8 -8
  12. package/layout/includes/footer.pug +6 -6
  13. package/layout/includes/head/config.pug +5 -5
  14. package/layout/includes/inject/body.pug +1 -0
  15. package/layout/includes/inject/head.pug +1 -1
  16. package/layout/includes/layout.pug +0 -1
  17. package/layout/includes/mixins/articleSort.pug +3 -1
  18. package/layout/includes/mixins/pagination.pug +2 -2
  19. package/layout/includes/nav.pug +2 -1
  20. package/layout/includes/page/categories.pug +3 -2
  21. package/layout/includes/page/says.pug +5 -5
  22. package/layout/includes/page/tags.pug +3 -2
  23. package/layout/includes/rightmenu.pug +19 -20
  24. package/layout/includes/sidebar.pug +1 -1
  25. package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
  26. package/layout/includes/widgets/aside/asideNewestPost.pug +3 -3
  27. package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
  28. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  29. package/layout/includes/widgets/aside/asideWebInfo.pug +10 -10
  30. package/layout/includes/widgets/home/bbTimeList.pug +7 -9
  31. package/layout/includes/widgets/home/carousel.pug +3 -1
  32. package/layout/includes/widgets/home/categoryBar.pug +1 -1
  33. package/layout/includes/widgets/home/hot/artalk.pug +45 -0
  34. package/layout/includes/widgets/home/hot/index.pug +3 -1
  35. package/layout/includes/widgets/home/hot/twikoo.pug +1 -1
  36. package/layout/includes/widgets/home/postList.pug +4 -2
  37. package/layout/includes/widgets/home/topGroup.pug +1 -1
  38. package/layout/includes/widgets/nav/right.pug +9 -5
  39. package/layout/includes/widgets/page/about/award.pug +1 -1
  40. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  41. package/layout/includes/widgets/page/about/other.pug +1 -1
  42. package/layout/includes/widgets/page/banner.pug +1 -1
  43. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  44. package/layout/includes/widgets/page/links/banner.pug +2 -2
  45. package/layout/includes/widgets/page/recentcomment/artalk.pug +1 -1
  46. package/layout/includes/widgets/page/recentcomment/twikoo.pug +1 -1
  47. package/layout/includes/widgets/page/recentcomment/valine.pug +1 -1
  48. package/layout/includes/widgets/page/recentcomment/waline.pug +1 -1
  49. package/layout/includes/widgets/post/award.pug +1 -1
  50. package/layout/includes/widgets/post/copyright.pug +10 -10
  51. package/layout/includes/widgets/post/post-ai.pug +1 -1
  52. package/layout/includes/widgets/post/postInfo.pug +20 -18
  53. package/layout/includes/widgets/third-party/comments/artalk.pug +7 -0
  54. package/layout/includes/widgets/third-party/comments/comment.pug +4 -4
  55. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -4
  56. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  57. package/layout/includes/widgets/third-party/tianli-talk.pug +1 -1
  58. package/layout/post.pug +3 -2
  59. package/layout/tag.pug +3 -2
  60. package/package.json +2 -2
  61. package/plugins.yml +9 -9
  62. package/scripts/helper/related_post.js +1 -1
  63. package/scripts/helper/stylus.js +1 -0
  64. package/source/css/_comments/comment.styl +3 -4
  65. package/source/css/_global/index.styl +15 -14
  66. package/source/css/_highlight/index.styl +2 -2
  67. package/source/css/_highlight/theme/default.styl +1 -1
  68. package/source/css/_highlight/theme/mac.styl +1 -1
  69. package/source/css/_layout/article-container.styl +13 -4
  70. package/source/css/_layout/aside.styl +4 -3
  71. package/source/css/_layout/console.styl +2 -1
  72. package/source/css/_layout/footer.styl +1 -1
  73. package/source/css/_layout/header.styl +62 -12
  74. package/source/css/_page/_about/author.styl +4 -1
  75. package/source/css/_page/_about/buff.styl +1 -1
  76. package/source/css/_page/_about/contentinfo.styl +3 -2
  77. package/source/css/_page/_about/maxim.styl +1 -1
  78. package/source/css/_page/_home/category-bar.styl +19 -13
  79. package/source/css/_page/_home/home-top.styl +2 -0
  80. package/source/css/_page/_home/hot-tip.styl +2 -1
  81. package/source/css/_page/category.styl +0 -1
  82. package/source/css/_post/copyright.styl +104 -105
  83. package/source/css/_post/meta.styl +1 -1
  84. package/source/css/_post/pagination.styl +1 -1
  85. package/source/css/_post/tools.styl +1 -1
  86. package/source/css/_search/algolia-search.styl +0 -6
  87. package/source/css/_tags/image.styl +4 -0
  88. package/source/css/_tags/timeline.styl +3 -0
  89. package/source/js/covercolor/local.js +10 -4
  90. package/source/js/main.js +5 -5
  91. package/source/js/tw_cn.js +0 -3
@@ -16,7 +16,7 @@ mixin todayCardContent
16
16
  .todayCard-cover.nolazyload(style=`background: url('${theme.hometop.recommendList.img}') no-repeat center /cover`)
17
17
  .banner-button-group
18
18
  a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
19
- i.solitude.st-add-fill
19
+ i.solitude.fa-solid.fa-circle-plus
20
20
  span.banner-button-text= _p('home.recommendmore')
21
21
 
22
22
  case theme.hometop.recommendList.url.startsWith('/')
@@ -6,19 +6,23 @@ each item in custom
6
6
  if theme.nav.right.random
7
7
  .nav-button#randomPost_button
8
8
  a.site-page(onclick="toRandomPost()", title=_p('nav.randompost'), href="javascript:void(0);")
9
- i.solitude.st-dice-line
9
+ i.solitude.fa-solid.fa-dice-d6
10
10
  if theme.search.enable
11
11
  .nav-button#search-button
12
12
  a.site-page.social-icon.search(href="javascript:void(0);", title=_p('nav.search'))
13
- i.solitude.st-search-line
13
+ i.solitude.fa-solid.fa-magnifying-glass
14
14
  if theme.console.enable
15
15
  .nav-button#nav-console
16
16
  a.console_switchbutton(onclick="sco.showConsole()", title=_p('nav.console'), href="javascript:void(0);")
17
- i.solitude.st-dashboard-fill
17
+ label
18
+ i.left
19
+ i.center
20
+ i.right
21
+
18
22
  .nav-button#nav-totop(onclick="sco.toTop()")
19
23
  a.totopbtn
20
- i.solitude.st-arrow-up-line
24
+ i.solitude.fa-solid.fa-arrow-up
21
25
  span#percent= "0"
22
26
  #toggle-menu
23
27
  a.site-page
24
- i.solitude.st-menu-line
28
+ i.solitude.fa-solid.fa-bars
@@ -23,7 +23,7 @@ if site.data.about.rewardList
23
23
  .post-reward
24
24
  .post-reward(onclick="AddRewardMask()")
25
25
  .reward-button(title=_p('award.tipping'))
26
- i.solitude.st-hand-heart-fill
26
+ i.solitude.fa-solid.fa-heart
27
27
  = _p('award.tipping')
28
28
  .reward-main
29
29
  ul.reward-all
@@ -33,5 +33,5 @@ if site.data.about.likes
33
33
  if like.button
34
34
  .banner-button-group
35
35
  a.banner-button(href=url_for(like.button_link))
36
- i.solitude.st-right-btn-fill
36
+ i.solitude.fa-solid.fa-circle-chevron-right
37
37
  span.banner-button-text= like.button_text
@@ -19,7 +19,7 @@ if tj || oneself
19
19
  if tj.button
20
20
  .banner-button-group
21
21
  a.banner-button(href=url_for(tj.button_link))
22
- i.solitude.st-right-btn-fill
22
+ i.solitude.fa-solid.fa-circle-chevron-right
23
23
  span.banner-button-text= tj.button_text
24
24
 
25
25
  case tj.provider
@@ -11,5 +11,5 @@
11
11
  .banner-button-group
12
12
  - const isInternalLink = page.rightbtnlink.startsWith('/')
13
13
  a.banner-button(onclick=isInternalLink ? `pjax.loadUrl("${page.rightbtnlink}")`: null, href=isInternalLink ? null : url_for(page.rightbtnlink), target=isInternalLink ? null : "_blank")
14
- i.solitude.st-right-btn-fill
14
+ i.solitude.fa-solid.fa-circle-chevron-right
15
15
  span.banner-button-text= page.rightbtn
@@ -20,4 +20,4 @@
20
20
  else
21
21
  a.equipment-item-content-item-link(href=item.link, target="_blank") 查看文章
22
22
  a.bber-reply(onclick=`sco.toTalk('${item.description}')`)
23
- i.solitude.st-chat-fill(style="font-size: 1rem;")
23
+ i.solitude.fa-solid.fa-comment(style="font-size: 1rem;")
@@ -5,11 +5,11 @@
5
5
  .banner-button-group
6
6
  if theme.footer.randomlink
7
7
  a.banner-button.secondary(onclick="travelling()")
8
- i.solitude.st-signal-tower-fill
8
+ i.solitude.fa-solid.fa-tower-broadcast
9
9
  span.banner-button-text=_p('link.banner.random')
10
10
  if theme.comment.use
11
11
  a.banner-button(onclick="sco.scrollToComment()")
12
- i.solitude.st-right-btn-fill
12
+ i.solitude.fa-solid.fa-circle-chevron-right
13
13
  span.solitude.banner-button-text=_p('link.banner.toComment')
14
14
 
15
15
  .tags-group-all.nowrapMove
@@ -53,7 +53,7 @@ script(pjax).
53
53
  </div>
54
54
  <div class="comment-content">${i.content}</div>
55
55
  <div class="comment-title">
56
- <i class="solitude st-chat-fill"></i>
56
+ <i class="solitude fa-solid fa-comment"></i>
57
57
  ${i.title}</div>
58
58
  </div>
59
59
  `).join('')
@@ -60,7 +60,7 @@ script(pjax).
60
60
  </div>
61
61
  <div class="comment-content">${formatContent(i.content)}</div>
62
62
  <div class="comment-title">
63
- <i class="solitude st-chat-fill"></i>
63
+ <i class="solitude fa-solid fa-comment"></i>
64
64
  ${i.title}</div>
65
65
  </div>
66
66
  `).join('')
@@ -58,7 +58,7 @@ script(pjax).
58
58
  </div>
59
59
  <div class="comment-content">${i.content}</div>
60
60
  <div class="comment-title">
61
- <i class="solitude st-chat-fill"></i>
61
+ <i class="solitude fa-solid fa-comment"></i>
62
62
  ${i.title}</div>
63
63
  </div>
64
64
  `).join('')
@@ -50,7 +50,7 @@ script(pjax).
50
50
  </div>
51
51
  <div class="comment-content">${i.content}</div>
52
52
  <div class="comment-title">
53
- <i class="solitude st-chat-fill"></i>
53
+ <i class="solitude fa-solid fa-comment"></i>
54
54
  ${i.title}</div>
55
55
  </div>
56
56
  `).join('')
@@ -1,6 +1,6 @@
1
1
  .post-reward
2
2
  .reward-button(title=_p('award.tipping') onclick="AddRewardMask()")
3
- i.solitude.st-hand-heart-fill
3
+ i.solitude.fa-solid.fa-heart
4
4
  =_p('award.tipping')
5
5
  .reward-main
6
6
  ul.reward-all
@@ -13,7 +13,7 @@
13
13
  if theme.post.rss
14
14
  .reward-link.mode
15
15
  a.reward-link-button(href=url_for(theme.post.rss))
16
- i.solitude.st-plant-fill
16
+ i.solitude.fa-solid.fa-seedling
17
17
  = _p('footer.rss')
18
18
  if theme.post.share.enable
19
19
  .social-share
@@ -26,31 +26,31 @@
26
26
  case item
27
27
  when 'qq'
28
28
  a.social-share-ico.icon-qq(href=`https://connect.qq.com/widget/shareqq/index.html?url=${encodedPath}&title=${encodedTitle}&desc=${encodedDescription}&summary=${encodedDescription}&site=${encodedTitle}&pics=${encodedIcon}` title=_p('post.share.qq'))
29
- i.solitude.st-qq-fill
29
+ i.solitude.fab.fa-qq
30
30
  when 'weibo'
31
31
  a.social-share-ico.icon-weibo(href=`http://service.weibo.com/share/share.php?url=${encodedPath}&title=${encodedTitle}&pic=${encodedIcon}` title=_p('post.share.weibo'))
32
- i.solitude.st-weibo-fill
32
+ i.solitude.fab.fa-weibo
33
33
  when 'telegram'
34
34
  a.social-share-ico.icon-telegram(href=`https://t.me/share/url?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.telegram'))
35
- i.solitude.st-telegram-fill
35
+ i.solitude.fab.fa-telegram
36
36
  when 'whatsapp'
37
37
  a.social-share-ico.icon-whatsapp(href=`https://api.whatsapp.com/send?text=${encodedTitle} ${encodedPath}` title=_p('post.share.whatsapp'))
38
- i.solitude.st-whatsapp-fill
38
+ i.solitude.fab.fa-whatsapp
39
39
  when 'linkedin'
40
40
  a.social-share-ico.icon-linkedin(href=`https://www.linkedin.com/shareArticle?mini=true&url=${encodedPath}&title=${encodedTitle}&summary=${encodedDescription}&source=${encodedTitle}` title=_p('post.share.linkedin'))
41
- i.solitude.st-linkedin-box-fill
41
+ i.solitude.fab.fa-linkedin
42
42
  when 'facebook'
43
43
  a.social-share-ico.icon-facebook(href=`https://www.facebook.com/sharer/sharer.php?u=${encodedPath}` title=_p('post.share.facebook'))
44
- i.solitude.st-facebook-fill
44
+ i.solitude.fab.fa-facebook
45
45
  when 'twitter'
46
46
  a.social-share-ico.icon-twitter(href=`https://twitter.com/intent/tweet?url=${encodedPath}&text=${encodedTitle}` title=_p('post.share.twitter'))
47
- i.solitude.st-twitter-x-fill
47
+ i.solitude.fab.fa-twitter
48
48
  when 'link'
49
49
  .social-share-ico.icon-link(onclick=`utils.copy("${path}")` title=_p('post.share.link'))
50
- i.solitude.st-links-line
50
+ i.solitude.fas.fa-link
51
51
  when 'qrcode'
52
52
  .social-share-ico.icon-qrcode(title=_p('post.share.qrcode'))
53
- i.solitude.st-qr-code-fill
53
+ i.solitude.fas.fa-qrcode
54
54
  .share-main
55
55
  .share-main-all
56
56
  #qrcode
@@ -1,7 +1,7 @@
1
1
  .post-ai
2
2
  .ai-title
3
3
  .ai-title-left
4
- i.ai-title-icon.solitude.st-robot-fill
4
+ i.ai-title-icon.solitude.fa-solid.fa-robot
5
5
  .ai-title-text=_p('post.ai.title')
6
6
  .ai-tag#ai-tag= theme.post_ai.modelName
7
7
  .ai-explanation(style="display: block;")
@@ -10,71 +10,73 @@
10
10
  .post-meta__tag-list
11
11
  each tag in page.tags.data
12
12
  a.post-meta__tags(href=url_for(tag.path))
13
- span.tags-name.tags-punctuation= tag.name
13
+ span.tags-name.tags-punctuation
14
+ i.solitude.fa-solid.fa-hashtag
15
+ = tag.name
14
16
  h1.post-title= page.title
15
17
  #post-meta
16
18
  .meta-secondline
17
19
  if theme.post.meta.date
18
20
  span.post-meta-date(title=_p('post.posted') + ' ' + full_date(page.date))
19
- i.post-meta-icon.solitude.st-calendar-todo-fill
21
+ i.post-meta-icon.solitude.fa-solid.fa-calendar-days
20
22
  time(datetime=date_xml(page.date))= date_xml(page.date)
21
23
  if theme.post.meta.updated
22
24
  span.post-meta-date(title=_p('post.updated') + ' ' + full_date(page.updated))
23
- i.post-meta-icon.solitude.st-refresh-line
25
+ i.post-meta-icon.solitude.fa-solid.fa-arrow-rotate-right
24
26
  time(datetime=date_xml(page.updated))= date_xml(page.updated)
25
27
  if theme.wordcount
26
28
  span.post-meta-wordcount
27
29
  if theme.post.meta.wordcount
28
- i.post-meta-icon.solitude.st-word-fill(title=_p('post.wordcount'))
30
+ i.post-meta-icon.solitude.fa-solid.fa-file-word(title=_p('post.wordcount'))
29
31
  span.word-count= wordcount(page.content)
30
32
  span.post-meta-separator
31
33
  if theme.post.meta.readtime
32
- i.post-meta-icon.solitude.st-clock-fill(title=_p('post.minread'))
34
+ i.post-meta-icon.solitude.fa-solid.fa-clock(title=_p('post.minread'))
33
35
  span= min2read(page.content) + " min"
34
36
  if theme.post.meta.locate
35
37
  span.post-meta-position(title=_p('post.ip') + page.locate)
36
- i.post-meta-icon.solitude.st-map-pin-fill
38
+ i.post-meta-icon.solitude.fa-solid.fa-map
37
39
  span= page.locate
38
40
  if theme.post.meta.pv
39
41
  a.post-meta-pv(href=url_for(page.path), title=_p('post.pv'))
40
- i.post-meta-icon.solitude.st-fire-fill
42
+ i.post-meta-icon.solitude.fa-solid.fa-fire-flame-curved
41
43
  if theme.comment.use && theme.comment.pv
42
44
  case theme.comment.use[0]
43
45
  when "Twikoo"
44
46
  span#twikoo_visitors
45
- i.solitude.st-loading-line
47
+ i.solitude.fa-solid.fa-spinner
46
48
  when "Waline"
47
49
  span.waline-pageview-count
48
- i.solitude.st-loading-line
50
+ i.solitude.fa-solid.fa-spinner
49
51
  when "Valine"
50
52
  span.leancloud_visitors(id=url_for(page.path))
51
53
  span.leancloud-visitors-count
52
- i.solitude.st-loading-line
54
+ i.solitude.fa-solid.fa-spinner
53
55
  when 'Artalk'
54
56
  span#ArtalkPV
55
- i.solitude.st-loading-line
57
+ i.solitude.fa-solid.fa-spinner
56
58
  else
57
59
  if theme.busuanzi
58
60
  if theme.busuanzi_use === 0
59
61
  span#busuanzi_value_page_pv
60
- i.solitude.st-loading-line
62
+ i.solitude.fa-solid.fa-spinner
61
63
  else
62
64
  span#busuanzi_page_pv
63
- i.solitude.st-loading-line
65
+ i.solitude.fa-solid.fa-spinner
64
66
  if theme.post.meta.comment && page.comment && theme.comment.count && theme.comment.use
65
67
  span.post-meta-commentcount(title=_p('post.comment'), onclick="sco.scrollTo('post-comment')")
66
- i.solitude.st-chat-fill
68
+ i.solitude.fa-solid.fa-comment
67
69
  a(href=url_for(page.path) + "#post-comment")
68
70
  case theme.comment.use[0]
69
71
  when "Twikoo"
70
72
  span.twikoo-count
71
- i.solitude.st-loading-line
73
+ i.solitude.fa-solid.fa-spinner
72
74
  when "Waline"
73
75
  span.waline-comment-count
74
- i.solitude.st-loading-line
76
+ i.solitude.fa-solid.fa-spinner
75
77
  when "Valine"
76
78
  span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
77
- i.solitude.st-loading-line
79
+ i.solitude.fa-solid.fa-spinner
78
80
  when 'Artalk'
79
81
  span.artalk-count
80
- i.solitude.st-loading-line
82
+ i.solitude.fa-solid.fa-spinner
@@ -29,6 +29,13 @@ script.
29
29
  })
30
30
  const destroyArtalk = () => artalkItem.destroy()
31
31
  utils.addGlobalFn('pjax', destroyArtalk, 'destroyArtalk')
32
+ document.addEventListener('pjax:complete', function () {
33
+ artalkItem.update({
34
+ pageKey: window.location.pathname,
35
+ pageTitle: document.title
36
+ });
37
+ artalkItem.reload();
38
+ });
32
39
  }
33
40
  const loadArtalk = async () => {
34
41
  if (typeof Artalk === 'object') initArtalk()
@@ -3,7 +3,7 @@
3
3
  #post-comment
4
4
  .comment-head
5
5
  .comment-headline
6
- i.solitude.st-chat-fill
6
+ i.solitude.fa-solid.fa-comment
7
7
  span=' ' + _p('comment.title')
8
8
  if count && is_post()
9
9
  span.count
@@ -12,13 +12,13 @@
12
12
  case name
13
13
  when "Twikoo"
14
14
  span.twikoo-count
15
- i.solitude.st-loading-line
15
+ i.solitude.fa-solid.fa-spinner
16
16
  when "Waline"
17
17
  span.waline-comment-count
18
- i.solitude.st-loading-line
18
+ i.solitude.fa-solid.fa-spinner
19
19
  when "Valine"
20
20
  span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
21
- i.solitude.st-loading-line
21
+ i.solitude.fa-solid.fa-spinner
22
22
  when "Artalk"
23
23
  span.artalk-count
24
24
  | )
@@ -2,11 +2,8 @@
2
2
  .search-dialog
3
3
  .algolia-navbar
4
4
  .search-dialog__title#algolia-search-title=__('nav.search')
5
- .algolia-tips
6
- i.solitude.st-algolia-fill
7
- span.algolia-tips-text='Algolia'
8
5
  span.search-close-button
9
- i.solitude.st-close-fill
6
+ i.solitude.fa-solid.fa-xmark
10
7
  #algolia-input-panel
11
8
  #algolia-search-input
12
9
  #search-results
@@ -3,7 +3,7 @@
3
3
  nav.search-nav
4
4
  span.search-dialog-title=__('nav.search')
5
5
  button.search-close-button
6
- i.solitude.st-close-fill
6
+ i.solitude.fa-solid.fa-xmark
7
7
  div.search-wrap
8
8
  div.search-box
9
9
  input.search-box-input#search-input(type="text", autocomplete="off", spellcheck="false", autocorrect="off", autocapitalize="off", placeholder=__('search.placeholder'))
@@ -1,7 +1,7 @@
1
1
  - const {key,option,title} = theme.tianli_talk
2
2
 
3
3
  span.needEndHide#efuTalk(onclick="togglePostChatContainer(); return false;" title=title)
4
- i.solitude.st-robot-fill
4
+ i.solitude.fa-solid.fa-robot
5
5
  span.efuTalkTitle=title
6
6
 
7
7
  script.
package/layout/post.pug CHANGED
@@ -16,8 +16,9 @@ block content
16
16
  each data in page.tags.data
17
17
  a(href=url_for(data.path)).post-meta__tags
18
18
  span.tags-punctuation
19
- | #{data.name}
20
- span.tagsPageCount #{data.length}
19
+ i.solitude.fa-solid.fa-hashtag
20
+ =data.name
21
+ span.tagsPageCount=data.length
21
22
  if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.post_content
22
23
  div.google-ads-warp
23
24
  ins.adsbygoogle(style="display:block; text-align:center; height:284px", data-ad-layout="in-article", data-ad-format="fluid", hide-unfilled="true", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
package/layout/tag.pug CHANGED
@@ -7,8 +7,9 @@ block content
7
7
  each tag in site.tags.find({ parent: { $exists: false } }).data
8
8
  a(id=tag.name class=(tag.name === page.tag ? 'select' : '') href=url_for(tag.path))
9
9
  span.tags-punctuation
10
- | #{tag.name}
11
- span.tagsPageCount #{tag.length}
10
+ i.solitude.fa-solid.fa-hashtag
11
+ =tag.name
12
+ span.tagsPageCount=tag.length
12
13
  .recent-posts#recent-posts
13
14
  each post,index in page.posts.find({ parent: { $exists: false } }).data
14
15
  include includes/widgets/home/postList
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.13.3",
3
+ "version": "2.0.1",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/everfu/hexo-theme-solitude/issues",
27
27
  "email": "o@everfu.org"
28
28
  },
29
- "homepage": "https://www.efu.me/",
29
+ "homepage": "https://everfu.github.io/Solitude/",
30
30
  "author": "Hexo-Theme-Solitude<o@everfu.org>",
31
31
  "license": "MIT"
32
32
  }
package/plugins.yml CHANGED
@@ -5,7 +5,7 @@ algolia_search:
5
5
  instantsearch:
6
6
  name: instantsearch.js
7
7
  file: dist/instantsearch.production.min.js
8
- version: 4.73.0
8
+ version: 4.73.2
9
9
  pjax:
10
10
  name: pjax
11
11
  file: pjax.min.js
@@ -13,21 +13,21 @@ pjax:
13
13
  twikoo:
14
14
  name: twikoo
15
15
  file: dist/twikoo.all.min.js
16
- version: 1.6.36
16
+ version: 1.6.38
17
17
  waline_js:
18
18
  name: '@waline/client'
19
19
  file: dist/waline.js
20
20
  other_name: waline
21
- version: 3.2.7
21
+ version: 3.3.0
22
22
  waline_css:
23
23
  name: '@waline/client'
24
24
  file: dist/waline.css
25
- version: 3.2.7
25
+ version: 3.3.0
26
26
  other_name: waline
27
27
  valine:
28
28
  name: valine
29
29
  file: dist/Valine.min.js
30
- version: 1.5.1
30
+ version: 1.5.2
31
31
  artalk_css:
32
32
  name: artalk
33
33
  file: dist/Artalk.css
@@ -89,10 +89,10 @@ snackbar:
89
89
  name: node-snackbar
90
90
  file: dist/snackbar.min.js
91
91
  version: 0.1.16
92
- solitude_css:
93
- name: solitude-source
94
- file: icon/solitude.min.css
95
- version: 1.0.5
92
+ fontawesome:
93
+ name: font-awesome
94
+ file: css/all.min.css
95
+ version: 6.6.0
96
96
  medium_zoom:
97
97
  name: medium-zoom
98
98
  file: dist/medium-zoom.min.js
@@ -41,7 +41,7 @@ hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
41
41
  relatedPosts.sort(compare('weight', dateType))
42
42
 
43
43
  let result = '<div class="relatedPosts">'
44
- result += `<div class="headline"><i class="solitude st-star-smile-fill"></i><span>${headlineLang}</span><div class="relatedPosts-link"><a onclick="event.preventDefault(); toRandomPost();" href="javascript:void(0);" rel="external nofollow" data-pjax-state="">${this._p('random')}</a></div></div>`
44
+ result += `<div class="headline"><i class="solitude fa-solid fa-star"></i><span>${headlineLang}</span><div class="relatedPosts-link"><a onclick="event.preventDefault(); toRandomPost();" href="javascript:void(0);" rel="external nofollow" data-pjax-state="">${this._p('random')}</a></div></div>`
45
45
  result += '<div class="relatedPosts-list">'
46
46
 
47
47
  for (let i = 0; i < Math.min(relatedPosts.length, limitNum); i++) {
@@ -21,4 +21,5 @@ hexo.extend.filter.register('stylus:renderer', function (style) {
21
21
  style.define('$highlight_line_number', highlightLineNumber)
22
22
  style.define('$prismjs_enable', prismjsEnable)
23
23
  style.define('$prismjs_line_number', prismjsLineNumber)
24
+ style.define('$language', config.language)
24
25
  });
@@ -75,8 +75,7 @@
75
75
  font-size .6rem
76
76
  color var(--efu-secondtext)
77
77
  border-radius 8px
78
-
79
- if hexo-config('comment.use')[1]
78
+ if index(hexo-config('comment.use'), ',') || hexo-config('comment.use')[1]
80
79
  &.move
81
80
  if hexo-config('comment.count')
82
81
  .comment-head
@@ -102,7 +101,7 @@
102
101
  margin .5rem 0
103
102
  position relative
104
103
 
105
- if hexo-config('comment.use')[1]
104
+ if index(hexo-config('comment.use'), ',') || ',' in hexo-config('comment.use')
106
105
  .count span:last-child
107
106
  display none
108
107
 
@@ -138,7 +137,7 @@
138
137
  content ''
139
138
  transition .4s
140
139
 
141
- if hexo-config('comment.use')[1]
140
+ if ',' in hexo-config('comment.use') || index(hexo-config('comment.use'), ',')
142
141
  .comment-wrap
143
142
  > div:last-child
144
143
  display none
@@ -358,7 +358,7 @@ b, strong
358
358
  position relative
359
359
 
360
360
  i.solitude
361
- font-size 22px
361
+ font-size 16px
362
362
  line-height 1
363
363
  font-synthesis style
364
364
 
@@ -408,20 +408,20 @@ i.solitude
408
408
  opacity 1 !important
409
409
  pointer-events all !important
410
410
 
411
- span.tags-punctuation::before
412
- content: "\e071"
413
- font-family: solitude, serif !important
414
- font-size: 12px
415
- transition none
416
- margin-right: 2px
417
- opacity: .4
411
+ span.tags-punctuation
412
+ i
413
+ font-weight bold
414
+ font-size: 14px
415
+ transition none
416
+ margin-right: 2px
417
+ opacity: .4
418
418
 
419
- .hide-aside #page &
420
- font-size 16px
419
+ .hide-aside #page &
420
+ font-size 16px
421
421
 
422
- #post-info &
423
- font-size 14px
424
- line-height 32px
422
+ #post-info &
423
+ font-size 14px
424
+ line-height 32px
425
425
 
426
426
  if hexo-config('memorial.enable')
427
427
  .memorial
@@ -440,8 +440,9 @@ if hexo-config('background.enable')
440
440
  height 100%
441
441
  background-image url(hexo-config('background.light'))
442
442
  background-size cover
443
+ background-position center
443
444
  pointer-events none
444
445
  background-repeat no-repeat
445
446
 
446
447
  [data-theme=dark] &
447
- background-image url(hexo-config('background.dark'))
448
+ background-image url(hexo-config('background.dark'))
@@ -56,13 +56,13 @@ figure
56
56
  & ~ *
57
57
  display none
58
58
 
59
- .st-copy-fill
59
+ .copy-button
60
60
  position absolute
61
61
  cursor pointer
62
62
  transition color .2s
63
63
  font-size 18px
64
64
 
65
- .st-copy-fill:hover
65
+ .copy-button:hover
66
66
  color var(--efu-main)
67
67
 
68
68
  .expand
@@ -1,7 +1,7 @@
1
1
  figure
2
2
  &.highlight
3
3
  .highlight-tools
4
- .st-copy-fill
4
+ .copy-button
5
5
  right .7rem
6
6
 
7
7
  &.closed
@@ -1,7 +1,7 @@
1
1
  figure
2
2
  &.highlight
3
3
  .highlight-tools
4
- .st-copy-fill
4
+ .copy-button
5
5
  right 1.7rem
6
6
 
7
7
  &:after