hexo-theme-solitude 1.5.1 → 1.5.3

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 (153) hide show
  1. package/.github/FUNDING.yml +2 -2
  2. package/.github/ISSUE_TEMPLATE/config.yml +17 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +48 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +35 -0
  5. package/.github/logo.png +0 -0
  6. package/.github/screenshot.png +0 -0
  7. package/.github/workflows/stale.yml +19 -0
  8. package/CONTRIBUTING.md +2 -13
  9. package/LICENSE +21 -674
  10. package/README.md +41 -96
  11. package/README_EN.md +40 -96
  12. package/README_zh-tw.md +60 -0
  13. package/SECURITY.md +9 -0
  14. package/_config.yml +235 -264
  15. package/languages/{en-US.yml → en.yml} +3 -4
  16. package/languages/zh-CN.yml +0 -1
  17. package/languages/zh-TW.yml +0 -1
  18. package/layout/404.pug +1 -1
  19. package/layout/includes/body/gadsense.pug +9 -0
  20. package/layout/includes/console.pug +6 -6
  21. package/layout/includes/footer.pug +13 -13
  22. package/layout/includes/inject/body.pug +10 -1
  23. package/layout/includes/inject/head.pug +4 -4
  24. package/layout/includes/mixins/pagination.pug +2 -2
  25. package/layout/includes/nav.pug +2 -2
  26. package/layout/includes/page/album.pug +9 -9
  27. package/layout/includes/page/says.pug +5 -5
  28. package/layout/includes/sidebar.pug +2 -3
  29. package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
  30. package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
  31. package/layout/includes/widgets/aside/asideToc.pug +1 -1
  32. package/layout/includes/widgets/aside/asideWebInfo.pug +8 -8
  33. package/layout/includes/widgets/home/banner.pug +1 -1
  34. package/layout/includes/widgets/home/bbTimeList.pug +7 -7
  35. package/layout/includes/widgets/home/categoryBar.pug +5 -4
  36. package/layout/includes/widgets/home/categoryGroup.pug +1 -1
  37. package/layout/includes/widgets/home/postList.pug +8 -2
  38. package/layout/includes/widgets/home/topGroup.pug +1 -1
  39. package/layout/includes/widgets/nav/menu.pug +1 -1
  40. package/layout/includes/widgets/nav/right.pug +6 -6
  41. package/layout/includes/widgets/page/about/award.pug +3 -3
  42. package/layout/includes/widgets/page/about/hobbies.pug +1 -1
  43. package/layout/includes/widgets/page/banner.pug +1 -1
  44. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  45. package/layout/includes/widgets/page/links/banner.pug +3 -3
  46. package/layout/includes/widgets/page/moments/angle.pug +1 -1
  47. package/layout/includes/widgets/post/award.pug +1 -1
  48. package/layout/includes/widgets/post/copyright.pug +1 -1
  49. package/layout/includes/widgets/post/post-ai.pug +1 -1
  50. package/layout/includes/widgets/post/postMeta.pug +12 -12
  51. package/layout/includes/widgets/rightside/index.pug +25 -25
  52. package/layout/includes/widgets/third-party/comments/comment.pug +1 -1
  53. package/layout/includes/widgets/third-party/music.pug +1 -1
  54. package/layout/includes/widgets/third-party/search/algolia-search.pug +2 -2
  55. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  56. package/layout/index.pug +2 -2
  57. package/package.json +9 -9
  58. package/plugins.yml +8 -12
  59. package/scripts/event/cdn.js +10 -0
  60. package/scripts/event/welcome.js +1 -1
  61. package/scripts/filter/lazyload.js +2 -3
  62. package/scripts/helper/related_post.js +1 -1
  63. package/scripts/tags/card.js +1 -1
  64. package/scripts/tags/mermaid.js +9 -0
  65. package/scripts/tags/tabs.js +2 -2
  66. package/source/css/_global/animation.styl +1 -1
  67. package/source/css/_global/index.styl +27 -27
  68. package/source/css/_layout/basic.styl +18 -18
  69. package/source/css/_layout/header.styl +67 -67
  70. package/source/css/_layout/index.styl +14 -14
  71. package/source/css/_mode/index.styl +88 -88
  72. package/source/css/_page/_about/author.styl +5 -5
  73. package/source/css/_page/_about/buff.styl +1 -1
  74. package/source/css/_page/_about/careers.styl +1 -1
  75. package/source/css/_page/_about/contentinfo.styl +2 -2
  76. package/source/css/_page/_about/game.styl +2 -2
  77. package/source/css/_page/_about/like.styl +2 -2
  78. package/source/css/_page/_about/myphoto.styl +1 -1
  79. package/source/css/_page/_about/oneself.styl +2 -2
  80. package/source/css/_page/_about/reward.styl +11 -11
  81. package/source/css/_page/_about/skills.styl +2 -2
  82. package/source/css/_page/_about/statistic.styl +4 -4
  83. package/source/css/_page/_about/tenyear.styl +4 -4
  84. package/source/css/_page/_gallery/index.styl +7 -7
  85. package/source/css/_page/_home/category-bar.styl +11 -8
  86. package/source/css/_page/_home/home-top.styl +16 -16
  87. package/source/css/_page/_home/index.styl +1 -1
  88. package/source/css/_page/_home/pagination.styl +22 -22
  89. package/source/css/_page/_home/recent-post.styl +22 -15
  90. package/source/css/_page/category.styl +11 -11
  91. package/source/css/_page/douban.styl +10 -10
  92. package/source/css/_page/equipment.styl +10 -10
  93. package/source/css/_page/error.styl +3 -3
  94. package/source/css/_page/google.styl +32 -0
  95. package/source/css/_page/index.styl +4 -1
  96. package/source/css/_page/links.styl +27 -27
  97. package/source/css/_page/moment.styl +22 -22
  98. package/source/css/_page/music.styl +16 -14
  99. package/source/css/_page/says.styl +21 -21
  100. package/source/css/_page/share.styl +25 -25
  101. package/source/css/_page/tag.styl +12 -12
  102. package/source/css/_widgets/_aside/allinfo.styl +12 -12
  103. package/source/css/_widgets/_aside/index.styl +4 -4
  104. package/source/css/_widgets/_aside/info.styl +27 -27
  105. package/source/css/_widgets/_aside/newPost.styl +5 -5
  106. package/source/css/_widgets/_aside/toc.styl +7 -7
  107. package/source/css/_widgets/_comment/index.styl +7 -7
  108. package/source/css/_widgets/_comment/twikoo.styl +66 -50
  109. package/source/css/_widgets/_comment/waline.styl +45 -44
  110. package/source/css/_widgets/_extra/console.styl +29 -29
  111. package/source/css/_widgets/_extra/fullpage.styl +1 -1
  112. package/source/css/_widgets/_extra/music.styl +11 -11
  113. package/source/css/_widgets/_extra/pace.styl +2 -2
  114. package/source/css/_widgets/_extra/rightmenu.styl +8 -8
  115. package/source/css/_widgets/_mixins/article-sort.styl +7 -7
  116. package/source/css/_widgets/_mixins/footer.styl +28 -28
  117. package/source/css/_widgets/_mixins/keyboard.styl +8 -8
  118. package/source/css/_widgets/_mixins/other.styl +4 -4
  119. package/source/css/_widgets/_mixins/sidebar.styl +20 -20
  120. package/source/css/_widgets/_post/_highlight/index.styl +16 -16
  121. package/source/css/_widgets/_post/_highlight/theme/default.styl +1 -1
  122. package/source/css/_widgets/_post/_highlight/theme/mac.styl +1 -1
  123. package/source/css/_widgets/_post/commentBarrage.styl +13 -13
  124. package/source/css/_widgets/_post/content.styl +27 -26
  125. package/source/css/_widgets/_post/copyright.styl +9 -9
  126. package/source/css/_widgets/_post/meta.styl +27 -27
  127. package/source/css/_widgets/_post/pagination.styl +13 -13
  128. package/source/css/_widgets/_post/postAI.styl +18 -18
  129. package/source/css/_widgets/_post/relatedPost.styl +8 -8
  130. package/source/css/_widgets/_post/tools.styl +30 -30
  131. package/source/css/_widgets/_search/algolia-search.styl +18 -18
  132. package/source/css/_widgets/_search/local-search.styl +22 -22
  133. package/source/css/_widgets/_tags/button.styl +1 -1
  134. package/source/css/_widgets/_tags/card.styl +12 -12
  135. package/source/css/_widgets/_tags/fold.styl +11 -11
  136. package/source/css/_widgets/_tags/index.styl +26 -26
  137. package/source/css/_widgets/_tags/link.styl +10 -9
  138. package/source/css/_widgets/_tags/mermaid.styl +4 -0
  139. package/source/css/_widgets/_tags/note.styl +2 -2
  140. package/source/css/_widgets/_tags/tabs.styl +10 -10
  141. package/source/css/_widgets/_tags/timeline.styl +5 -5
  142. package/source/img/logo.png +0 -0
  143. package/source/js/comment/twikoo_commentBarrage.js +1 -1
  144. package/source/js/comment/waline_commentBarrage.js +1 -1
  145. package/source/js/covercolor/api.js +18 -18
  146. package/source/js/covercolor/local.js +18 -18
  147. package/source/js/main.js +5 -5
  148. package/source/js/music.js +1 -12
  149. package/source/js/search/algolia.js +7 -7
  150. package/source/js/tw_cn.js +2 -2
  151. package/source/js/universe.min.js +5 -0
  152. package/source/js/utils.js +2 -2
  153. package/source/js/waterfall.min.js +1 -0
@@ -1,9 +1,9 @@
1
1
  theme:
2
- dark: Switched to dark mode
3
- light: Switched to light mode
2
+ dark: dark
3
+ light: light
4
4
 
5
5
  copy:
6
- success: Copied successfully
6
+ success: Copied
7
7
  error: Copied failed
8
8
 
9
9
  time:
@@ -26,7 +26,6 @@ page:
26
26
  404: Page not found
27
27
 
28
28
  home:
29
- bannertext: Just browsing
30
29
  categoryBar:
31
30
  home: Home
32
31
  more: More
@@ -35,7 +35,6 @@ nav:
35
35
  console: 中控台
36
36
 
37
37
  home:
38
- bannertext: 随便逛逛
39
38
  categoryBar:
40
39
  home: 首页
41
40
  more: 更多
@@ -35,7 +35,6 @@ nav:
35
35
  console: 中控台
36
36
 
37
37
  home:
38
- bannertext: 隨便逛逛
39
38
  categoryBar:
40
39
  home: 首頁
41
40
  more: 更多
package/layout/404.pug CHANGED
@@ -8,7 +8,7 @@ block content
8
8
  h1.error_title 404
9
9
  .error_subtitle= theme.errorpage.text
10
10
  a.button--animated(href="/")
11
- i.scoicon.sco-external-link
11
+ i.solitude.st-external-link
12
12
  =_p('404.button')
13
13
 
14
14
  if theme.errorpage.recommendList
@@ -0,0 +1,9 @@
1
+ if (theme.google_adsense && theme.google_adsense.enable)
2
+ script(async src=theme.google_adsense.js)
3
+
4
+ if theme.google_adsense.auto_ads
5
+ script.
6
+ (adsbygoogle = window.adsbygoogle || []).push({
7
+ google_ad_client: '!{theme.google_adsense.client}',
8
+ enable_page_level_ads: !{theme.google_adsense.enable_page_level_ads},
9
+ });
@@ -1,6 +1,6 @@
1
1
  div#console
2
2
  div.close-btn(onclick="sco.hideConsole()")
3
- i.scoicon.sco-close-fill
3
+ i.solitude.st-close-fill
4
4
  if theme.comment.newComment
5
5
  div.console-card-group
6
6
  div.console-card-group-left
@@ -26,20 +26,20 @@ div#console
26
26
  div.button-group
27
27
  div.console-btn-item
28
28
  a.darkmode_switchbutton(onclick="sco.switchDarkMode()", title=_p('console.switch_darkmode'), href="javascript:void(0);")
29
- i.scoicon.sco-moon-clear-fill
29
+ i.solitude.st-moon-clear-fill
30
30
  div.console-btn-item#consoleHideAside
31
31
  a.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'), href="javascript:void(0);")
32
- i.scoicon.sco-side-bar-fill
32
+ i.solitude.st-side-bar-fill
33
33
  if theme.keyboard.enable
34
34
  div.console-btn-item#consoleKeyboard(onclick="sco.switchKeyboard()")
35
35
  a.keyboardSwitch(title=_p('console.switch_keyboard'), href="javascript:void(0);")
36
- i.scoicon.sco-keyboard-box-fill
36
+ i.solitude.st-keyboard-box-fill
37
37
  if theme.capsule.enable
38
38
  div.console-btn-item#consoleMusic(onclick="sco.musicToggle()")
39
39
  a.music-switch(title=_p('console.switch_music'), href="javascript:void(0);")
40
- i.scoicon.sco-disc-fill
40
+ i.solitude.st-disc-fill
41
41
  if theme.comment.enable && theme.comment.commentBarrage
42
42
  div.console-btn-item.on#consoleCommentBarrage(onclick="sco.switchCommentBarrage()")
43
43
  a.commentBarrage
44
- i.scoicon.sco-chat-fill
44
+ i.solitude.st-chat-fill
45
45
  div.console-mask(onclick="sco.hideConsole()")
@@ -1,11 +1,11 @@
1
- div#sco-footer-bar
1
+ div#st-footer-bar
2
2
  div.footer-logo
3
3
  if theme.site.name.class === 'i_class'
4
- i.scoicon(class=theme.site.name.custom)
4
+ i.solitude(class=theme.site.name.custom)
5
5
  else if theme.site.name.class === 'img'
6
- i.scoicon(style="background-image: url(" + url_for(theme.site.name.custom) + ")")
6
+ img.solitude.nolazyload(src=url_for(theme.site.name.custom))
7
7
  else if theme.site.name.class === 'text'
8
- span.scoicon= theme.site.name.custom
8
+ span.solitude= theme.site.name.custom
9
9
  div.footer-bar-description= __('footer.description').replace(/\$\{title}/, config.title + " - " + config.subtitle)
10
10
  a.footer-bar-link(href="/")= __('footer.learnmore')
11
11
  div#footer_deal
@@ -15,7 +15,7 @@ div#footer_deal
15
15
  each value, label in leftInfo
16
16
  - var array = value.split('||')
17
17
  a.deal_link(href=url_for(trim(array[0])), title=label)
18
- i.scoicon(class=array[1])
18
+ i.solitude(class=array[1])
19
19
 
20
20
  div#footer_mini_logo.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
21
21
  img(src=theme.site.icon, alt=_p('nav.backtop'))
@@ -23,8 +23,8 @@ div#footer_deal
23
23
  each value, label in rightInfo
24
24
  - var array = value.split('||')
25
25
  a.deal_link(href=url_for(trim(array[0])), title=label)
26
- i.scoicon(class=array[1])
27
- div#sco-footer
26
+ i.solitude(class=array[1])
27
+ div#st-footer
28
28
  - var group = theme.footer && theme.footer.group ? theme.footer.group : {}
29
29
 
30
30
  each value, x in group
@@ -39,7 +39,7 @@ div#sco-footer
39
39
  div.footer-title-group
40
40
  h3.footer-title= _p('footer.randomlink')
41
41
  a.random-friends-btn(href="javascript:randomLinksList();")
42
- i.scoicon.sco-refresh-line
42
+ i.solitude.st-refresh-line
43
43
  div.footer-links#friend-links-in-footer
44
44
  div#footer-bar
45
45
  div.footer-bar-links
@@ -54,16 +54,16 @@ div#footer-bar
54
54
  each item in theme.footer.links
55
55
  a.footer-bar-link(href=url_for(item.url), title=item.name)= item.name
56
56
  a.footer-bar-link.cc(href=theme.footer.license)
57
- i.scoicon.sco-copyright-line
58
- i.scoicon.sco-creative-commons-by-line
59
- i.scoicon.sco-creative-commons-nc-line
60
- i.scoicon.sco-creative-commons-nd-line
57
+ i.solitude.st-copyright-line
58
+ i.solitude.st-creative-commons-by-line
59
+ i.solitude.st-creative-commons-nc-line
60
+ i.solitude.st-creative-commons-nd-line
61
61
  if theme.footer.privacy
62
62
  div.needEndHide#cookies-window
63
63
  div.cookies-window-title= __('cookies.title')
64
64
  div.cookies-window-content
65
65
  span.cookies-tip= __('cookies.tip')
66
66
  a.cookies-link(href=theme.footer.privacy, title=_p('cookies.privacy'))
67
- i.scoicon.sco-right-btn-fill
67
+ i.solitude.st-right-btn-fill
68
68
  if theme.comment.enable && theme.comment.commentBarrage
69
69
  div.comment-barrage.needEndHide
@@ -14,6 +14,9 @@ div
14
14
  script(src=url_for(theme.cdn.main))
15
15
  script(src=url_for(theme.cdn.utils))
16
16
 
17
+ if theme.mermaid
18
+ script(src=url_for(theme.cdn.mermaid_js))
19
+
17
20
  if theme.album.enable
18
21
  script(src=url_for(theme.cdn.macy_js))
19
22
 
@@ -103,6 +106,9 @@ div
103
106
  != item
104
107
 
105
108
  div#js-pjax
109
+ if theme.mermaid
110
+ script.
111
+ mermaid.run();
106
112
  if page.type === 'album' && theme.album.enable
107
113
  script.
108
114
  initGallery()
@@ -141,4 +147,7 @@ include ../widgets/third-party/news-comment/newest-comment.pug
141
147
  include ../widgets/third-party/pjax.pug
142
148
 
143
149
  // theme
144
- include ../body/mode
150
+ include ../body/mode
151
+
152
+ // google adsense
153
+ include ../body/gadsense
@@ -1,7 +1,7 @@
1
1
  each item in theme.verify_site || []
2
2
  meta(name=item.name, content=item.content)
3
3
 
4
- link(rel="stylesheet", href=url_for(theme.cdn.scoicon_css))
4
+ link(rel="stylesheet", href=url_for(theme.cdn.solitude_css))
5
5
  link(rel="stylesheet", href=url_for(theme.cdn.snackbar_css))
6
6
 
7
7
  // aplayer
@@ -78,10 +78,10 @@ script.
78
78
  )(window)
79
79
 
80
80
  console.log(
81
- "%c Program: Hexo %c Theme: Hexo-Theme-Solitude %c Version: v1.5.1",
82
- "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;margin:10px 0",
81
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.3",
82
+ "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
83
83
  "padding: 5px 10px;color:white;background:#3e9f50;",
84
- "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;"
84
+ "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
85
85
  );
86
86
  if theme.extends.head
87
87
  each item in theme.extends.head
@@ -1,8 +1,8 @@
1
1
  nav#pagination
2
2
  div.pagination
3
- - var options = {mid_size: 1,escape: false,next_text: '<div class="pagination_tips_next">下页</div> <i class="scoicon sco-arrow-right-bold"></i>',prev_text: '<i class="scoicon sco-arrow-left-bold"></i> <div class="pagination_tips_prev">上页</div>'}
3
+ - var options = {mid_size: 1,escape: false,next_text: '<div class="pagination_tips_next">下页</div> <i class="solitude st-arrow-right-bold"></i>',prev_text: '<i class="solitude st-arrow-left-bold"></i> <div class="pagination_tips_prev">上页</div>'}
4
4
  !=paginator(options)
5
5
  div.toPageGroup
6
6
  input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')" maxlength="3" title="跳转到指定页面" onkeyup="if (this.value === '0') this.value = ''")
7
7
  a#toPageButton(onclick="sco.toPage()")
8
- i.scoicon.sco-show-right-line
8
+ i.solitude.st-show-right-line
@@ -3,11 +3,11 @@ nav#nav.show
3
3
  #blog_name
4
4
  if theme.nav.group
5
5
  .back-home-button(tabindex="-1")
6
- i.back-home-button-icon.scoicon.sco-more-fill
6
+ i.back-home-button-icon.solitude.st-more-fill
7
7
  include ./widgets/nav/group
8
8
  a#site-name(href="/", title=_p('nav.site_name_title'))
9
9
  if theme.site.name.class === 'i_class'
10
- i.scoicon(class=theme.site.name.custom, style="font-size: 16px;")
10
+ i.solitude(class=theme.site.name.custom, style="font-size: 16px;")
11
11
  else if theme.site.name.class === 'img'
12
12
  img(src=theme.site.name.custom, alt=config.title)
13
13
  else if theme.site.name.class === 'text'
@@ -5,12 +5,12 @@ include ../widgets/page/banner
5
5
 
6
6
  if album
7
7
  #album
8
- #sco-container
8
+ #st-container
9
9
  if album.json
10
10
  script.
11
11
  function initGallery() {
12
- let macy = Macy({ container: '#sco-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
13
- macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img")); macy.recalculate(true); }, 500); }, true)
12
+ let macy = Macy({ container: '#st-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
13
+ macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".st-gallery-item img")); macy.recalculate(true); }, 500); }, true)
14
14
  }
15
15
  (async function () {
16
16
  await fetch('!{url_for(album.json)}')
@@ -18,8 +18,8 @@ if album
18
18
  .then(data => {
19
19
  let html = ''
20
20
  data = data.sort((a, b) => b.date - a.date)
21
- data.forEach(item => { html += `<div class="sco-gallery-item"><span class="locate">${item.locate}</span><img class="sco-gallery-image" src="${item.image}" alt="${item.content}"></div>` })
22
- document.querySelector('#sco-container').innerHTML = html
21
+ data.forEach(item => { html += `<div class="st-gallery-item"><span class="locate">${item.locate}</span><img class="st-gallery-image" src="${item.image}" alt="${item.content}"></div>` })
22
+ document.querySelector('#st-container').innerHTML = html
23
23
  GLOBAL_CONFIG.lazyload.enable && utils.lazyloadImg();
24
24
  initGallery()
25
25
  })
@@ -27,12 +27,12 @@ if album
27
27
 
28
28
  else
29
29
  each item in album.items.sort((a, b) => b.date - a.date)
30
- .sco-gallery-item
30
+ .st-gallery-item
31
31
  span.locate= item.locate
32
- img.sco-gallery-image(src=item.image, alt=item.content)
32
+ img.st-gallery-image(src=item.image, alt=item.content)
33
33
  script.
34
34
  function initGallery(){
35
- let macy = Macy({ container: '#sco-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
36
- macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".sco-gallery-item img")); macy.recalculate(true); }, 500); }, true)
35
+ let macy = Macy({ container: '#st-container', trueOrder: false, waitForImages: true, margin: 5, columns: !{limit}, breakAt: { 1200: 5, 940: 3, 520: 2, 400: 1 }})
36
+ macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".st-gallery-item img")); macy.recalculate(true); }, 500); }, true)
37
37
  }
38
38
  document.addEventListener('DOMContentLoaded', initGallery);
@@ -13,7 +13,7 @@ if theme.says.enable
13
13
  time.datetime.bber_date(datetime=moment(item.date).format())
14
14
  if item.content
15
15
  a.bber-reply.goComment(onclick=`sco.toTalk('${item.content}')`)
16
- i.scoicon.sco-chat-fill
16
+ i.solitude.st-chat-fill
17
17
 
18
18
  #bber-content
19
19
  p.datacont= item.content
@@ -24,7 +24,7 @@ if theme.says.enable
24
24
 
25
25
  if item.aplayer
26
26
  .bber-music
27
- meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--sco-main)" data-lrctype="0")
27
+ meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--st-main)" data-lrctype="0")
28
28
 
29
29
  if item.video
30
30
  .bber-video
@@ -38,15 +38,15 @@ if theme.says.enable
38
38
  .bber-bottom
39
39
  .bber-info
40
40
  .bber-info-time
41
- i.scoicon.sco-calendar-todo-fill
41
+ i.solitude.st-calendar-todo-fill
42
42
  time.datetime(datetime=moment(item.date).format())
43
43
  if item.link
44
44
  a.bber-content-link(href=url_for(item.link) title="跳转到短文指引的链接" target="_blank")
45
- i.scoicon.sco-link-m-line
45
+ i.solitude.st-link-m-line
46
46
  | 链接
47
47
  if item.content
48
48
  a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
49
- i.scoicon.sco-chat-fill
49
+ i.solitude.st-chat-fill
50
50
  #bber-tips
51
51
  if theme.says.strip === -1
52
52
  | - 已展开所有短文 -
@@ -4,10 +4,9 @@ div#sidebar(style="zoom: 1;")
4
4
  span.sidebar-menu-item-title= __('sidebar.title1')
5
5
  div.sidebar-menu-item
6
6
  a.darkmode_switchbutton.menu-child(onclick="sco.switchDarkMode()", href="javascript:void(0);")
7
- i.scoicon.sco-moon-clear-fill
7
+ i.solitude.st-moon-clear-fill
8
8
  span= __('sidebar.darkmode')
9
- if theme.nav.left.enable
10
- include ./widgets/nav/group
9
+ include ./widgets/nav/group
11
10
  include ./widgets/nav/menu.pug
12
11
  span.sidebar-menu-item-title= __('sidebar.title2')
13
12
  div.card-widget.card-tags.card-archives.card-webinfo.card-allinfo
@@ -18,4 +18,4 @@
18
18
  each value, label in theme.aside.card.information || {}
19
19
  - var array = value.split('||')
20
20
  a.social-icon(href=url_for(trim(array[0])), title=label)
21
- i.scoicon(class=array[1])
21
+ i.solitude(class=array[1])
@@ -1,6 +1,6 @@
1
1
  .card-widget.card-recent-post
2
2
  .item-headline
3
- i.scoicon.sco-map-line
3
+ i.solitude.st-map-line
4
4
  span= _p('aside.newpost')
5
5
  .aside-list
6
6
  - let index = 1
@@ -1,5 +1,5 @@
1
1
  .card-widget#card-toc
2
2
  .item-headline
3
- i.scoicon.sco-menu-line
3
+ i.solitude.st-menu-line
4
4
  span= __('aside.toc')
5
5
  .toc-content#toc-content!= toc(page.content, { list_number: false })
@@ -2,39 +2,39 @@
2
2
  if theme.aside.siteinfo.postcount
3
3
  .webinfo-item
4
4
  .webinfo-item-title
5
- i.item-icon.scoicon.sco-folder-fill
5
+ i.item-icon.solitude.st-folder-fill
6
6
  .item-name= __('aside.postcount')
7
7
  .item-count= site.posts.length
8
8
  if theme.busuanzi
9
9
  if theme.aside.siteinfo.pv
10
10
  .webinfo-item
11
11
  .webinfo-item-title
12
- i.item-icon.scoicon.sco-visitor-line
12
+ i.item-icon.solitude.st-visitor-line
13
13
  .item-name= __('aside.pv')
14
14
  span#busuanzi_value_site_pv
15
- i.scoicon.sco-loading-line
15
+ i.solitude.st-loading-line
16
16
  if theme.aside.siteinfo.uv
17
17
  .webinfo-item
18
18
  .webinfo-item-title
19
- i.item-icon.scoicon.sco-team-fill
19
+ i.item-icon.solitude.st-team-fill
20
20
  .item-name= __('aside.uv')
21
21
  span#busuanzi_value_site_uv
22
- i.scoicon.sco-loading-line
22
+ i.solitude.st-loading-line
23
23
  if theme.aside.siteinfo.runtimeenable
24
24
  .webinfo-item
25
25
  .webinfo-item-title
26
- i.item-icon.scoicon.sco-calendar-todo-fill
26
+ i.item-icon.solitude.st-calendar-todo-fill
27
27
  .item-name= __('aside.runtime')
28
28
  .item-count#runtimeshow
29
29
  if theme.aside.siteinfo.updatetime
30
30
  .webinfo-item
31
31
  .webinfo-item-title
32
- i.item-icon.scoicon.sco-loop-left-fill
32
+ i.item-icon.solitude.st-loop-left-fill
33
33
  .item-name= __('aside.updatetime')
34
34
  time.item-count(datetime=new Date())
35
35
  if theme.wordcount && theme.aside.siteinfo.wordcount
36
36
  .webinfo-item
37
37
  .webinfo-item-title
38
- i.item-icon.scoicon.sco-word-fill
38
+ i.item-icon.solitude.st-word-fill
39
39
  .item-name= __('aside.wordcount')
40
40
  .item-count= totalcount(site)
@@ -8,7 +8,7 @@ if group
8
8
  - var array = value.split('||')
9
9
  a.banners-link-btn(href=url_for(trim(array[0])) class="banners-link-"+label)
10
10
  if array[1]
11
- i.scoicon(class=array[1])
11
+ i.solitude(class=array[1])
12
12
  .banners-link-title= label
13
13
 
14
14
  div.tags-group-all
@@ -1,18 +1,18 @@
1
1
  .bbTimeList.container#bbTimeList(class=is_home_first_page() ? '' : 'more-page')
2
- i.bber-logo.scoicon.sco-bblogo(onclick=`pjax.loadUrl('/essay/')`)
2
+ i.bber-logo.solitude.st-bblogo(onclick=`pjax.loadUrl('/essay/')`)
3
3
  .swiper-container.swiper-no-swiping.swiper-container-initialized.swiper-container-vertical.swiper-container-pointer-events#bbtalk(tabindex="-1" onclick=`pjax.loadUrl('/essay/')`)
4
4
  .swiper-wrapper#bber-talk
5
5
  each item, i in site.data.essay.essay_list.slice(0, 10)
6
6
  .li-style.swiper-slide
7
7
  | #{item.content}
8
8
  if item.image
9
- i.scoicon.sco-image-fill
9
+ i.solitude.st-image-fill
10
10
  else if item.aplayer
11
- i.scoicon.sco-disc-fill
11
+ i.solitude.st-disc-fill
12
12
  else if item.video
13
- i.scoicon.sco-video-fill
13
+ i.solitude.st-video-fill
14
14
  else if item.bilibili
15
- i.scoicon.sco-bilibili-line
15
+ i.solitude.st-bilibili-line
16
16
  else if item.link
17
- i.scoicon.sco-links
18
- i.bber-gotobb.scoicon.sco-right-btn-fill(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('/essay/')`)
17
+ i.solitude.st-links
18
+ i.bber-gotobb.solitude.st-right-btn-fill(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('/essay/')`)
@@ -4,7 +4,8 @@
4
4
  each item in site.categories.find({ parent: { $exists: false } }).data
5
5
  .category-bar-item(class=select ? (select === item.name ? 'select' : '') : '', id=item.name)
6
6
  a(href=url_for(item.path))= item.name
7
- if site.categories.length > 13
8
- .category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
9
- i.scoicon.sco-show-right-line
10
- a.category-bar-more(href="/categories/")= __('home.categoryBar.more')
7
+ div.category-bar-right
8
+ if site.categories.find({parent: {$exists: false}}).data.length > 10
9
+ .category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
10
+ i.solitude.st-show-right-line
11
+ a.category-bar-more(href="/categories/")= __('home.categoryBar.more')
@@ -10,4 +10,4 @@ if group
10
10
  a.categoryButton(href=url_for(trim(array[0])) if array[2] style="background:" + array[2] + ";")
11
11
  span.categoryButtonText= item[0]
12
12
  if array[1]
13
- i.scoicon(class=trim(array[1]))
13
+ i.solitude(class=trim(array[1]))
@@ -7,7 +7,7 @@ div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
7
7
  div.recent-post-info-top-tips
8
8
  if post.sticky && is_home()
9
9
  span.article-meta.sticky-warp
10
- i.scoicon.sco-thumbtack-solid.sticky.orange
10
+ i.solitude.st-thumbtack-solid.sticky.orange
11
11
  span.sticky.orange= _p('home.recent-post.sticky')
12
12
  each category in post.categories.data
13
13
  span.original= category.name
@@ -26,4 +26,10 @@ div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
26
26
  span.tags-punctuation=tag.name
27
27
 
28
28
  span.post-meta-date
29
- time(datetime=moment(post.date))
29
+ time(datetime=moment(post.date))
30
+ if (theme.google_adsense && theme.google_adsense.enable && theme.google_adsense.auto_ads === false)
31
+ if (index + 1) % 3 == 0
32
+ div.recent-post-item.google-ads-warp
33
+ ins.adsbygoogle(style="display:block; text-align:center;", data-ad-layout="in-article", data-ad-format="fluid", data-ad-client=theme.google_adsense.client, data-ad-slot=theme.google_adsense.slot)
34
+ script.
35
+ (adsbygoogle = window.adsbygoogle || []).push({});
@@ -15,7 +15,7 @@ mixin todayCardContent
15
15
  .todayCard-cover.nolazyload(style=`background: url('${theme.hometop.recommendList.img}') no-repeat center /cover`)
16
16
  .banner-button-group
17
17
  a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
18
- i.scoicon.sco-add-fill
18
+ i.solitude.st-add-fill
19
19
  span.banner-button-text= _p('home.top-group.recommendmore')
20
20
 
21
21
  case theme.hometop.recommendList.url.startsWith('/')
@@ -16,5 +16,5 @@ if menu
16
16
  - var array = childValue.split('||')
17
17
  a.site-page.child(href=url_for(trim(array[0])))
18
18
  if array[1]
19
- i.scoicon(class=array[1])
19
+ i.solitude(class=array[1])
20
20
  span= childLabel
@@ -2,23 +2,23 @@
2
2
  each item in custom
3
3
  .nav-button(id=item.id)
4
4
  a.site-page(href=item.url || 'javascript:void(0);', onclick=item.onclick, title=item.title || '')
5
- i.scoicon(class=item.icon || '')
5
+ i.solitude(class=item.icon || '')
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.scoicon.sco-signal-tower-fill
9
+ i.solitude.st-signal-tower-fill
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.scoicon.sco-search-line
13
+ i.solitude.st-search-line
14
14
  if theme.nav.right.console
15
15
  .nav-button#nav-console
16
16
  a.console_switchbutton(onclick="sco.showConsole()", title=_p('nav.console'), href="javascript:void(0);")
17
- i.scoicon.sco-dashboard-fill
17
+ i.solitude.st-dashboard-fill
18
18
  .nav-button#nav-totop(onclick="sco.toTop()")
19
19
  a.totopbtn
20
- i.scoicon.sco-arrow-up-line
20
+ i.solitude.st-arrow-up-line
21
21
  span#percent= "0"
22
22
  #toggle-menu
23
23
  a.site-page
24
- i.scoicon.sco-menu-line
24
+ i.solitude.st-menu-line
@@ -14,16 +14,16 @@ if site.data.about.rewardList
14
14
  .reward-list-item
15
15
  .reward-list-item-name= reward.name
16
16
  .reward-list-bottom-group
17
- .reward-list-item-money(style=(reward.vip ? "background: var(--sco-vip);color: var(--sco-white)" : ""))
17
+ .reward-list-item-money(style=(reward.vip ? "background: var(--st-vip);color: var(--st-white)" : ""))
18
18
  if reward.icon
19
- i.scoicon(class=reward.icon)
19
+ i.solitude(class=reward.icon)
20
20
  | ¥ #{reward.money}
21
21
  time.datatime.reward-list-item-time(datetime=moment(reward.time).format())
22
22
  if theme.post.award.enable
23
23
  .post-reward
24
24
  .post-reward(onclick="AddRewardMask()")
25
25
  .reward-button(title=_p('award.about.tip1'))
26
- i.scoicon.sco-hand-heart-fill
26
+ i.solitude.st-hand-heart-fill
27
27
  = _p('award.about.tip1')
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=like.button_link)
36
- i.scoicon.sco-right-btn-fill
36
+ i.solitude.st-right-btn-fill
37
37
  span.banner-button-text= like.button_text
@@ -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 : page.rightbtnlink, target=isInternalLink ? null : "_blank")
14
- i.scoicon.sco-right-btn-fill
14
+ i.solitude.st-right-btn-fill
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.scoicon.sco-chat-fill(style="font-size: 1rem;")
23
+ i.solitude.st-chat-fill(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.scoicon.sco-signal-tower-fill
8
+ i.solitude.st-signal-tower-fill
9
9
  span.banner-button-text 随机访问
10
10
  a.banner-button(onclick="sco.scrollToComment()")
11
- i.scoicon.sco-right-btn-fill
12
- span.scoicon.banner-button-text 申请友链
11
+ i.solitude.st-right-btn-fill
12
+ span.solitude.banner-button-text 申请友链
13
13
 
14
14
  .tags-group-all.nowrapMove
15
15
  .tags-group-wrapper
@@ -2,7 +2,7 @@
2
2
  .title-h2-a-left
3
3
  h2(style="padding-top: 0;margin:0.6rem 0 0.6rem;") 🎣 钓鱼
4
4
  a#random-post-start(href="javascript:fetchRandomPost();", style="transition-duration: 0.3s; transform: rotate(63000deg); opacity: 1;", data-pjax-state="")
5
- i.scoicon.sco-restart-line
5
+ i.solitude.st-restart-line
6
6
  .title-h2-a-right
7
7
  if page.type !== 'links'
8
8
  a.random-post-all(href="/links/", data-pjax-state="") 全部友链
@@ -1,6 +1,6 @@
1
1
  .post-reward(onclick="AddRewardMask()")
2
2
  .reward-button(title="赞赏作者")
3
- i.scoicon.sco-hand-heart-fill
3
+ i.solitude.st-hand-heart-fill
4
4
  | 打赏作者
5
5
  .reward-main
6
6
  ul.reward-all