hexo-theme-solitude 1.5.0 → 1.5.2
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/ISSUE_TEMPLATE/config.yml +17 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +48 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +35 -0
- package/CONTRIBUTING.md +2 -13
- package/LICENSE +21 -674
- package/README.md +17 -41
- package/README_EN.md +14 -39
- package/SECURITY.md +9 -0
- package/_config.yml +235 -264
- package/languages/{en-US.yml → en.yml} +3 -5
- package/languages/zh-CN.yml +0 -2
- package/languages/zh-TW.yml +0 -2
- package/layout/404.pug +1 -1
- package/layout/includes/body/gadsense.pug +9 -0
- package/layout/includes/console.pug +6 -6
- package/layout/includes/footer.pug +13 -13
- package/layout/includes/inject/body.pug +10 -1
- package/layout/includes/inject/head.pug +6 -4
- package/layout/includes/mixins/pagination.pug +2 -2
- package/layout/includes/nav.pug +2 -2
- package/layout/includes/page/album.pug +9 -9
- package/layout/includes/page/says.pug +5 -5
- package/layout/includes/sidebar.pug +2 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
- package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +8 -8
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/bbTimeList.pug +7 -7
- package/layout/includes/widgets/home/categoryBar.pug +5 -4
- package/layout/includes/widgets/home/categoryGroup.pug +3 -2
- package/layout/includes/widgets/home/postList.pug +11 -5
- package/layout/includes/widgets/home/topGroup.pug +1 -1
- package/layout/includes/widgets/nav/menu.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +6 -6
- package/layout/includes/widgets/page/about/award.pug +3 -3
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +1 -1
- package/layout/includes/widgets/page/equipment/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +3 -3
- package/layout/includes/widgets/page/moments/angle.pug +1 -1
- package/layout/includes/widgets/post/award.pug +1 -1
- package/layout/includes/widgets/post/copyright.pug +1 -1
- package/layout/includes/widgets/post/post-ai.pug +1 -1
- package/layout/includes/widgets/post/postMeta.pug +12 -12
- package/layout/includes/widgets/rightside/index.pug +25 -25
- package/layout/includes/widgets/third-party/comments/comment.pug +1 -1
- package/layout/includes/widgets/third-party/music.pug +1 -1
- package/layout/includes/widgets/third-party/search/algolia-search.pug +2 -2
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/index.pug +2 -2
- package/package.json +9 -9
- package/plugins.yml +8 -12
- package/scripts/event/cdn.js +10 -0
- package/scripts/event/welcome.js +1 -1
- package/scripts/filter/lazyload.js +2 -3
- package/scripts/helper/related_post.js +1 -1
- package/scripts/helper/stylus.js +11 -3
- package/scripts/tags/card.js +1 -1
- package/scripts/tags/mermaid.js +9 -0
- package/scripts/tags/tabs.js +2 -2
- package/source/css/_global/animation.styl +1 -1
- package/source/css/_global/index.styl +27 -27
- package/source/css/_layout/basic.styl +18 -18
- package/source/css/_layout/header.styl +67 -67
- package/source/css/_layout/index.styl +14 -14
- package/source/css/_mode/index.styl +88 -88
- package/source/css/_page/_about/author.styl +5 -5
- package/source/css/_page/_about/buff.styl +1 -1
- package/source/css/_page/_about/careers.styl +1 -1
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_about/game.styl +2 -2
- package/source/css/_page/_about/like.styl +2 -2
- package/source/css/_page/_about/myphoto.styl +1 -1
- package/source/css/_page/_about/oneself.styl +2 -2
- package/source/css/_page/_about/reward.styl +11 -11
- package/source/css/_page/_about/skills.styl +2 -2
- package/source/css/_page/_about/statistic.styl +4 -4
- package/source/css/_page/_about/tenyear.styl +4 -4
- package/source/css/_page/_gallery/index.styl +7 -7
- package/source/css/_page/_home/category-bar.styl +11 -8
- package/source/css/_page/_home/home-top.styl +16 -16
- package/source/css/_page/_home/index.styl +1 -1
- package/source/css/_page/_home/pagination.styl +22 -22
- package/source/css/_page/_home/recent-post.styl +22 -15
- package/source/css/_page/category.styl +11 -11
- package/source/css/_page/douban.styl +10 -10
- package/source/css/_page/equipment.styl +10 -10
- package/source/css/_page/error.styl +3 -3
- package/source/css/_page/google.styl +32 -0
- package/source/css/_page/index.styl +4 -1
- package/source/css/_page/links.styl +27 -27
- package/source/css/_page/moment.styl +22 -22
- package/source/css/_page/music.styl +16 -14
- package/source/css/_page/says.styl +21 -21
- package/source/css/_page/share.styl +25 -25
- package/source/css/_page/tag.styl +12 -12
- package/source/css/_widgets/_aside/allinfo.styl +12 -12
- package/source/css/_widgets/_aside/flip.styl +3 -6
- package/source/css/_widgets/_aside/index.styl +4 -4
- package/source/css/_widgets/_aside/info.styl +27 -27
- package/source/css/_widgets/_aside/newPost.styl +5 -5
- package/source/css/_widgets/_aside/toc.styl +7 -7
- package/source/css/_widgets/_comment/index.styl +7 -7
- package/source/css/_widgets/_comment/twikoo.styl +66 -50
- package/source/css/_widgets/_comment/waline.styl +45 -44
- package/source/css/_widgets/_extra/console.styl +30 -29
- package/source/css/_widgets/_extra/fullpage.styl +1 -1
- package/source/css/_widgets/_extra/music.styl +11 -11
- package/source/css/_widgets/_extra/pace.styl +2 -2
- package/source/css/_widgets/_extra/rightmenu.styl +8 -8
- package/source/css/_widgets/_mixins/article-sort.styl +7 -7
- package/source/css/_widgets/_mixins/footer.styl +31 -29
- package/source/css/_widgets/_mixins/keyboard.styl +8 -8
- package/source/css/_widgets/_mixins/other.styl +4 -4
- package/source/css/_widgets/_mixins/sidebar.styl +20 -20
- package/source/css/_widgets/_post/_highlight/index.styl +16 -16
- package/source/css/_widgets/_post/_highlight/theme/default.styl +1 -1
- package/source/css/_widgets/_post/_highlight/theme/mac.styl +1 -1
- package/source/css/_widgets/_post/commentBarrage.styl +13 -13
- package/source/css/_widgets/_post/content.styl +27 -26
- package/source/css/_widgets/_post/copyright.styl +11 -11
- package/source/css/_widgets/_post/meta.styl +27 -27
- package/source/css/_widgets/_post/pagination.styl +13 -13
- package/source/css/_widgets/_post/postAI.styl +18 -18
- package/source/css/_widgets/_post/relatedPost.styl +8 -8
- package/source/css/_widgets/_post/tools.styl +30 -30
- package/source/css/_widgets/_search/algolia-search.styl +18 -18
- package/source/css/_widgets/_search/local-search.styl +22 -22
- package/source/css/_widgets/_tags/button.styl +1 -1
- package/source/css/_widgets/_tags/card.styl +12 -12
- package/source/css/_widgets/_tags/fold.styl +11 -11
- package/source/css/_widgets/_tags/index.styl +26 -26
- package/source/css/_widgets/_tags/link.styl +10 -9
- package/source/css/_widgets/_tags/mermaid.styl +4 -0
- package/source/css/_widgets/_tags/note.styl +2 -2
- package/source/css/_widgets/_tags/tabs.styl +10 -10
- package/source/css/_widgets/_tags/timeline.styl +5 -5
- package/source/img/logo.png +0 -0
- package/source/js/comment/twikoo_commentBarrage.js +1 -1
- package/source/js/comment/waline_commentBarrage.js +1 -1
- package/source/js/covercolor/api.js +18 -18
- package/source/js/covercolor/local.js +18 -18
- package/source/js/main.js +5 -5
- package/source/js/music.js +1 -12
- package/source/js/sco-ai.min.js +1 -1
- package/source/js/search/algolia.js +7 -7
- package/source/js/tw_cn.js +2 -2
- package/source/js/universe.min.js +5 -0
- package/source/js/utils.js +2 -2
- package/source/js/waterfall.min.js +1 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
theme:
|
2
|
-
dark:
|
3
|
-
light:
|
2
|
+
dark: dark
|
3
|
+
light: light
|
4
4
|
|
5
5
|
copy:
|
6
|
-
success: Copied
|
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
|
@@ -75,7 +74,6 @@ search:
|
|
75
74
|
|
76
75
|
head:
|
77
76
|
noscript: Please enable JavaScript to view the site
|
78
|
-
console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.5.0 😄'
|
79
77
|
|
80
78
|
aside:
|
81
79
|
postcount: 'Posts :'
|
package/languages/zh-CN.yml
CHANGED
@@ -35,7 +35,6 @@ nav:
|
|
35
35
|
console: 中控台
|
36
36
|
|
37
37
|
home:
|
38
|
-
bannertext: 随便逛逛
|
39
38
|
categoryBar:
|
40
39
|
home: 首页
|
41
40
|
more: 更多
|
@@ -75,7 +74,6 @@ search:
|
|
75
74
|
|
76
75
|
head:
|
77
76
|
noscript: 开启JavaScript才能访问本站哦~
|
78
|
-
console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.5.0 😄'
|
79
77
|
|
80
78
|
aside:
|
81
79
|
postcount: '文章总数 :'
|
package/languages/zh-TW.yml
CHANGED
@@ -35,7 +35,6 @@ nav:
|
|
35
35
|
console: 中控台
|
36
36
|
|
37
37
|
home:
|
38
|
-
bannertext: 隨便逛逛
|
39
38
|
categoryBar:
|
40
39
|
home: 首頁
|
41
40
|
more: 更多
|
@@ -75,7 +74,6 @@ search:
|
|
75
74
|
|
76
75
|
head:
|
77
76
|
noscript: 開啟JavaScript才能訪問本站哦~
|
78
|
-
console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.5.0 😄'
|
79
77
|
|
80
78
|
aside:
|
81
79
|
postcount: '文章數:'
|
package/layout/404.pug
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
44
|
+
i.solitude.st-chat-fill
|
45
45
|
div.console-mask(onclick="sco.hideConsole()")
|
@@ -1,11 +1,11 @@
|
|
1
|
-
div#
|
1
|
+
div#st-footer-bar
|
2
2
|
div.footer-logo
|
3
3
|
if theme.site.name.class === 'i_class'
|
4
|
-
i.
|
4
|
+
i.solitude(class=theme.site.name.custom)
|
5
5
|
else if theme.site.name.class === 'img'
|
6
|
-
|
6
|
+
img.solitude.nolazyload(src=url_for(theme.site.name.custom))
|
7
7
|
else if theme.site.name.class === 'text'
|
8
|
-
span.
|
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.
|
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.
|
27
|
-
div#
|
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.
|
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.
|
58
|
-
i.
|
59
|
-
i.
|
60
|
-
i.
|
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.
|
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.
|
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
|
@@ -16,7 +16,7 @@ if theme.lightbox && theme.fancybox
|
|
16
16
|
link(rel="stylesheet", href=url_for(theme.cdn.fancyapps_css))
|
17
17
|
|
18
18
|
if theme.katex && theme.katex.enable
|
19
|
-
|
19
|
+
link(rel="stylesheet", href=url_for(theme.cdn.katex))
|
20
20
|
|
21
21
|
// Open Graph
|
22
22
|
include ../head/opengraph.pug
|
@@ -78,8 +78,10 @@ script.
|
|
78
78
|
)(window)
|
79
79
|
|
80
80
|
console.log(
|
81
|
-
"%c
|
82
|
-
"
|
81
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.2",
|
82
|
+
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
83
|
+
"padding: 5px 10px;color:white;background:#3e9f50;",
|
84
|
+
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
|
83
85
|
);
|
84
86
|
if theme.extends.head
|
85
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="
|
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.
|
8
|
+
i.solitude.st-show-right-line
|
package/layout/includes/nav.pug
CHANGED
@@ -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.
|
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.
|
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
|
-
#
|
8
|
+
#st-container
|
9
9
|
if album.json
|
10
10
|
script.
|
11
11
|
function initGallery() {
|
12
|
-
let macy = Macy({ container: '#
|
13
|
-
macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".
|
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="
|
22
|
-
document.querySelector('#
|
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
|
-
.
|
30
|
+
.st-gallery-item
|
31
31
|
span.locate= item.locate
|
32
|
-
img.
|
32
|
+
img.st-gallery-image(src=item.image, alt=item.content)
|
33
33
|
script.
|
34
34
|
function initGallery(){
|
35
|
-
let macy = Macy({ container: '#
|
36
|
-
macy.runOnImageLoad(function () { setTimeout(function () { GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll(".
|
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.
|
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(--
|
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.
|
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.
|
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.
|
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.
|
7
|
+
i.solitude.st-moon-clear-fill
|
8
8
|
span= __('sidebar.darkmode')
|
9
|
-
|
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
|
@@ -2,39 +2,39 @@
|
|
2
2
|
if theme.aside.siteinfo.postcount
|
3
3
|
.webinfo-item
|
4
4
|
.webinfo-item-title
|
5
|
-
i.item-icon.
|
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.
|
12
|
+
i.item-icon.solitude.st-visitor-line
|
13
13
|
.item-name= __('aside.pv')
|
14
14
|
span#busuanzi_value_site_pv
|
15
|
-
i.
|
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.
|
19
|
+
i.item-icon.solitude.st-team-fill
|
20
20
|
.item-name= __('aside.uv')
|
21
21
|
span#busuanzi_value_site_uv
|
22
|
-
i.
|
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.
|
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.
|
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.
|
38
|
+
i.item-icon.solitude.st-word-fill
|
39
39
|
.item-name= __('aside.wordcount')
|
40
40
|
.item-count= totalcount(site)
|
@@ -1,18 +1,18 @@
|
|
1
1
|
.bbTimeList.container#bbTimeList(class=is_home_first_page() ? '' : 'more-page')
|
2
|
-
i.bber-logo.
|
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.
|
9
|
+
i.solitude.st-image-fill
|
10
10
|
else if item.aplayer
|
11
|
-
i.
|
11
|
+
i.solitude.st-disc-fill
|
12
12
|
else if item.video
|
13
|
-
i.
|
13
|
+
i.solitude.st-video-fill
|
14
14
|
else if item.bilibili
|
15
|
-
i.
|
15
|
+
i.solitude.st-bilibili-line
|
16
16
|
else if item.link
|
17
|
-
i.
|
18
|
-
i.bber-gotobb.
|
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
|
-
|
8
|
-
.
|
9
|
-
|
10
|
-
|
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')
|
@@ -1,4 +1,5 @@
|
|
1
|
-
-
|
1
|
+
- gg = theme.hometop.group
|
2
|
+
- group = gg ? (Object.entries(gg)).slice(0, 2) : null
|
2
3
|
|
3
4
|
if group
|
4
5
|
.categoryGroup
|
@@ -9,4 +10,4 @@ if group
|
|
9
10
|
a.categoryButton(href=url_for(trim(array[0])) if array[2] style="background:" + array[2] + ";")
|
10
11
|
span.categoryButtonText= item[0]
|
11
12
|
if array[1]
|
12
|
-
i.
|
13
|
+
i.solitude(class=trim(array[1]))
|
@@ -1,4 +1,4 @@
|
|
1
|
-
div.recent-post-item(onclick="pjax.loadUrl('
|
1
|
+
div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
|
2
2
|
div.post_cover
|
3
3
|
a(href=url_for(post.path), title=post.title)
|
4
4
|
img.post_bg(src=url_for(post.cover), alt=post.title)
|
@@ -7,7 +7,7 @@ div.recent-post-item(onclick="pjax.loadUrl('/" + 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.
|
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
|
@@ -15,9 +15,9 @@ div.recent-post-item(onclick="pjax.loadUrl('/" + post.path + "')")
|
|
15
15
|
if post.prev == null && is_home()
|
16
16
|
span.original= _p('home.recent-post.new')
|
17
17
|
|
18
|
-
a.unvisited-post(href=post.path)= _p('home.recent-post.read')
|
18
|
+
a.unvisited-post(href=url_for(post.path))= _p('home.recent-post.read')
|
19
19
|
|
20
|
-
a.article-title(href=post.path, title=post.title)= post.title
|
20
|
+
a.article-title(href=url_for(post.path), title=post.title)= post.title
|
21
21
|
|
22
22
|
div.article-meta-wrap
|
23
23
|
span.article-meta.tags
|
@@ -26,4 +26,10 @@ div.recent-post-item(onclick="pjax.loadUrl('/" + 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.
|
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('/')
|
@@ -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.
|
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.
|
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.
|
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.
|
17
|
+
i.solitude.st-dashboard-fill
|
18
18
|
.nav-button#nav-totop(onclick="sco.toTop()")
|
19
19
|
a.totopbtn
|
20
|
-
i.
|
20
|
+
i.solitude.st-arrow-up-line
|
21
21
|
span#percent= "0"
|
22
22
|
#toggle-menu
|
23
23
|
a.site-page
|
24
|
-
i.
|
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(--
|
17
|
+
.reward-list-item-money(style=(reward.vip ? "background: var(--st-vip);color: var(--st-white)" : ""))
|
18
18
|
if reward.icon
|
19
|
-
i.
|
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.
|
26
|
+
i.solitude.st-hand-heart-fill
|
27
27
|
= _p('award.about.tip1')
|
28
28
|
.reward-main
|
29
29
|
ul.reward-all
|
@@ -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.
|
14
|
+
i.solitude.st-right-btn-fill
|
15
15
|
span.banner-button-text= page.rightbtn
|