hexo-theme-solitude 3.0.5 → 3.0.6
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/layout/404.pug +1 -1
- package/layout/includes/console.pug +6 -6
- 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 +2 -2
- package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
- package/layout/includes/widgets/aside/asideNewstComments.pug +2 -2
- package/layout/includes/widgets/aside/asideSwitch.pug +0 -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 +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 +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/kit/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +3 -3
- 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/helper/related_post.js +1 -1
- package/source/css/_global/index.styl +3 -1
- package/source/css/_layout/header.styl +4 -4
- 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/main.js +4 -4
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]
|
@@ -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.fas.fa-circle-half-stroke
|
54
54
|
div.console-btn-item#consoleHideAside
|
55
55
|
span.asideSwitch(onclick="sco.switchHideAside()", title=_p('console.switch_hideAside'))
|
56
56
|
i.solitude.fas.fa-arrows-left-right-to-line
|
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.fas.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.fas.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.fas.fa-comment
|
69
69
|
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,7 +26,7 @@ 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
|
@@ -41,7 +41,7 @@ div#sidebar(style="zoom: 1;")
|
|
41
41
|
.webinfo
|
42
42
|
.webinfo-item
|
43
43
|
.webinfo-item-title
|
44
|
-
i.item-icon.solitude.
|
44
|
+
i.item-icon.solitude.fas.fa-file-word
|
45
45
|
.item-name= __('aside.wordcount')
|
46
46
|
.item-count= totalcount(site)
|
47
47
|
|
@@ -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
|
@@ -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.fas.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.fas.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.fas.fa-spinner.fa-spin
|
17
17
|
else
|
18
18
|
span#busuanzi_site_pv
|
19
|
-
i.solitude.
|
19
|
+
i.solitude.fas.fa-spinner.fa-spin
|
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.fas.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.fas.fa-spinner.fa-spin
|
28
28
|
else
|
29
29
|
span#busuanzi_site_uv
|
30
|
-
i.solitude.
|
30
|
+
i.solitude.fas.fa-spinner.fa-spin
|
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.fas.fa-calendar-day
|
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.fas.fa-arrows-rotate
|
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.fas.fa-file-word
|
47
47
|
.item-name= __('aside.wordcount')
|
48
48
|
.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
|
@@ -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
|
@@ -13,7 +13,7 @@ if tj || oneself
|
|
13
13
|
if tj.button
|
14
14
|
.banner-button-group
|
15
15
|
a.banner-button(href=url_for(tj.button_link))
|
16
|
-
i.solitude.
|
16
|
+
i.solitude.fas.fa-circle-chevron-right
|
17
17
|
span.banner-button-text= tj.button_text
|
18
18
|
|
19
19
|
case tj.provider
|
@@ -11,5 +11,5 @@
|
|
11
11
|
.banner-button-group
|
12
12
|
- const isInternalLink = page.rightbtnlink.startsWith('/')
|
13
13
|
a.banner-button(onclick=isInternalLink ? `pjax.loadUrl("${page.rightbtnlink}")`: null, href=isInternalLink ? null : url_for(page.rightbtnlink), target=isInternalLink ? null : "_blank")
|
14
|
-
i.solitude.
|
14
|
+
i.solitude.fas.fa-circle-chevron-right
|
15
15
|
span.banner-button-text= page.rightbtn
|
@@ -5,16 +5,16 @@
|
|
5
5
|
.banner-button-group
|
6
6
|
if theme.footer.randomlink
|
7
7
|
a.banner-button.secondary(onclick="travelling()")
|
8
|
-
i.solitude.
|
8
|
+
i.solitude.fas.fa-tower-broadcast
|
9
9
|
span.banner-button-text=_p('link.banner.random')
|
10
10
|
if theme.comment.use
|
11
11
|
a.banner-button(onclick="sco.scrollToComment()")
|
12
|
-
i.solitude.
|
12
|
+
i.solitude.fas.fa-circle-chevron-right
|
13
13
|
span.solitude.banner-button-text=_p('link.banner.toComment')
|
14
14
|
|
15
15
|
- if (site.data.links.swiper !== false)
|
16
16
|
.tags-group-all.nowrapMove
|
17
|
-
- const data = site.data.links.links
|
17
|
+
- const data = site.data.links.links.filter(x => x.type !== 'discn')
|
18
18
|
- var links = []
|
19
19
|
each x in data
|
20
20
|
each y in x.link_list
|
@@ -53,7 +53,7 @@ script(pjax).
|
|
53
53
|
</div>
|
54
54
|
<div class="comment-content">${i.content}</div>
|
55
55
|
<div class="comment-title">
|
56
|
-
<i class="solitude
|
56
|
+
<i class="solitude fas fa-comment"></i>
|
57
57
|
${i.title}</div>
|
58
58
|
</div>
|
59
59
|
`).join('') : `#{__("console.newest_comment.empty")}`
|
@@ -60,7 +60,7 @@ script(pjax).
|
|
60
60
|
</div>
|
61
61
|
<div class="comment-content">${formatContent(i.content)}</div>
|
62
62
|
<div class="comment-title">
|
63
|
-
<i class="solitude
|
63
|
+
<i class="solitude fas fa-comment"></i>
|
64
64
|
${i.title}</div>
|
65
65
|
</div>
|
66
66
|
`).join('') : `#{__("console.newest_comment.empty")}`
|
@@ -58,7 +58,7 @@ script(pjax).
|
|
58
58
|
</div>
|
59
59
|
<div class="comment-content">${i.content}</div>
|
60
60
|
<div class="comment-title">
|
61
|
-
<i class="solitude
|
61
|
+
<i class="solitude fas fa-comment"></i>
|
62
62
|
${i.title}</div>
|
63
63
|
</div>
|
64
64
|
`).join('') : `#{__("console.newest_comment.empty")}`
|
@@ -49,7 +49,7 @@ script(pjax).
|
|
49
49
|
</div>
|
50
50
|
<div class="comment-content">${i.content}</div>
|
51
51
|
<div class="comment-title">
|
52
|
-
<i class="solitude
|
52
|
+
<i class="solitude fas fa-comment"></i>
|
53
53
|
${i.title}</div>
|
54
54
|
</div>
|
55
55
|
`).join('') : `#{__("console.newest_comment.empty")}`
|
@@ -3,7 +3,7 @@
|
|
3
3
|
.post-copyright__author_group
|
4
4
|
.post-copyright__author_img
|
5
5
|
img.post-copyright__author_img_front(src=url_for(page.avatar || copyright.author || theme.site.icon))
|
6
|
-
.post-copyright__author_name= page.author || config.
|
6
|
+
.post-copyright__author_name= page.author || config.author
|
7
7
|
.post-copyright__author_desc= page.desc || config.subtitle
|
8
8
|
.post-tools#post-tools
|
9
9
|
.post-tools-left
|
@@ -13,7 +13,7 @@
|
|
13
13
|
if theme.post.rss
|
14
14
|
.reward-link.mode
|
15
15
|
a.reward-link-button(href=url_for(theme.post.rss))
|
16
|
-
i.solitude.
|
16
|
+
i.solitude.fas.fa-seedling
|
17
17
|
= _p('footer.rss')
|
18
18
|
if theme.post.share.enable
|
19
19
|
.social-share
|
@@ -11,7 +11,7 @@
|
|
11
11
|
each tag in page.tags.data
|
12
12
|
a.post-meta__tags(href=url_for(tag.path))
|
13
13
|
span.tags-name.tags-punctuation
|
14
|
-
i.solitude.
|
14
|
+
i.solitude.fas.fa-hashtag
|
15
15
|
= tag.name
|
16
16
|
h1.post-title= page.title
|
17
17
|
#post-meta
|
@@ -22,16 +22,16 @@
|
|
22
22
|
time(datetime=date_xml(page.date))= date_xml(page.date)
|
23
23
|
if theme.post.meta.updated
|
24
24
|
span.post-meta-date(title=_p('post.updated') + ' ' + full_date(page.updated))
|
25
|
-
i.post-meta-icon.solitude.
|
25
|
+
i.post-meta-icon.solitude.fas.fa-arrows-rotate
|
26
26
|
time(datetime=date_xml(page.updated))= date_xml(page.updated)
|
27
27
|
if theme.wordcount
|
28
28
|
span.post-meta-wordcount
|
29
29
|
if theme.post.meta.wordcount
|
30
|
-
i.post-meta-icon.solitude.
|
30
|
+
i.post-meta-icon.solitude.fas.fa-file-word(title=_p('post.wordcount'))
|
31
31
|
span.word-count= wordcount(page.content)
|
32
32
|
span.post-meta-separator
|
33
33
|
if theme.post.meta.readtime
|
34
|
-
i.post-meta-icon.solitude.
|
34
|
+
i.post-meta-icon.solitude.fas.fa-clock(title=_p('post.minread'))
|
35
35
|
span= min2read(page.content) + " min"
|
36
36
|
if theme.post.meta.locate
|
37
37
|
span.post-meta-position(title=_p('post.ip') + page.locate)
|
@@ -39,44 +39,44 @@
|
|
39
39
|
span= page.locate
|
40
40
|
if theme.post.meta.pv && (theme.comment.use && theme.comment.pv || theme.busuanzi)
|
41
41
|
a.post-meta-pv(href=url_for(page.path), title=_p('post.pv'))
|
42
|
-
i.post-meta-icon.solitude.
|
42
|
+
i.post-meta-icon.solitude.fas.fa-fire-flame-curved
|
43
43
|
if theme.comment.use && theme.comment.pv
|
44
44
|
case theme.comment.use[0]
|
45
45
|
when "Twikoo"
|
46
46
|
span#twikoo_visitors
|
47
|
-
i.solitude.
|
47
|
+
i.solitude.fas.fa-spinner.fa-spin
|
48
48
|
when "Waline"
|
49
49
|
span.waline-pageview-count
|
50
|
-
i.solitude.
|
50
|
+
i.solitude.fas.fa-spinner.fa-spin
|
51
51
|
when "Valine"
|
52
52
|
span.leancloud_visitors(id=url_for(page.path))
|
53
53
|
span.leancloud-visitors-count
|
54
|
-
i.solitude.
|
54
|
+
i.solitude.fas.fa-spinner.fa-spin
|
55
55
|
when 'Artalk'
|
56
56
|
span#ArtalkPV
|
57
|
-
i.solitude.
|
57
|
+
i.solitude.fas.fa-spinner.fa-spin
|
58
58
|
else
|
59
59
|
if theme.busuanzi
|
60
60
|
if theme.busuanzi_use === 0
|
61
61
|
span#busuanzi_value_page_pv
|
62
|
-
i.solitude.
|
62
|
+
i.solitude.fas.fa-spinner.fa-spin
|
63
63
|
else
|
64
64
|
span#busuanzi_page_pv
|
65
|
-
i.solitude.
|
65
|
+
i.solitude.fas.fa-spinner.fa-spin
|
66
66
|
if theme.post.meta.comment && page.comment && theme.comment.count && theme.comment.use
|
67
67
|
span.post-meta-commentcount(title=_p('post.comment'), onclick="sco.scrollTo('post-comment')")
|
68
|
-
i.solitude.
|
68
|
+
i.solitude.fas.fa-comment
|
69
69
|
a(href=url_for(page.path) + "#post-comment")
|
70
70
|
case theme.comment.use[0]
|
71
71
|
when "Twikoo"
|
72
72
|
span.twikoo-count
|
73
|
-
i.solitude.
|
73
|
+
i.solitude.fas.fa-spinner.fa-spin
|
74
74
|
when "Waline"
|
75
75
|
span.waline-comment-count
|
76
|
-
i.solitude.
|
76
|
+
i.solitude.fas.fa-spinner.fa-spin
|
77
77
|
when "Valine"
|
78
78
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
79
|
-
i.solitude.
|
79
|
+
i.solitude.fas.fa-spinner.fa-spin
|
80
80
|
when 'Artalk'
|
81
81
|
span.artalk-count
|
82
|
-
i.solitude.
|
82
|
+
i.solitude.fas.fa-spinner.fa-spin
|
@@ -3,7 +3,7 @@
|
|
3
3
|
#post-comment
|
4
4
|
.comment-head
|
5
5
|
.comment-headline
|
6
|
-
i.solitude.
|
6
|
+
i.solitude.fas.fa-comment
|
7
7
|
span=' ' + _p('comment.title')
|
8
8
|
if count && is_post()
|
9
9
|
span.count
|
@@ -12,13 +12,13 @@
|
|
12
12
|
case name
|
13
13
|
when "Twikoo"
|
14
14
|
span.twikoo-count
|
15
|
-
i.solitude.
|
15
|
+
i.solitude.fas.fa-spinner.fa-spin
|
16
16
|
when "Waline"
|
17
17
|
span.waline-comment-count
|
18
|
-
i.solitude.
|
18
|
+
i.solitude.fas.fa-spinner.fa-spin
|
19
19
|
when "Valine"
|
20
20
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
21
|
-
i.solitude.
|
21
|
+
i.solitude.fas.fa-spinner.fa-spin
|
22
22
|
when "Artalk"
|
23
23
|
span.artalk-count
|
24
24
|
when "Giscus"
|
@@ -3,7 +3,7 @@
|
|
3
3
|
nav.search-nav
|
4
4
|
span.search-dialog-title=__('nav.search')
|
5
5
|
button.search-close-button
|
6
|
-
i.solitude.
|
6
|
+
i.solitude.fas.fa-xmark
|
7
7
|
div.search-wrap
|
8
8
|
div.search-box
|
9
9
|
input.search-box-input#search-input(type="text", autocomplete="off", spellcheck="false", autocorrect="off", autocapitalize="off", placeholder=__('search.placeholder'))
|
package/layout/post.pug
CHANGED
@@ -16,7 +16,7 @@ block content
|
|
16
16
|
each data in page.tags.data || []
|
17
17
|
a(href=url_for(data.path)).post-meta__tags
|
18
18
|
span.tags-punctuation
|
19
|
-
i.solitude.
|
19
|
+
i.solitude.fas.fa-hashtag
|
20
20
|
=data.name
|
21
21
|
span.tagsPageCount=data.length
|
22
22
|
if theme.google_adsense.enable && !theme.google_adsense.auto_ads && theme.google_adsense.post_content
|
package/layout/tag.pug
CHANGED
@@ -7,7 +7,7 @@ block content
|
|
7
7
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
8
8
|
a(id=tag.name class=(tag.name === page.tag ? 'select' : '') href=url_for(tag.path))
|
9
9
|
span.tags-punctuation
|
10
|
-
i.solitude.
|
10
|
+
i.solitude.fas.fa-hashtag
|
11
11
|
=tag.name
|
12
12
|
span.tagsPageCount=tag.length
|
13
13
|
.recent-posts#recent-posts
|
package/package.json
CHANGED
@@ -42,7 +42,7 @@ hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
|
|
42
42
|
let result = `
|
43
43
|
<div class="relatedPosts">
|
44
44
|
<div class="headline">
|
45
|
-
<i class="solitude
|
45
|
+
<i class="solitude fas fa-star"></i>
|
46
46
|
<span>${headlineLang}</span>
|
47
47
|
<div class="relatedPosts-link">
|
48
48
|
<a onclick="event.preventDefault(); toRandomPost();" href="javascript:void(0);" rel="external nofollow" data-pjax-state="">${this._p('random')}</a>
|
@@ -397,7 +397,6 @@ i.solitude
|
|
397
397
|
box-shadow var(--efu-shadow-border)
|
398
398
|
padding 1rem 2rem
|
399
399
|
border-radius 12px
|
400
|
-
background var(--efu-card-bg)
|
401
400
|
border var(--style-border)
|
402
401
|
align-self flex-start
|
403
402
|
animation slide-in .6s .1s backwards
|
@@ -405,6 +404,9 @@ i.solitude
|
|
405
404
|
if hexo-config('aside.position') == 0
|
406
405
|
order 2
|
407
406
|
|
407
|
+
+minWidth768()
|
408
|
+
background var(--efu-card-bg)
|
409
|
+
|
408
410
|
+maxWidth768()
|
409
411
|
box-shadow none
|
410
412
|
border none
|
@@ -406,11 +406,11 @@
|
|
406
406
|
i, span, img
|
407
407
|
opacity 0
|
408
408
|
|
409
|
-
i.
|
409
|
+
i.fas.fa-home
|
410
410
|
+minWidth900()
|
411
411
|
opacity: 1
|
412
412
|
|
413
|
-
i.
|
413
|
+
i.fas.fa-home
|
414
414
|
opacity 0
|
415
415
|
position absolute
|
416
416
|
display flex
|
@@ -808,13 +808,13 @@ if hexo-config('nav.group')
|
|
808
808
|
+minWidth900()
|
809
809
|
align-items center
|
810
810
|
|
811
|
-
i.
|
811
|
+
i.fas.fa-home
|
812
812
|
color var(--efu-white)
|
813
813
|
|
814
814
|
.nav-fixed
|
815
815
|
#nav
|
816
816
|
#site-name
|
817
|
-
i.
|
817
|
+
i.fas.fa-home
|
818
818
|
color var(--efu-card-bg)
|
819
819
|
|
820
820
|
.not-top-img
|
@@ -9,7 +9,7 @@
|
|
9
9
|
height: 25rem
|
10
10
|
|
11
11
|
+maxWidth768()
|
12
|
-
height
|
12
|
+
height 15rem
|
13
13
|
background-color var(--efu-main) !important
|
14
14
|
transition 0s
|
15
15
|
margin-bottom -12px
|
@@ -128,7 +128,7 @@
|
|
128
128
|
transform rotate(0) translateY(0) scale(1)
|
129
129
|
filter blur(0)
|
130
130
|
width 100%
|
131
|
-
height
|
131
|
+
height 15rem
|
132
132
|
|
133
133
|
&:after
|
134
134
|
box-shadow 0 0 205px 59px var(--efu-main) inset
|
@@ -165,7 +165,7 @@
|
|
165
165
|
+maxWidth768()
|
166
166
|
padding 0 6%
|
167
167
|
justify-content normal
|
168
|
-
padding-top
|
168
|
+
padding-top 4rem
|
169
169
|
|
170
170
|
.post-title
|
171
171
|
color var(--efu-white)
|
package/source/js/main.js
CHANGED
@@ -404,7 +404,7 @@ const sco = {
|
|
404
404
|
return;
|
405
405
|
}
|
406
406
|
pageText.addEventListener("keydown", (event) => {
|
407
|
-
if (event.
|
407
|
+
if (event.key === 'Enter') {
|
408
408
|
sco.toPage();
|
409
409
|
pjax.loadUrl(pageButton.href);
|
410
410
|
}
|
@@ -788,11 +788,11 @@ document.addEventListener('visibilitychange', () => {
|
|
788
788
|
});
|
789
789
|
|
790
790
|
window.onkeydown = e => {
|
791
|
-
const {
|
792
|
-
if (
|
791
|
+
const { code, ctrlKey, shiftKey } = e;
|
792
|
+
if (code === 'F12' || (ctrlKey && shiftKey && (code === 'KeyI' || code === 'KeyC'))) {
|
793
793
|
utils.snackbarShow(GLOBAL_CONFIG.lang.f12, false, 3000);
|
794
794
|
}
|
795
|
-
if (
|
795
|
+
if (code === 'Escape') {
|
796
796
|
sco.hideConsole();
|
797
797
|
}
|
798
798
|
};
|