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.
- package/.github/FUNDING.yml +1 -1
- package/README.md +26 -29
- package/README_zh-Hant.md +1 -1
- package/{README_en-US.md → README_zh_CN.md} +29 -26
- package/_config.yml +153 -590
- package/languages/default.yml +2 -1
- package/languages/en.yml +2 -1
- package/languages/zh-CN.yml +1 -1
- package/languages/zh-TW.yml +1 -1
- package/layout/404.pug +1 -1
- package/layout/includes/console.pug +8 -8
- package/layout/includes/footer.pug +6 -6
- package/layout/includes/head/config.pug +5 -5
- package/layout/includes/inject/body.pug +1 -0
- package/layout/includes/inject/head.pug +1 -1
- package/layout/includes/layout.pug +0 -1
- package/layout/includes/mixins/articleSort.pug +3 -1
- package/layout/includes/mixins/pagination.pug +2 -2
- package/layout/includes/nav.pug +2 -1
- package/layout/includes/page/categories.pug +3 -2
- package/layout/includes/page/says.pug +5 -5
- package/layout/includes/page/tags.pug +3 -2
- package/layout/includes/rightmenu.pug +19 -20
- package/layout/includes/sidebar.pug +1 -1
- package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
- package/layout/includes/widgets/aside/asideNewestPost.pug +3 -3
- package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +10 -10
- package/layout/includes/widgets/home/bbTimeList.pug +7 -9
- package/layout/includes/widgets/home/carousel.pug +3 -1
- package/layout/includes/widgets/home/categoryBar.pug +1 -1
- package/layout/includes/widgets/home/hot/artalk.pug +45 -0
- package/layout/includes/widgets/home/hot/index.pug +3 -1
- package/layout/includes/widgets/home/hot/twikoo.pug +1 -1
- package/layout/includes/widgets/home/postList.pug +4 -2
- package/layout/includes/widgets/home/topGroup.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +9 -5
- package/layout/includes/widgets/page/about/award.pug +1 -1
- 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/equipment/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +2 -2
- 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 +10 -10
- package/layout/includes/widgets/post/post-ai.pug +1 -1
- package/layout/includes/widgets/post/postInfo.pug +20 -18
- package/layout/includes/widgets/third-party/comments/artalk.pug +7 -0
- package/layout/includes/widgets/third-party/comments/comment.pug +4 -4
- package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -4
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/includes/widgets/third-party/tianli-talk.pug +1 -1
- package/layout/post.pug +3 -2
- package/layout/tag.pug +3 -2
- package/package.json +2 -2
- package/plugins.yml +9 -9
- package/scripts/helper/related_post.js +1 -1
- package/scripts/helper/stylus.js +1 -0
- package/source/css/_comments/comment.styl +3 -4
- package/source/css/_global/index.styl +15 -14
- package/source/css/_highlight/index.styl +2 -2
- package/source/css/_highlight/theme/default.styl +1 -1
- package/source/css/_highlight/theme/mac.styl +1 -1
- package/source/css/_layout/article-container.styl +13 -4
- package/source/css/_layout/aside.styl +4 -3
- package/source/css/_layout/console.styl +2 -1
- package/source/css/_layout/footer.styl +1 -1
- package/source/css/_layout/header.styl +62 -12
- package/source/css/_page/_about/author.styl +4 -1
- package/source/css/_page/_about/buff.styl +1 -1
- package/source/css/_page/_about/contentinfo.styl +3 -2
- package/source/css/_page/_about/maxim.styl +1 -1
- package/source/css/_page/_home/category-bar.styl +19 -13
- package/source/css/_page/_home/home-top.styl +2 -0
- package/source/css/_page/_home/hot-tip.styl +2 -1
- package/source/css/_page/category.styl +0 -1
- package/source/css/_post/copyright.styl +104 -105
- package/source/css/_post/meta.styl +1 -1
- package/source/css/_post/pagination.styl +1 -1
- package/source/css/_post/tools.styl +1 -1
- package/source/css/_search/algolia-search.styl +0 -6
- package/source/css/_tags/image.styl +4 -0
- package/source/css/_tags/timeline.styl +3 -0
- package/source/js/covercolor/local.js +10 -4
- package/source/js/main.js +5 -5
- package/source/js/tw_cn.js +0 -3
package/languages/default.yml
CHANGED
package/languages/en.yml
CHANGED
package/languages/zh-CN.yml
CHANGED
package/languages/zh-TW.yml
CHANGED
package/layout/404.pug
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
- const { recentComment, card } = theme.console
|
2
|
-
- const
|
2
|
+
- const cache = recentComment.storage
|
3
3
|
- const limit = 6
|
4
4
|
- const { use } = theme.comment
|
5
5
|
|
6
6
|
div#console
|
7
7
|
div.close-btn(onclick="sco.hideConsole()")
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fa-solid.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.fa-solid.fa-circle-chevron-right
|
20
20
|
.console_recentcomments
|
21
21
|
- var sel = '.console-card .console_recentcomments'
|
22
22
|
case use[0]
|
@@ -50,20 +50,20 @@ div#console
|
|
50
50
|
div.button-group
|
51
51
|
div.console-btn-item
|
52
52
|
span.darkmode_switchbutton(onclick="sco.switchDarkMode()", title=_p('console.switch_darkmode'))
|
53
|
-
i.solitude.
|
53
|
+
i.solitude.fa-solid.fa-circle-half-stroke
|
54
54
|
div.console-btn-item#consoleHideAside
|
55
55
|
span.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'))
|
56
|
-
i.solitude.
|
56
|
+
i.solitude.fa-solid.fa-mattress-pillow
|
57
57
|
if theme.keyboard.enable
|
58
58
|
div.console-btn-item#consoleKeyboard(onclick="sco.switchKeyboard()")
|
59
59
|
span.keyboardSwitch(title=_p('console.switch_keyboard'))
|
60
|
-
i.solitude.
|
60
|
+
i.solitude.fa-solid.fa-keyboard
|
61
61
|
if theme.capsule.enable
|
62
62
|
div.console-btn-item#consoleMusic(onclick="sco.musicToggle()")
|
63
63
|
span.music-switch(title=_p('console.switch_music'))
|
64
|
-
i.solitude.
|
64
|
+
i.solitude.fa-solid.fa-compact-disc
|
65
65
|
if theme.comment.use && theme.comment.commentBarrage
|
66
66
|
div.console-btn-item.on#consoleCommentBarrage(onclick="sco.switchCommentBarrage()")
|
67
67
|
span.commentBarrage
|
68
|
-
i.solitude.
|
68
|
+
i.solitude.fa-solid.fa-comment
|
69
69
|
div.console-mask(onclick="sco.hideConsole()")
|
@@ -42,7 +42,7 @@ div#st-footer
|
|
42
42
|
div.footer-title-group
|
43
43
|
h3.footer-title= _p('footer.randomlink')
|
44
44
|
button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fa-solid.fa-arrows-rotate
|
46
46
|
div.footer-links#friend-links-in-footer
|
47
47
|
div#footer-bar
|
48
48
|
div.footer-bar-links
|
@@ -57,16 +57,16 @@ div#footer-bar
|
|
57
57
|
each item in theme.footer.links
|
58
58
|
a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
|
59
59
|
a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
|
60
|
-
i.solitude.
|
61
|
-
i.solitude.
|
62
|
-
i.solitude.
|
63
|
-
i.solitude.
|
60
|
+
i.solitude.fa-solid.fa-copyright
|
61
|
+
i.solitude.fa-brands.fa-creative-commons-by
|
62
|
+
i.solitude.fa-brands.fa-creative-commons-nc
|
63
|
+
i.solitude.fa-brands.fa-creative-commons-nd
|
64
64
|
if theme.footer.privacy
|
65
65
|
div.needEndHide#cookies-window
|
66
66
|
div.cookies-window-title= __('cookies.title')
|
67
67
|
div.cookies-window-content
|
68
68
|
span.cookies-tip= __('cookies.tip')
|
69
69
|
a.cookies-link(href=url_for(theme.footer.privacy), title=_p('cookies.privacy'))
|
70
|
-
i.solitude.
|
70
|
+
i.solitude.fa-solid.fa-circle-chevron-right
|
71
71
|
if theme.comment.use && theme.comment.commentBarrage
|
72
72
|
div.comment-barrage.needEndHide
|
@@ -166,11 +166,11 @@ script.
|
|
166
166
|
lang: !{JSON.stringify(lang)},
|
167
167
|
aside: {
|
168
168
|
sayhello: {
|
169
|
-
morning:
|
170
|
-
noon:
|
171
|
-
afternoon:
|
172
|
-
night:
|
173
|
-
goodnight:
|
169
|
+
morning: "!{theme.aside.card.sayhello.morning}",
|
170
|
+
noon: "!{theme.aside.card.sayhello.noon}",
|
171
|
+
afternoon: "!{theme.aside.card.sayhello.afternoon}",
|
172
|
+
night: "!{theme.aside.card.sayhello.night}",
|
173
|
+
goodnight: "!{theme.aside.card.sayhello.goodnight}",
|
174
174
|
},
|
175
175
|
sayhello2: [!{sayhello2}],
|
176
176
|
sayhello3: {
|
@@ -2,7 +2,7 @@ each item in theme.verify_site || []
|
|
2
2
|
meta(name=item.name, content=item.content)
|
3
3
|
|
4
4
|
link(rel="canonical" href=urlNoIndex())
|
5
|
-
link(rel="stylesheet", href=url_for(theme.cdn.
|
5
|
+
link(rel="stylesheet", href=url_for(theme.cdn.fontawesome))
|
6
6
|
|
7
7
|
// aplayer
|
8
8
|
if theme.capsule.enable || theme.music.enable
|
@@ -11,4 +11,6 @@ each post in page.posts.find({ parent: { $exists: false } }).data
|
|
11
11
|
.article-sort-item-tags
|
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
|
-
span.tags-punctuation
|
14
|
+
span.tags-punctuation
|
15
|
+
i.solitude.fa-solid.fa-hashtag
|
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 fa-solid fa-chevron-right"></i>`,prev_text: `<i class="solitude fa-solid 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.fa-solid.fa-angles-right
|
package/layout/includes/nav.pug
CHANGED
@@ -3,7 +3,7 @@ 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.solitude.
|
6
|
+
i.back-home-button-icon.solitude.fab.fa-squarespace
|
7
7
|
include ./widgets/nav/group
|
8
8
|
a#site-name(href=url_for("/"), title=_p('nav.site_name_title'))
|
9
9
|
if theme.site.name.class === 'i_class'
|
@@ -12,6 +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.fa-solid.fa-home
|
15
16
|
#page-name-mask
|
16
17
|
#page-name
|
17
18
|
a#page-name-text(onclick="sco.toTop()")= title || config.title
|
@@ -4,5 +4,6 @@ h1.page-title= _p('page.category')
|
|
4
4
|
each item in site.categories.find({ parent: { $exists: false } }).data
|
5
5
|
a(href=url_for(item.path))
|
6
6
|
span.tags-punctuation
|
7
|
-
|
8
|
-
|
7
|
+
i.solitude.fa-solid.fa-hashtag
|
8
|
+
= item.name
|
9
|
+
span.tagsPageCount= item.length
|
@@ -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.solitude.
|
16
|
+
i.solitude.fa-solid.fa-comment
|
17
17
|
|
18
18
|
#bber-content
|
19
19
|
p.datacont= item.content
|
@@ -38,19 +38,19 @@ if theme.says.enable
|
|
38
38
|
.bber-bottom
|
39
39
|
.bber-info
|
40
40
|
.bber-info-time
|
41
|
-
i.solitude.
|
41
|
+
i.solitude.fa-solid.fa-calendar-days
|
42
42
|
time.datetime(datetime=moment(item.date).format())
|
43
43
|
if item.location
|
44
44
|
.bber-info-location
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fa-solid.fa-map
|
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.fa-solid.fa-link
|
50
50
|
| 链接
|
51
51
|
if item.content
|
52
52
|
a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
|
53
|
-
i.solitude.
|
53
|
+
i.solitude.fa-solid.fa-comment
|
54
54
|
#bber-tips
|
55
55
|
if theme.says.strip === -1
|
56
56
|
| - 已展开所有短文 -
|
@@ -4,5 +4,6 @@ h1.page-title= __('page.tag')
|
|
4
4
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
5
5
|
a(href=url_for(tag.path))
|
6
6
|
span.tags-punctuation
|
7
|
-
|
8
|
-
|
7
|
+
i.solitude.fa-solid.fa-hashtag
|
8
|
+
= tag.name
|
9
|
+
span.tagsPageCount= tag.length
|
@@ -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.fa-solid.fa-arrow-left
|
7
7
|
div.rightMenu-item#menu-forward
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fa-solid.fa-arrow-right
|
9
9
|
div.rightMenu-item#menu-refresh
|
10
|
-
i.solitude.
|
10
|
+
i.solitude.fa-solid.fa-arrow-rotate-right
|
11
11
|
div.rightMenu-item#menu-top
|
12
|
-
i.solitude.
|
12
|
+
i.solitude.fa-solid.fa-arrow-up
|
13
13
|
div.rightMenu-group.rightMenu-line.rightMenuPlugin
|
14
14
|
div.rightMenu-item#menu-copytext
|
15
|
-
i.solitude.
|
15
|
+
i.solitude.fa-solid.fa-clone
|
16
16
|
span= _p('right_menu.copy')
|
17
17
|
div.rightMenu-item#menu-pastetext
|
18
|
-
i.solitude.
|
18
|
+
i.solitude.fa-solid.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.fa-solid.fa-comment-medical
|
23
23
|
span= _p('right_menu.comment')
|
24
24
|
div.rightMenu-item#menu-newwindow
|
25
|
-
i.solitude.
|
25
|
+
i.solitude.fa-regular.fa-window-maximize
|
26
26
|
span= _p('right_menu.new')
|
27
27
|
div.rightMenu-item#menu-copylink
|
28
|
-
i.solitude.
|
28
|
+
i.solitude.fa-solid.fa-link
|
29
29
|
span= _p('right_menu.link')
|
30
30
|
div.rightMenu-item#menu-copyimg
|
31
|
-
i.solitude.
|
31
|
+
i.solitude.fa-solid.fa-clone
|
32
32
|
span= _p('right_menu.img')
|
33
33
|
div.rightMenu-item#menu-downloadimg
|
34
|
-
i.solitude.
|
34
|
+
i.solitude.fa-solid.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.fa-solid.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.fa-solid.fa-play
|
43
43
|
span= _p('right_menu.music.start')
|
44
44
|
div.rightMenu-item#menu-music-back
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fa-solid.fa-backward
|
46
46
|
span= _p('right_menu.music.back')
|
47
47
|
div.rightMenu-item#menu-music-forward
|
48
|
-
i.solitude.
|
48
|
+
i.solitude.fa-solid.fa-forward
|
49
49
|
span= _p('right_menu.music.forward')
|
50
50
|
div.rightMenu-item#menu-music-copyMusicName
|
51
|
-
i.solitude.
|
51
|
+
i.solitude.fa-solid.fa-clone
|
52
52
|
span= _p('right_menu.music.copyMusicName')
|
53
53
|
div.rightMenu-group.rightMenu-line.rightMenuOther
|
54
54
|
each item,index in custom_list
|
@@ -58,10 +58,10 @@ div#rightMenu
|
|
58
58
|
div.rightMenu-group.rightMenu-line.rightMenuOther
|
59
59
|
if theme.right_menu.commentBarrage && theme.comment.use && theme.comment.commentBarrage
|
60
60
|
div.rightMenu-item#menu-commentBarrage(onclick="sco.switchCommentBarrage()")
|
61
|
-
i.solitude.
|
61
|
+
i.solitude.fa-solid.fa-comment
|
62
62
|
span.menu-commentBarrage-text= _p('right_menu.barrage.close')
|
63
63
|
div.rightMenu-item#menu-darkmode(onclick="sco.switchDarkMode()")
|
64
|
-
i.solitude.
|
64
|
+
i.solitude.fa-solid.fa-circle-half-stroke
|
65
65
|
case theme.display_mode.type
|
66
66
|
when 'auto'
|
67
67
|
when 'light'
|
@@ -70,11 +70,10 @@ div#rightMenu
|
|
70
70
|
span.menu-darkmode-text= _p('right_menu.dark')
|
71
71
|
if theme.right_menu.translate.enable
|
72
72
|
div.rightMenu-item#menu-translate
|
73
|
+
i.solitude.fa-solid.fa-language
|
73
74
|
case theme.right_menu.translate.defaultEncoding
|
74
75
|
when 2
|
75
|
-
i.solitude.st-panben-line
|
76
76
|
span= _p('right_menu.chs_to_cht')
|
77
77
|
when 1
|
78
|
-
i.solitude.st-jianben-line
|
79
78
|
span= _p('right_menu.cht_to_chs')
|
80
79
|
div#rightmenu-mask
|
@@ -20,7 +20,7 @@ div#sidebar(style="zoom: 1;")
|
|
20
20
|
span.sidebar-menu-item-title= __('sidebar.function')
|
21
21
|
div.sidebar-menu-item
|
22
22
|
span.darkmode_switchbutton.menu-child(onclick="sco.switchDarkMode()")
|
23
|
-
i.solitude.
|
23
|
+
i.solitude.fa-solid.fa-circle-half-stroke
|
24
24
|
span= __('sidebar.darkmode')
|
25
25
|
include ./widgets/nav/group
|
26
26
|
include ./widgets/nav/menu.pug
|
@@ -63,7 +63,7 @@
|
|
63
63
|
a.social-icon(href=url_for(trim(array[0])), title=label)
|
64
64
|
i.solitude(class=array[1])
|
65
65
|
span.more-info(onclick="document.querySelector('.social-icons').classList.toggle('show')")
|
66
|
-
i.solitude.
|
66
|
+
i.solitude.fa-solid.fa-ellipsis-vertical
|
67
67
|
a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
|
68
68
|
.avatar-img
|
69
69
|
img(src=theme.aside.card.author.img alt=_p('aside.avatar'))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.card-widget.card-recent-post
|
2
2
|
.item-headline
|
3
|
-
i.solitude.
|
3
|
+
i.solitude.fa-solid.fa-map
|
4
4
|
span= _p('aside.newpost')
|
5
5
|
.aside-list
|
6
6
|
- let index = 1
|
@@ -10,7 +10,7 @@
|
|
10
10
|
a.thumbnail(href=url_for(post.path) title=post.title)
|
11
11
|
img(alt=post.title src=url_for(post.cover))
|
12
12
|
.content
|
13
|
-
|
13
|
+
span.title(href=url_for(post.path) title=post.title)= post.title
|
14
14
|
if post.categories.data[0]
|
15
|
-
|
15
|
+
span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
16
16
|
- index++
|
@@ -1,9 +1,9 @@
|
|
1
1
|
.card-widget.card-recent-comment
|
2
2
|
.item-headline
|
3
|
-
i.solitude.
|
3
|
+
i.solitude.fa-solid.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.fa-solid.fa-circle-chevron-right
|
8
8
|
.aside-list
|
9
9
|
include ../third-party/news-comment/newest-comment.pug
|
@@ -2,47 +2,47 @@
|
|
2
2
|
if theme.aside.siteinfo.postcount
|
3
3
|
.webinfo-item
|
4
4
|
.webinfo-item-title
|
5
|
-
i.item-icon.
|
5
|
+
i.item-icon.fa-solid.fa-folder-closed
|
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.solitude.
|
12
|
+
i.item-icon.solitude.fa-solid.fa-eye
|
13
13
|
.item-name= __('aside.pv')
|
14
14
|
if theme.busuanzi_use === 0
|
15
15
|
span#busuanzi_value_site_pv
|
16
|
-
i.solitude.
|
16
|
+
i.solitude.fa-solid.fa-spinner
|
17
17
|
else
|
18
18
|
span#busuanzi_site_pv
|
19
|
-
i.solitude.
|
19
|
+
i.solitude.fa-solid.fa-spinner
|
20
20
|
if theme.aside.siteinfo.uv
|
21
21
|
.webinfo-item
|
22
22
|
.webinfo-item-title
|
23
|
-
i.item-icon.solitude.
|
23
|
+
i.item-icon.solitude.fa-solid.fa-user
|
24
24
|
.item-name= __('aside.uv')
|
25
25
|
if theme.busuanzi_use === 0
|
26
26
|
span#busuanzi_value_site_uv
|
27
|
-
i.solitude.
|
27
|
+
i.solitude.fa-solid.fa-spinner
|
28
28
|
else
|
29
29
|
span#busuanzi_site_uv
|
30
|
-
i.solitude.
|
30
|
+
i.solitude.fa-solid.fa-spinner
|
31
31
|
if theme.aside.siteinfo.runtimeenable
|
32
32
|
.webinfo-item
|
33
33
|
.webinfo-item-title
|
34
|
-
i.item-icon.solitude.
|
34
|
+
i.item-icon.solitude.fa-solid.fa-calendar-days
|
35
35
|
.item-name= __('aside.runtime')
|
36
36
|
.item-count#runtimeshow
|
37
37
|
if theme.aside.siteinfo.updatetime
|
38
38
|
.webinfo-item
|
39
39
|
.webinfo-item-title
|
40
|
-
i.item-icon.solitude.
|
40
|
+
i.item-icon.solitude.fa-solid.fa-rotate-left
|
41
41
|
.item-name= __('aside.updatetime')
|
42
42
|
time.item-count(datetime=new Date())
|
43
43
|
if theme.wordcount && theme.aside.siteinfo.wordcount
|
44
44
|
.webinfo-item
|
45
45
|
.webinfo-item-title
|
46
|
-
i.item-icon.solitude.
|
46
|
+
i.item-icon.solitude.fa-solid.fa-file-word
|
47
47
|
.item-name= __('aside.wordcount')
|
48
48
|
.item-count= totalcount(site)
|
@@ -1,18 +1,16 @@
|
|
1
1
|
.bbTimeList.container#bbTimeList(class=is_home_first_page() ? '' : 'more-page')
|
2
|
-
i.bber-logo.solitude.
|
2
|
+
i.bber-logo.solitude.fa-solid.fa-newspaper(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.solitude.
|
9
|
+
i.solitude.fa-solid.fa-image
|
10
10
|
else if item.aplayer
|
11
|
-
i.solitude.
|
12
|
-
else if item.video
|
13
|
-
i.solitude.
|
14
|
-
else if item.bilibili
|
15
|
-
i.solitude.st-bilibili-line
|
11
|
+
i.solitude.fa-solid.fa-disc
|
12
|
+
else if item.video || item.bilibili
|
13
|
+
i.solitude.fa-solid.fa-video
|
16
14
|
else if item.link
|
17
|
-
i.solitude.
|
18
|
-
i.bber-gotobb.solitude.
|
15
|
+
i.solitude.fa-solid.fa-link
|
16
|
+
i.bber-gotobb.solitude.fa-solid.fa-circle-chevron-right(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('/essay/')`)
|
@@ -32,7 +32,9 @@ if recommends
|
|
32
32
|
span.article-meta.tags
|
33
33
|
each tag in item.tags.data
|
34
34
|
a.article-meta__tags(href=url_for(tag.path), onclick="event.stopPropagation();")
|
35
|
-
span.tags-punctuation
|
35
|
+
span.tags-punctuation
|
36
|
+
i.solitude.fa-solid.fa-hashtag
|
37
|
+
=tag.name
|
36
38
|
span.post-meta-date
|
37
39
|
time(datetime=moment(item.date))
|
38
40
|
.blog-slider__pagination.swiper-pagination-clickable.swiper-pagination-bullets
|
@@ -11,5 +11,5 @@ div.category-bar-right
|
|
11
11
|
- let wordcount = categories.map(category => category.name).join('').length
|
12
12
|
if wordcount > 40 || categories.data.length > 10
|
13
13
|
.category-bar-next#category-bar-next(onclick="sco.scrollCategoryBarToRight()")
|
14
|
-
i.solitude.
|
14
|
+
i.solitude.fa-solid.fa-angles-right
|
15
15
|
a.category-bar-more(href=url_for('/categories/'))= __('more')
|
@@ -0,0 +1,45 @@
|
|
1
|
+
- const { server, site } = theme.artalk
|
2
|
+
|
3
|
+
script.
|
4
|
+
function updatePostsBasedOnComments() {
|
5
|
+
const location = window.location
|
6
|
+
const posts = Array.from(document.querySelectorAll('.recent-post-item[onclick] .post_cover a')).map(item => item.href.replace(location, GLOBAL_CONFIG.root))
|
7
|
+
|
8
|
+
function get() {
|
9
|
+
fetch(`!{server}/api/v2/stats/page_comment?page_keys=${posts.join(',')}&site_name=!{site}`).then(res => res.json())
|
10
|
+
.then(item => {
|
11
|
+
item = item.data
|
12
|
+
posts.forEach(post => {
|
13
|
+
const comment = item[post]
|
14
|
+
if (comment > !{count}) {
|
15
|
+
const postElement = document.querySelector(`.recent-post-item[onclick*="${post}"]`);
|
16
|
+
if (postElement) {
|
17
|
+
const infoTopTips = postElement.querySelector(".recent-post-info-top-tips"),
|
18
|
+
originalSpan = infoTopTips ? infoTopTips.querySelector(".original") : null;
|
19
|
+
if (originalSpan) {
|
20
|
+
const hotTip = createHotTipElement();
|
21
|
+
infoTopTips.insertBefore(hotTip, originalSpan);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
})
|
26
|
+
})
|
27
|
+
.catch(error => console.error("Error fetching comments:", error));
|
28
|
+
}
|
29
|
+
|
30
|
+
function createHotTipElement() {
|
31
|
+
const hotTip = document.createElement("span");
|
32
|
+
hotTip.classList.add("hot-tip");
|
33
|
+
|
34
|
+
const icon = document.createElement("i");
|
35
|
+
icon.classList.add("solitude", "fas", "fa-fire-flame-curved");
|
36
|
+
hotTip.appendChild(icon);
|
37
|
+
|
38
|
+
const commentCount = document.createTextNode("!{_p('hot-tip')}");
|
39
|
+
hotTip.appendChild(commentCount);
|
40
|
+
|
41
|
+
return hotTip;
|
42
|
+
}
|
43
|
+
|
44
|
+
get()
|
45
|
+
}
|
@@ -32,7 +32,7 @@ script.
|
|
32
32
|
hotTip.classList.add("hot-tip");
|
33
33
|
|
34
34
|
const icon = document.createElement("i");
|
35
|
-
icon.classList.add("solitude", "
|
35
|
+
icon.classList.add("solitude", "fas", "fa-fire-flame-curved");
|
36
36
|
hotTip.appendChild(icon);
|
37
37
|
|
38
38
|
const commentCount = document.createTextNode("!{_p('hot-tip')}");
|
@@ -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.fa-solid.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
|
@@ -42,7 +42,9 @@ mixin info
|
|
42
42
|
span.article-meta.tags
|
43
43
|
each tag in post.tags.data
|
44
44
|
a.article-meta__tags(href=url_for(tag.path), onclick="event.stopPropagation();")
|
45
|
-
span.tags-punctuation
|
45
|
+
span.tags-punctuation
|
46
|
+
i.solitude.fa-solid.fa-hashtag
|
47
|
+
=tag.name
|
46
48
|
|
47
49
|
span.post-meta-date
|
48
50
|
time(datetime=moment(post.date))
|