hexo-theme-solitude 3.0.5 → 3.0.7
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/_config.yml +3 -21
- package/layout/404.pug +1 -1
- package/layout/includes/console.pug +21 -7
- package/layout/includes/footer.pug +1 -1
- package/layout/includes/keyboard.pug +1 -1
- package/layout/includes/mixins/articleSort.pug +1 -1
- package/layout/includes/mixins/pagination.pug +2 -2
- package/layout/includes/nav.pug +1 -1
- package/layout/includes/page/brevity.pug +4 -4
- package/layout/includes/page/categories.pug +1 -1
- package/layout/includes/page/tags.pug +1 -1
- package/layout/includes/rightmenu.pug +19 -19
- package/layout/includes/sidebar.pug +4 -7
- package/layout/includes/widgets/aside/aside.pug +2 -2
- package/layout/includes/widgets/aside/asideAllInfo.pug +0 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +12 -13
- package/layout/includes/widgets/aside/asideNewestPost.pug +2 -2
- package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
- package/layout/includes/widgets/aside/asideSwitch.pug +0 -4
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +10 -22
- package/layout/includes/widgets/home/bbTimeList.pug +6 -6
- package/layout/includes/widgets/home/categoryBar.pug +4 -4
- package/layout/includes/widgets/home/postList.pug +2 -2
- package/layout/includes/widgets/home/topGroup.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +4 -4
- package/layout/includes/widgets/page/about/award.pug +2 -2
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/about/other.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +1 -1
- package/layout/includes/widgets/page/kit/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +16 -26
- package/layout/includes/widgets/page/recentcomment/artalk.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/twikoo.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/valine.pug +1 -1
- package/layout/includes/widgets/page/recentcomment/waline.pug +1 -1
- package/layout/includes/widgets/post/award.pug +1 -1
- package/layout/includes/widgets/post/copyright.pug +2 -2
- package/layout/includes/widgets/post/postInfo.pug +16 -16
- package/layout/includes/widgets/sidebar/artalk.pug +1 -1
- package/layout/includes/widgets/sidebar/twikoo.pug +1 -1
- package/layout/includes/widgets/sidebar/valine.pug +1 -1
- package/layout/includes/widgets/sidebar/waline.pug +1 -1
- package/layout/includes/widgets/third-party/comments/comment.pug +4 -4
- package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/post.pug +1 -1
- package/layout/tag.pug +1 -1
- package/package.json +1 -1
- package/scripts/event/merge_config.js +0 -7
- package/scripts/helper/related_post.js +1 -1
- package/source/css/_global/index.styl +13 -13
- package/source/css/_layout/article-container.styl +11 -20
- package/source/css/_layout/aside.styl +271 -620
- package/source/css/_layout/console.styl +9 -8
- package/source/css/_layout/header.styl +4 -4
- package/source/css/_layout/sidebar.styl +0 -1
- package/source/css/_page/_about/reward.styl +1 -0
- package/source/css/_page/other.styl +1 -1
- package/source/css/_post/meta.styl +3 -3
- package/source/css/_tags/gallery.styl +0 -1
- package/source/js/covercolor/api.js +1 -1
- package/source/js/covercolor/ave.js +1 -1
- package/source/js/covercolor/local.js +1 -1
- package/source/js/main.js +6 -6
- package/layout/includes/widgets/aside/asideArchive.pug +0 -17
- package/layout/includes/widgets/aside/asideFlipCard.pug +0 -5
package/_config.yml
CHANGED
@@ -112,8 +112,8 @@ carousel: false
|
|
112
112
|
# Aside
|
113
113
|
# 侧边栏
|
114
114
|
aside:
|
115
|
-
# Values: about (info card), newestPost (latest article), allInfo (website information),
|
116
|
-
# 值: about(信息卡), newestPost(最新文章), allInfo(网站信息),
|
115
|
+
# Values: about (info card), newestPost (latest article), allInfo (website information), newest_comment (latest comment)
|
116
|
+
# 值: about(信息卡), newestPost(最新文章), allInfo(网站信息), newest_comment(最新评论)
|
117
117
|
|
118
118
|
# Sticky: Fixed position / noSticky: Not fixed position
|
119
119
|
# Sticky: 固定位置 / noSticky: 不固定位置
|
@@ -157,16 +157,6 @@ aside:
|
|
157
157
|
# Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
|
158
158
|
# --------------------------- end ---------------------------
|
159
159
|
|
160
|
-
# --------------------------- start ---------------------------
|
161
|
-
# Sidebar QR code component
|
162
|
-
# 侧边栏二维码组件
|
163
|
-
flip:
|
164
|
-
favicon: # url (favicon)
|
165
|
-
face: # url (QR code)
|
166
|
-
backface: # url (QR code)
|
167
|
-
backcolor: "var(--efu-blue)" # Background color
|
168
|
-
# --------------------------- end ---------------------------
|
169
|
-
|
170
160
|
# --------------------------- start ---------------------------
|
171
161
|
# article table of contents
|
172
162
|
# 文章目录
|
@@ -187,14 +177,6 @@ aside:
|
|
187
177
|
# - Hexo
|
188
178
|
# --------------------------- end ---------------------------
|
189
179
|
|
190
|
-
# --------------------------- start ---------------------------
|
191
|
-
# Archive
|
192
|
-
# 归档
|
193
|
-
archive:
|
194
|
-
enable: false
|
195
|
-
type: "month" # month: by month / year: by year
|
196
|
-
# --------------------------- end ---------------------------
|
197
|
-
|
198
180
|
# --------------------------- start ---------------------------
|
199
181
|
# Site Info
|
200
182
|
# 网站信息
|
@@ -510,7 +492,7 @@ console:
|
|
510
492
|
tags: true
|
511
493
|
# Archives
|
512
494
|
# 归档
|
513
|
-
archive:
|
495
|
+
archive: "month" # month: by month / year: by year
|
514
496
|
# --------------------------- end ---------------------------
|
515
497
|
|
516
498
|
# --------------------------- start ---------------------------
|
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=url_for("/"))
|
11
|
-
i.solitude.
|
11
|
+
i.solitude.fas.fa-arrow-up-right-from-square
|
12
12
|
=_p('404.button')
|
13
13
|
|
14
14
|
if theme.errorpage.recommendList
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
div#console
|
7
7
|
div.close-btn(onclick="sco.hideConsole()")
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fas.fa-xmark
|
9
9
|
div.console-card-group
|
10
10
|
if use && recentComment.enable
|
11
11
|
div.console-card-group-left
|
@@ -16,7 +16,7 @@ div#console
|
|
16
16
|
| #{_p('console.comment_title')}
|
17
17
|
if theme.recent_comments.enable
|
18
18
|
a.recent-comment-more(href=url_for(theme.recent_comments.page) title=_p('console.recent_comment_more'))
|
19
|
-
i.solitude.
|
19
|
+
i.solitude.fas.fa-circle-chevron-right
|
20
20
|
.console_recentcomments
|
21
21
|
- var sel = '.console-card .console_recentcomments'
|
22
22
|
case use[0]
|
@@ -45,25 +45,39 @@ div#console
|
|
45
45
|
sup= tag.length
|
46
46
|
if card.archive
|
47
47
|
div.console-card.history(onclick="sco.hideConsole()")
|
48
|
-
|
48
|
+
- var archives = getArchiveLength(card.archive ? card.archive : 'year')
|
49
|
+
ul.card-archive-list
|
50
|
+
each value, key in archives
|
51
|
+
li.item
|
52
|
+
a(href=`/archives/${key}/`)
|
53
|
+
span.date= key
|
54
|
+
.count-group
|
55
|
+
span.count= value
|
56
|
+
span.unit= __('console.archive_unit')
|
57
|
+
li.item
|
58
|
+
a(href='/archives/')
|
59
|
+
span.date= __('console.archive_all')
|
60
|
+
.count-group
|
61
|
+
span.count= site.posts.length
|
62
|
+
span.unit= __('console.archive_unit')
|
49
63
|
|
50
64
|
div.button-group
|
51
65
|
div.console-btn-item
|
52
66
|
span.darkmode_switchbutton(onclick="sco.switchDarkMode()", title=_p('console.switch_darkmode'))
|
53
|
-
i.solitude.
|
67
|
+
i.solitude.fas.fa-circle-half-stroke
|
54
68
|
div.console-btn-item#consoleHideAside
|
55
69
|
span.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'))
|
56
70
|
i.solitude.fas.fa-arrows-left-right-to-line
|
57
71
|
if theme.keyboard.enable
|
58
72
|
div.console-btn-item#consoleKeyboard(onclick="sco.switchKeyboard()")
|
59
73
|
span.keyboardSwitch(title=_p('console.switch_keyboard'))
|
60
|
-
i.solitude.
|
74
|
+
i.solitude.fas.fa-keyboard
|
61
75
|
if theme.capsule.enable
|
62
76
|
div.console-btn-item#consoleMusic(onclick="sco.musicToggle()")
|
63
77
|
span.music-switch(title=_p('console.switch_music'))
|
64
|
-
i.solitude.
|
78
|
+
i.solitude.fas.fa-compact-disc
|
65
79
|
if theme.comment.use && theme.comment.commentBarrage
|
66
80
|
div.console-btn-item.on#consoleCommentBarrage(onclick="sco.switchCommentBarrage()")
|
67
81
|
span.commentBarrage
|
68
|
-
i.solitude.
|
82
|
+
i.solitude.fas.fa-comment
|
69
83
|
div.console-mask(onclick="sco.hideConsole()")
|
@@ -44,7 +44,7 @@ if group
|
|
44
44
|
div.footer-title-group
|
45
45
|
h3.footer-title= _p('footer.randomlink')
|
46
46
|
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
47
|
-
i.solitude.
|
47
|
+
i.solitude.fas.fa-arrows-rotate
|
48
48
|
div.footer-links#friend-links-in-footer
|
49
49
|
div#footer-bar
|
50
50
|
div.footer-bar-links
|
@@ -12,5 +12,5 @@ each post in page.posts.find({ parent: { $exists: false } }).data
|
|
12
12
|
each tags in post.tags.data
|
13
13
|
a.article-meta__tags(href=url_for(tags.path) onclick="window.event.cancelBubble=true;")
|
14
14
|
span.tags-punctuation
|
15
|
-
i.solitude.
|
15
|
+
i.solitude.fas.fa-hashtag
|
16
16
|
=tags.name
|
@@ -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">${_p("pagination.next")}</div> <i class="solitude
|
3
|
+
- var options = {mid_size: 1,escape: false,next_text: `<div class="pagination_tips_next">${_p("pagination.next")}</div> <i class="solitude fas fa-chevron-right"></i>`,prev_text: `<i class="solitude fas fa-chevron-left"></i> <div class="pagination_tips_prev">${_p("pagination.prev")}</div>`}
|
4
4
|
!=paginator(options)
|
5
5
|
div.toPageGroup
|
6
6
|
input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')" maxlength="3" title=_p('pagination.to') onkeyup="if (this.value === '0') this.value = ''")
|
7
7
|
a#toPageButton(onclick="sco.toPage()")
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fas.fa-angles-right
|
package/layout/includes/nav.pug
CHANGED
@@ -12,7 +12,7 @@ nav#nav.show
|
|
12
12
|
img(src=theme.site.name.custom, alt=config.title)
|
13
13
|
else if theme.site.name.class === 'text'
|
14
14
|
span.title= theme.site.name.custom
|
15
|
-
i.solitude.
|
15
|
+
i.solitude.fas.fa-home
|
16
16
|
#page-name-mask
|
17
17
|
#page-name
|
18
18
|
a#page-name-text(onclick="sco.toTop()")= title || config.title
|
@@ -13,7 +13,7 @@ if theme.brevity.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.solitude.
|
16
|
+
i.solitude.fas.fa-comment
|
17
17
|
|
18
18
|
#bber-content
|
19
19
|
p.datacont= item.content
|
@@ -38,7 +38,7 @@ if theme.brevity.enable
|
|
38
38
|
.bber-bottom
|
39
39
|
.bber-info
|
40
40
|
.bber-info-time
|
41
|
-
i.solitude.
|
41
|
+
i.solitude.fas.fa-calendar-day
|
42
42
|
time.datetime(datetime=moment(item.date).format())
|
43
43
|
if item.location
|
44
44
|
.bber-info-location
|
@@ -46,11 +46,11 @@ if theme.brevity.enable
|
|
46
46
|
= item.location
|
47
47
|
if item.link
|
48
48
|
a.bber-content-link(href=url_for(item.link) target="_blank")
|
49
|
-
i.solitude.
|
49
|
+
i.solitude.fas.fa-link
|
50
50
|
= _p('essay.link')
|
51
51
|
if item.content
|
52
52
|
a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
|
53
|
-
i.solitude.
|
53
|
+
i.solitude.fas.fa-comment
|
54
54
|
#bber-tips
|
55
55
|
if theme.brevity.strip === -1
|
56
56
|
= _p('essay.tip0')
|
@@ -3,52 +3,52 @@
|
|
3
3
|
div#rightMenu
|
4
4
|
div.rightMenu-group.rightMenu-small
|
5
5
|
div.rightMenu-item#menu-backward
|
6
|
-
i.solitude.
|
6
|
+
i.solitude.fas.fa-arrow-left
|
7
7
|
div.rightMenu-item#menu-forward
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fas.fa-arrow-right
|
9
9
|
div.rightMenu-item#menu-refresh
|
10
|
-
i.solitude.
|
10
|
+
i.solitude.fas.fa-arrows-rotate
|
11
11
|
div.rightMenu-item#menu-top
|
12
|
-
i.solitude.
|
12
|
+
i.solitude.fas.fa-arrow-up
|
13
13
|
div.rightMenu-group.rightMenu-line.rightMenuPlugin
|
14
14
|
div.rightMenu-item#menu-copytext
|
15
|
-
i.solitude.
|
15
|
+
i.solitude.fas.fa-clone
|
16
16
|
span= _p('right_menu.copy')
|
17
17
|
div.rightMenu-item#menu-pastetext
|
18
|
-
i.solitude.
|
18
|
+
i.solitude.fas.fa-clipboard
|
19
19
|
span= _p('right_menu.paste')
|
20
20
|
if theme.comment.use
|
21
21
|
div.rightMenu-item#menu-commenttext
|
22
|
-
i.solitude.
|
22
|
+
i.solitude.fas.fa-comment-medical
|
23
23
|
span= _p('right_menu.comment')
|
24
24
|
div.rightMenu-item#menu-newwindow
|
25
|
-
i.solitude.
|
25
|
+
i.solitude.far.fa-window-maximize
|
26
26
|
span= _p('right_menu.new')
|
27
27
|
div.rightMenu-item#menu-copylink
|
28
|
-
i.solitude.
|
28
|
+
i.solitude.fas.fa-link
|
29
29
|
span= _p('right_menu.link')
|
30
30
|
div.rightMenu-item#menu-copyimg
|
31
|
-
i.solitude.
|
31
|
+
i.solitude.fas.fa-clone
|
32
32
|
span= _p('right_menu.img')
|
33
33
|
div.rightMenu-item#menu-downloadimg
|
34
|
-
i.solitude.
|
34
|
+
i.solitude.fas.fa-cloud-arrow-down
|
35
35
|
span= _p('right_menu.downloadImg')
|
36
36
|
if theme.search.enable
|
37
37
|
div.rightMenu-item#menu-search
|
38
|
-
i.solitude.
|
38
|
+
i.solitude.fas.fa-magnifying-glass
|
39
39
|
span= _p('right_menu.search')
|
40
40
|
if theme.capsule.enable
|
41
41
|
div.rightMenu-item#menu-music-toggle
|
42
|
-
i.solitude.
|
42
|
+
i.solitude.fas.fa-play
|
43
43
|
span= _p('right_menu.music.start')
|
44
44
|
div.rightMenu-item#menu-music-back
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fas.fa-backward
|
46
46
|
span= _p('right_menu.music.back')
|
47
47
|
div.rightMenu-item#menu-music-forward
|
48
|
-
i.solitude.
|
48
|
+
i.solitude.fas.fa-forward
|
49
49
|
span= _p('right_menu.music.forward')
|
50
50
|
div.rightMenu-item#menu-music-copyMusicName
|
51
|
-
i.solitude.
|
51
|
+
i.solitude.fas.fa-clone
|
52
52
|
span= _p('right_menu.music.copyMusicName')
|
53
53
|
if custom_list.length > 0
|
54
54
|
div.rightMenu-group.rightMenu-line.rightMenuOther
|
@@ -59,10 +59,10 @@ div#rightMenu
|
|
59
59
|
div.rightMenu-group.rightMenu-line.rightMenuOther
|
60
60
|
if theme.right_menu.commentBarrage && theme.comment.use && theme.comment.commentBarrage
|
61
61
|
div.rightMenu-item#menu-commentBarrage(onclick="sco.switchCommentBarrage()")
|
62
|
-
i.solitude.
|
62
|
+
i.solitude.fas.fa-comment
|
63
63
|
span.menu-commentBarrage-text= _p('right_menu.barrage.close')
|
64
64
|
div.rightMenu-item#menu-darkmode(onclick="sco.switchDarkMode()")
|
65
|
-
i.solitude.
|
65
|
+
i.solitude.fas.fa-circle-half-stroke
|
66
66
|
case theme.display_mode.type
|
67
67
|
when 'auto'
|
68
68
|
when 'light'
|
@@ -71,7 +71,7 @@ div#rightMenu
|
|
71
71
|
span.menu-darkmode-text= _p('right_menu.dark')
|
72
72
|
if theme.right_menu.translate
|
73
73
|
div.rightMenu-item#menu-translate
|
74
|
-
i.solitude.
|
74
|
+
i.solitude.fas.fa-language
|
75
75
|
case theme.translate.defaultEncoding
|
76
76
|
when 2
|
77
77
|
span= _p('right_menu.chs_to_cht')
|
@@ -26,12 +26,12 @@ div#sidebar(style="zoom: 1;")
|
|
26
26
|
span.sidebar-menu-item-title= __('sidebar.function')
|
27
27
|
div.sidebar-menu-item
|
28
28
|
span.darkmode_switchbutton.menu-child(onclick="sco.switchDarkMode()")
|
29
|
-
i.solitude.
|
29
|
+
i.solitude.fas.fa-circle-half-stroke
|
30
30
|
span= __('sidebar.darkmode')
|
31
31
|
include ./widgets/nav/group
|
32
32
|
include ./widgets/nav/menu.pug
|
33
33
|
span.sidebar-menu-item-title= __('page.tag')
|
34
|
-
div.card-
|
34
|
+
div.card-tags
|
35
35
|
div.card-tag-cloud
|
36
36
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
37
37
|
a(href=url_for(tag.path))= tag.name
|
@@ -40,8 +40,5 @@ div#sidebar(style="zoom: 1;")
|
|
40
40
|
span.sidebar-menu-item-title= __('sidebar.siteinfo')
|
41
41
|
.webinfo
|
42
42
|
.webinfo-item
|
43
|
-
.
|
44
|
-
|
45
|
-
.item-name= __('aside.wordcount')
|
46
|
-
.item-count= totalcount(site)
|
47
|
-
|
43
|
+
.item-name= __('aside.wordcount')
|
44
|
+
.item-count= totalcount(site)
|
@@ -12,12 +12,12 @@ else if(is_page() || is_archive() || is_tag() || is_category())
|
|
12
12
|
- Sticky = aside.page.Sticky ? aside.page.Sticky.split(',') : null
|
13
13
|
if noSticky || Sticky
|
14
14
|
.aside-content#aside-content
|
15
|
-
each item in noSticky
|
15
|
+
each item in noSticky || []
|
16
16
|
include ./asideSwitch.pug
|
17
17
|
.sticky_layout
|
18
18
|
if showToc
|
19
19
|
include ./asideToc.pug
|
20
|
-
each item in Sticky
|
20
|
+
each item in Sticky || []
|
21
21
|
include ./asideSwitch.pug
|
22
22
|
else
|
23
23
|
style.
|
@@ -1,20 +1,19 @@
|
|
1
1
|
.card-widget.card-info
|
2
2
|
.card-content
|
3
3
|
.card-info-avatar.is-center
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.avatar
|
7
|
-
img
|
4
|
+
.top-group
|
5
|
+
.sayhi#sayhi(onclick="sco.changeWittyWord()")
|
6
|
+
.avatar
|
7
|
+
img(alt=_p('aside.avatar'), src=theme.aside.my_card.author.img)
|
8
8
|
if theme.aside.my_card.author.sticker
|
9
|
-
.
|
10
|
-
img.
|
11
|
-
.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
.
|
16
|
-
|
17
|
-
.card-info-social-icons.is-center
|
9
|
+
.sticker
|
10
|
+
img.sticker-img(src=theme.aside.my_card.author.sticker, alt=_p('aside.sticker'))
|
11
|
+
.description!= theme.aside.my_card.content
|
12
|
+
.bottom-group
|
13
|
+
span.left
|
14
|
+
.name= config.author
|
15
|
+
.desc!= theme.aside.my_card.description
|
16
|
+
.social-icons.is-center
|
18
17
|
each value, label in theme.aside.my_card.information || {}
|
19
18
|
- var array = value.split('||')
|
20
19
|
a.social-icon(href=url_for(trim(array[0])), title=label)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.card-widget.card-recent-post
|
2
2
|
.item-headline
|
3
|
-
i.solitude.
|
3
|
+
i.solitude.fas.fa-map
|
4
4
|
span= _p('aside.newpost')
|
5
5
|
.aside-list
|
6
6
|
each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1).slice(0, 5)
|
@@ -11,4 +11,4 @@
|
|
11
11
|
.content
|
12
12
|
span.title(href=url_for(post.path) title=post.title)= post.title
|
13
13
|
if post.categories.data[0]
|
14
|
-
span.
|
14
|
+
span.categories(href=url_for(post.path))= post.categories.data[0].name
|
@@ -1,9 +1,9 @@
|
|
1
1
|
.card-widget.card-recent-comment
|
2
2
|
.item-headline
|
3
|
-
i.solitude.
|
3
|
+
i.solitude.fas.fa-comment
|
4
4
|
span= _p('aside.newcomment')
|
5
5
|
if theme.recent_comments.enable
|
6
6
|
a.recent-comment-more(href=url_for(theme.recent_comments.page) title=_p('console.recent_comment_more'))
|
7
|
-
i.solitude.
|
7
|
+
i.solitude.fas.fa-circle-chevron-right
|
8
8
|
.aside-list
|
9
9
|
include ../third-party/news-comment/newest-comment.pug
|
@@ -1,8 +1,6 @@
|
|
1
1
|
case item
|
2
2
|
when 'about'
|
3
3
|
include ./asideInfoCard.pug
|
4
|
-
when 'flip'
|
5
|
-
include ./asideFlipCard.pug
|
6
4
|
when 'newestPost'
|
7
5
|
include ./asideNewestPost.pug
|
8
6
|
when 'allInfo'
|
@@ -15,5 +13,3 @@ case item
|
|
15
13
|
- const custom = site.data?.aside?.find((i) => i.name === item)
|
16
14
|
if custom
|
17
15
|
include ./asideCustom.pug
|
18
|
-
else
|
19
|
-
include ../../page/default.pug
|
@@ -1,48 +1,36 @@
|
|
1
1
|
.webinfo
|
2
2
|
if theme.aside.siteinfo.postcount
|
3
3
|
.webinfo-item
|
4
|
-
.
|
5
|
-
i.item-icon.fa-solid.fa-folder-closed
|
6
|
-
.item-name= __('aside.postcount')
|
4
|
+
.item-name= __('aside.postcount')
|
7
5
|
.item-count= site.posts.length
|
8
6
|
if theme.busuanzi
|
9
7
|
if theme.aside.siteinfo.pv
|
10
8
|
.webinfo-item
|
11
|
-
.
|
12
|
-
i.item-icon.solitude.fa-solid.fa-eye
|
13
|
-
.item-name= __('aside.pv')
|
9
|
+
.item-name= __('aside.pv')
|
14
10
|
if theme.busuanzi_use === 0
|
15
11
|
span#busuanzi_value_site_pv
|
16
|
-
i.solitude.
|
12
|
+
i.solitude.fas.fa-spinner.fa-spin
|
17
13
|
else
|
18
14
|
span#busuanzi_site_pv
|
19
|
-
i.solitude.
|
15
|
+
i.solitude.fas.fa-spinner.fa-spin
|
20
16
|
if theme.aside.siteinfo.uv
|
21
17
|
.webinfo-item
|
22
|
-
.
|
23
|
-
i.item-icon.solitude.fa-solid.fa-user
|
24
|
-
.item-name= __('aside.uv')
|
18
|
+
.item-name= __('aside.uv')
|
25
19
|
if theme.busuanzi_use === 0
|
26
20
|
span#busuanzi_value_site_uv
|
27
|
-
i.solitude.
|
21
|
+
i.solitude.fas.fa-spinner.fa-spin
|
28
22
|
else
|
29
23
|
span#busuanzi_site_uv
|
30
|
-
i.solitude.
|
24
|
+
i.solitude.fas.fa-spinner.fa-spin
|
31
25
|
if theme.aside.siteinfo.runtimeenable
|
32
26
|
.webinfo-item
|
33
|
-
.
|
34
|
-
i.item-icon.solitude.fa-solid.fa-calendar-day
|
35
|
-
.item-name= __('aside.runtime')
|
27
|
+
.item-name= __('aside.runtime')
|
36
28
|
.item-count#runtimeshow
|
37
29
|
if theme.aside.siteinfo.updatetime
|
38
30
|
.webinfo-item
|
39
|
-
.
|
40
|
-
i.item-icon.solitude.fa-solid.fa-arrows-rotate
|
41
|
-
.item-name= __('aside.updatetime')
|
31
|
+
.item-name= __('aside.updatetime')
|
42
32
|
time.item-count(datetime=new Date())
|
43
33
|
if theme.wordcount && theme.aside.siteinfo.wordcount
|
44
34
|
.webinfo-item
|
45
|
-
.
|
46
|
-
i.item-icon.solitude.fa-solid.fa-file-word
|
47
|
-
.item-name= __('aside.wordcount')
|
35
|
+
.item-name= __('aside.wordcount')
|
48
36
|
.item-count= totalcount(site)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
.bbTimeList.container#bbTimeList(class=is_home_first_page() ? '' : 'more-page')
|
2
|
-
i.bber-logo.solitude.
|
2
|
+
i.bber-logo.solitude.fas.fa-newspaper(onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
|
3
3
|
.swiper-container.swiper-no-swiping.swiper-container-initialized.swiper-container-vertical.swiper-container-pointer-events#bbtalk(tabindex="-1" onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
|
4
4
|
.swiper-wrapper#bber-talk
|
5
5
|
each item, i in site.data.brevity.slice(0, 10)
|
6
6
|
.li-style.swiper-slide
|
7
7
|
| #{item.content}
|
8
8
|
if item.image
|
9
|
-
i.solitude.
|
9
|
+
i.solitude.fas.fa-image
|
10
10
|
else if item.aplayer
|
11
|
-
i.solitude.
|
11
|
+
i.solitude.fas.fa-disc
|
12
12
|
else if item.video || item.bilibili
|
13
|
-
i.solitude.
|
13
|
+
i.solitude.fas.fa-video
|
14
14
|
else if item.link
|
15
|
-
i.solitude.
|
16
|
-
i.bber-gotobb.solitude.
|
15
|
+
i.solitude.fas.fa-link
|
16
|
+
i.bber-gotobb.solitude.fas.fa-circle-chevron-right(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('${url_for(theme.brevity.page)}')`)
|
@@ -8,9 +8,9 @@
|
|
8
8
|
a(href=url_for(item.path))= item.name
|
9
9
|
div.category-bar-right
|
10
10
|
- let categories = site.categories.find({parent: {$exists: false}})
|
11
|
-
- let
|
12
|
-
if
|
11
|
+
- let word_count = categories.map(category => category.name).join('').length
|
12
|
+
if word_count > 40 || categories.data.length > 10
|
13
13
|
.category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
|
14
|
-
i.solitude.
|
14
|
+
i.solitude.fas.fa-angles-right
|
15
15
|
if theme.page.categories
|
16
|
-
a.category-bar-more(href=url_for('/categories/'))= __('more')
|
16
|
+
a.category-bar-more(href=url_for('/categories/'))= __('more')
|
@@ -7,7 +7,7 @@ mixin info
|
|
7
7
|
div.recent-post-info-top-tips
|
8
8
|
if post.sticky && is_home()
|
9
9
|
span.article-meta.sticky-warp
|
10
|
-
i.solitude.
|
10
|
+
i.solitude.fas.fa-thumbtack.sticky.orange
|
11
11
|
span.sticky.orange= _p('home.sticky')
|
12
12
|
each category in post.categories.data
|
13
13
|
span.original= category.name
|
@@ -24,7 +24,7 @@ mixin info
|
|
24
24
|
each tag in post.tags.data
|
25
25
|
a.article-meta__tags(href=url_for(tag.path), onclick="event.stopPropagation();")
|
26
26
|
span.tags-punctuation
|
27
|
-
i.solitude.
|
27
|
+
i.solitude.fas.fa-hashtag
|
28
28
|
=tag.name
|
29
29
|
|
30
30
|
span.post-meta-date
|
@@ -18,7 +18,7 @@ mixin todayCardContent
|
|
18
18
|
if filteredPosts.length > 0
|
19
19
|
.banner-button-group
|
20
20
|
a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
|
21
|
-
i.solitude.
|
21
|
+
i.solitude.fas.fa-circle-plus
|
22
22
|
span.banner-button-text= _p('home.recommendmore')
|
23
23
|
|
24
24
|
case theme.hometop.recommendList.url.startsWith('/')
|
@@ -6,11 +6,11 @@ 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.
|
9
|
+
i.solitude.fas.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.
|
13
|
+
i.solitude.fas.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);")
|
@@ -21,8 +21,8 @@ if theme.console.enable
|
|
21
21
|
if !theme.rightside.percent
|
22
22
|
.nav-button#nav-totop(onclick="sco.toTop()")
|
23
23
|
a.totopbtn
|
24
|
-
i.solitude.
|
24
|
+
i.solitude.fas.fa-arrow-up
|
25
25
|
span#percent= "0"
|
26
26
|
#toggle-menu
|
27
27
|
a.site-page
|
28
|
-
i.solitude.
|
28
|
+
i.solitude.fas.fa-bars
|
@@ -14,7 +14,7 @@ if site.data.about.rewardList && site.data.about.award.enable
|
|
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=
|
17
|
+
.reward-list-item-money(style="background-color:" + reward.color)
|
18
18
|
if reward.icon
|
19
19
|
i.solitude(class=reward.icon)
|
20
20
|
| ¥ #{reward.money}
|
@@ -23,7 +23,7 @@ if site.data.about.rewardList && site.data.about.award.enable
|
|
23
23
|
.post-reward
|
24
24
|
.post-reward(onclick="AddRewardMask()")
|
25
25
|
.reward-button(title=_p('award.tipping'))
|
26
|
-
i.solitude.
|
26
|
+
i.solitude.fas.fa-heart
|
27
27
|
= _p('award.tipping')
|
28
28
|
.reward-main
|
29
29
|
ul.reward-all
|