hexo-theme-solitude 1.4.6 → 1.5.0
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/CONTRIBUTING.md +16 -3
- package/README.md +2 -2
- package/README_EN.md +2 -2
- package/_config.yml +155 -230
- package/languages/en-US.yml +5 -2
- package/languages/zh-CN.yml +5 -2
- package/languages/zh-TW.yml +5 -2
- package/layout/404.pug +2 -2
- package/layout/includes/footer.pug +8 -6
- package/layout/includes/head/config.pug +7 -7
- package/layout/includes/head/opengraph.pug +5 -4
- package/layout/includes/head/pwa.pug +2 -3
- package/layout/includes/inject/body.pug +17 -19
- package/layout/includes/inject/head.pug +3 -2
- package/layout/includes/mixins/pagination.pug +1 -1
- package/layout/includes/nav.pug +3 -3
- package/layout/includes/page/says.pug +44 -7
- package/layout/includes/sidebar.pug +1 -1
- package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
- package/layout/includes/widgets/home/banner.pug +11 -4
- package/layout/includes/widgets/home/bbTimeList.pug +13 -7
- package/layout/includes/widgets/home/categoryGroup.pug +11 -8
- package/layout/includes/widgets/home/hometop.pug +1 -2
- package/layout/includes/widgets/home/postList.pug +3 -3
- package/layout/includes/widgets/nav/group.pug +13 -0
- package/layout/includes/widgets/nav/menu.pug +20 -16
- package/layout/includes/widgets/page/about/award.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +8 -13
- package/layout/includes/widgets/page/equipment/content.pug +1 -1
- package/layout/includes/widgets/page/links/linksCard.pug +0 -1
- package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
- package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
- 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/index.pug +6 -6
- package/layout/page.pug +0 -2
- package/package.json +1 -1
- package/plugins.yml +0 -5
- package/scripts/event/init.js +18 -17
- package/scripts/event/welcome.js +1 -1
- package/scripts/generator/gallery.js +29 -27
- package/scripts/helper/getArchiveLength.js +5 -9
- package/scripts/helper/related_post.js +28 -39
- package/scripts/helper/stylus.js +23 -8
- package/source/css/_global/animation.styl +313 -0
- package/source/css/_layout/basic.styl +10 -1
- package/source/css/_layout/header.styl +5 -5
- package/source/css/_layout/index.styl +0 -1
- package/source/css/_page/_about/skills.styl +1 -1
- package/source/css/_page/_home/category-bar.styl +14 -14
- package/source/css/_page/_home/home-top.styl +57 -45
- package/source/css/_page/_home/recent-post.styl +1 -1
- package/source/css/_page/equipment.styl +3 -2
- package/source/css/_page/home.styl +0 -15
- package/source/css/_page/index.styl +0 -2
- package/source/css/_page/links.styl +9 -8
- package/source/css/_page/says.styl +1 -2
- package/source/css/_page/share.styl +30 -67
- package/source/css/_widgets/_aside/index.styl +1 -1
- package/source/css/_widgets/_aside/info.styl +1 -1
- package/source/css/_widgets/_comment/twikoo.styl +4 -6
- package/source/css/_widgets/_comment/waline.styl +435 -72
- package/source/css/_widgets/_extra/console.styl +1 -1
- package/source/css/_widgets/_extra/fullpage.styl +1 -1
- package/source/css/_widgets/_mixins/footer.styl +1 -1
- package/source/css/_widgets/_post/content.styl +1 -11
- package/source/css/_widgets/_post/meta.styl +2 -2
- package/source/css/_widgets/_post/relatedPost.styl +1 -1
- package/source/css/_widgets/_post/tools.styl +1 -1
- package/source/css/_widgets/_search/algolia-search.styl +4 -2
- package/source/css/_widgets/_tags/note.styl +4 -0
- package/source/css/index.styl +0 -1
- package/source/js/comment/twikoo_commentBarrage.js +76 -75
- package/source/js/covercolor/local.js +11 -10
- package/source/js/main.js +27 -35
- package/source/js/music.js +89 -49
- package/layout/includes/page/rss.pug +0 -20
- package/layout/includes/widgets/home/bb/json.pug +0 -25
- package/layout/includes/widgets/home/bb/local.pug +0 -20
- package/layout/includes/widgets/home/bb/memos.pug +0 -28
- package/layout/includes/widgets/nav/left.pug +0 -10
- package/layout/includes/widgets/page/says/json.pug +0 -82
- package/layout/includes/widgets/page/says/local.pug +0 -44
- package/layout/includes/widgets/page/says/memos.pug +0 -111
- package/source/css/_global/animation.css +0 -813
- package/source/css/_page/rss.styl +0 -82
@@ -12,16 +12,18 @@ div#footer_deal
|
|
12
12
|
- var leftInfo = theme.footer && theme.footer.information && theme.footer.information.left || {}
|
13
13
|
- var rightInfo = theme.footer && theme.footer.information && theme.footer.information.right || {}
|
14
14
|
|
15
|
-
each value,
|
16
|
-
|
17
|
-
|
15
|
+
each value, label in leftInfo
|
16
|
+
- var array = value.split('||')
|
17
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
18
|
+
i.scoicon(class=array[1])
|
18
19
|
|
19
20
|
div#footer_mini_logo.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
|
20
21
|
img(src=theme.site.icon, alt=_p('nav.backtop'))
|
21
22
|
|
22
|
-
each value,
|
23
|
-
|
24
|
-
|
23
|
+
each value, label in rightInfo
|
24
|
+
- var array = value.split('||')
|
25
|
+
a.deal_link(href=url_for(trim(array[0])), title=label)
|
26
|
+
i.scoicon(class=array[1])
|
25
27
|
div#sco-footer
|
26
28
|
- var group = theme.footer && theme.footer.group ? theme.footer.group : {}
|
27
29
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
localSearch = JSON.stringify({
|
8
8
|
preload: theme.search.local.preload,
|
9
9
|
path: theme?.search?.local?.CDN || '/search.xml'
|
10
|
-
})
|
10
|
+
});
|
11
11
|
break;
|
12
12
|
case 'algolia':
|
13
13
|
algolia = JSON.stringify({
|
@@ -17,7 +17,7 @@
|
|
17
17
|
hits: {
|
18
18
|
per_page: theme?.search?.algolia?.hits?.per_page || 10
|
19
19
|
}
|
20
|
-
})
|
20
|
+
});
|
21
21
|
break;
|
22
22
|
}
|
23
23
|
}
|
@@ -27,12 +27,12 @@
|
|
27
27
|
translate = JSON.stringify({
|
28
28
|
defaultEncoding: theme.translate.defaultEncoding,
|
29
29
|
translateDelay: theme.translate.translateDelay,
|
30
|
-
})
|
30
|
+
});
|
31
31
|
}
|
32
32
|
|
33
|
-
const commentInfoStart = theme.comment.randomInfoStart.map(item => `"${item}"`) ||
|
34
|
-
const commentInfoEnd = theme.comment.randomInfoEnd.map(item => `"${item}"`) ||
|
35
|
-
|
33
|
+
const commentInfoStart = theme.comment.randomInfoStart.map(item => `"${item}"`) || [];
|
34
|
+
const commentInfoEnd = theme.comment.randomInfoEnd.map(item => `"${item}"`) || [];
|
35
|
+
const sayhello2 = theme.aside.card.sayhello2.map(item => `"${item}"`) || [];
|
36
36
|
|
37
37
|
script.
|
38
38
|
const GLOBAL_CONFIG = {
|
@@ -119,4 +119,4 @@ script.
|
|
119
119
|
enable: !{theme.music.enable},
|
120
120
|
},
|
121
121
|
translate: !{translate},
|
122
|
-
}
|
122
|
+
};
|
@@ -1,10 +1,11 @@
|
|
1
1
|
if theme.opengraph.enable
|
2
2
|
-
|
3
3
|
const coverVal = page.cover || theme.site.siteIcon
|
4
|
-
let ogOption =
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
let ogOption = {
|
5
|
+
type: is_post() ? 'article' : 'website',
|
6
|
+
image: coverVal ? full_url_for(coverVal) : '',
|
7
|
+
...theme.opengraph.options
|
8
|
+
}
|
8
9
|
-
|
9
10
|
!= open_graph(ogOption)
|
10
11
|
else
|
@@ -1,11 +1,11 @@
|
|
1
1
|
if theme.pwa.enable
|
2
2
|
meta(name="theme-color", content=theme.pwa.theme_color)
|
3
3
|
link(rel="manifest" href=url_for(theme.pwa.manifest))
|
4
|
-
if
|
4
|
+
if theme.pwa.theme_color
|
5
5
|
meta(name="msapplication-TileColor" content=theme.pwa.theme_color)
|
6
6
|
if theme.pwa.mask_icon
|
7
7
|
link(rel="mask-icon", href=theme.pwa.mask_icon, color=theme.pwa.theme_color)
|
8
|
-
if
|
8
|
+
if theme.pwa.apple_touch_icon
|
9
9
|
link(rel="apple-touch-icon" sizes="180x180" href=url_for(theme.pwa.apple_touch_icon))
|
10
10
|
if theme.pwa.favicon_16_16
|
11
11
|
link(rel="icon", type="image/png", sizes="16x16", href=theme.pwa.favicon_16_16)
|
@@ -13,7 +13,6 @@ if theme.pwa.enable
|
|
13
13
|
link(rel="icon", type="image/png", sizes="32x32", href=theme.pwa.favicon_32_32)
|
14
14
|
if theme.pwa.bookmark_icon
|
15
15
|
link(rel="bookmark", href=theme.pwa.bookmark_icon)
|
16
|
-
|
17
16
|
else
|
18
17
|
meta(name="apple-mobile-web-app-capable", content=config.title)
|
19
18
|
link(rel="bookmark", href=theme.site.siteIcon)
|
@@ -1,5 +1,15 @@
|
|
1
1
|
- page.type = is_post() ? 'post' : page.type
|
2
2
|
|
3
|
+
mixin katex
|
4
|
+
if theme.katex.copytex
|
5
|
+
script(src=url_for(theme.cdn.katex_copytex))
|
6
|
+
script.
|
7
|
+
(() => {
|
8
|
+
document.querySelectorAll('#article-container span.katex-display').forEach(item => {
|
9
|
+
utils.wrap(item, 'div', {class: 'katex-wrap'})
|
10
|
+
})
|
11
|
+
})();
|
12
|
+
|
3
13
|
div
|
4
14
|
script(src=url_for(theme.cdn.main))
|
5
15
|
script(src=url_for(theme.cdn.utils))
|
@@ -19,24 +29,11 @@ div
|
|
19
29
|
if theme.translate.enable
|
20
30
|
script(src=url_for(theme.cdn.translate))
|
21
31
|
|
22
|
-
mixin katex
|
23
|
-
link(rel="stylesheet", href=url_for(theme.cdn.katex))
|
24
|
-
if theme.katex.copytex
|
25
|
-
script(src=url_for(theme.cdn.katex_copytex))
|
26
|
-
script.
|
27
|
-
(() => {
|
28
|
-
document.querySelectorAll('#article-container span.katex-display').forEach(item => {
|
29
|
-
utils.wrap(item, 'div', {class: 'katex-wrap'})
|
30
|
-
})
|
31
|
-
})()
|
32
|
-
|
33
32
|
if theme.katex && theme.katex.enable
|
34
|
-
if theme.katex.per_page
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if page.katex
|
39
|
-
+katex
|
33
|
+
if theme.katex.per_page && (is_post() || is_page())
|
34
|
+
+katex
|
35
|
+
else if page.katex
|
36
|
+
+katex
|
40
37
|
|
41
38
|
script(src=url_for(theme.cdn.pjax))
|
42
39
|
if theme.lazyload.enable
|
@@ -80,8 +77,6 @@ div
|
|
80
77
|
script(src=url_for(theme.cdn.twikoo))
|
81
78
|
when 'waline'
|
82
79
|
script(src=url_for(theme.cdn.waline_js))
|
83
|
-
link(rel="stylesheet", href=url_for(theme.cdn.waline_css))
|
84
|
-
|
85
80
|
if theme.comment.commentBarrage
|
86
81
|
case theme.comment.type
|
87
82
|
when 'twikoo'
|
@@ -111,6 +106,9 @@ div#js-pjax
|
|
111
106
|
if page.type === 'album' && theme.album.enable
|
112
107
|
script.
|
113
108
|
initGallery()
|
109
|
+
if is_home() && theme.says.home_mini
|
110
|
+
script.
|
111
|
+
sco.initbbtalk();
|
114
112
|
if page.type === 'says' && theme.says.enable
|
115
113
|
script.
|
116
114
|
window.addEventListener('resize', utils.throttle(function () {
|
@@ -15,6 +15,9 @@ if theme.says.home_mini
|
|
15
15
|
if theme.lightbox && theme.fancybox
|
16
16
|
link(rel="stylesheet", href=url_for(theme.cdn.fancyapps_css))
|
17
17
|
|
18
|
+
if theme.katex && theme.katex.enable
|
19
|
+
link(rel="stylesheet", href=url_for(theme.cdn.katex))
|
20
|
+
|
18
21
|
// Open Graph
|
19
22
|
include ../head/opengraph.pug
|
20
23
|
|
@@ -78,8 +81,6 @@ script.
|
|
78
81
|
"%c🔥 !{_p('head.console')}",
|
79
82
|
"color: #fff; background: linear-gradient(-25deg, #a8edea, #fed6e3); padding: 8px 15px; border-radius: 8px; text-shadow: 2px 2px 4px white; color: black;"
|
80
83
|
);
|
81
|
-
|
82
|
-
// custom inject
|
83
84
|
if theme.extends.head
|
84
85
|
each item in theme.extends.head
|
85
86
|
!= item
|
@@ -3,6 +3,6 @@ nav#pagination
|
|
3
3
|
- var options = {mid_size: 1,escape: false,next_text: '<div class="pagination_tips_next">下页</div> <i class="scoicon sco-arrow-right-bold"></i>',prev_text: '<i class="scoicon sco-arrow-left-bold"></i> <div class="pagination_tips_prev">上页</div>'}
|
4
4
|
!=paginator(options)
|
5
5
|
div.toPageGroup
|
6
|
-
input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')"
|
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
8
|
i.scoicon.sco-show-right-line
|
package/layout/includes/nav.pug
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
nav#nav.show
|
2
2
|
#nav-group
|
3
3
|
#blog_name
|
4
|
-
if theme.nav.
|
4
|
+
if theme.nav.group
|
5
5
|
.back-home-button(tabindex="-1")
|
6
6
|
i.back-home-button-icon.scoicon.sco-more-fill
|
7
|
-
include ./widgets/nav/
|
8
|
-
a#site-name(href="/", title=_p('nav.site_name_title')
|
7
|
+
include ./widgets/nav/group
|
8
|
+
a#site-name(href="/", title=_p('nav.site_name_title'))
|
9
9
|
if theme.site.name.class === 'i_class'
|
10
10
|
i.scoicon(class=theme.site.name.custom, style="font-size: 16px;")
|
11
11
|
else if theme.site.name.class === 'img'
|
@@ -3,13 +3,50 @@ if theme.says.enable
|
|
3
3
|
#bber
|
4
4
|
section.timeline.page-1
|
5
5
|
ul.list#waterfall
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
each item in site.data.essay.essay_list.slice(0, theme.says.strip)
|
7
|
+
li.item
|
8
|
+
if theme.says.style === 2
|
9
|
+
.meta
|
10
|
+
img.avatar(src=theme.aside.card.author.img)
|
11
|
+
.info
|
12
|
+
span.bber_nick= config.author
|
13
|
+
time.datetime.bber_date(datetime=moment(item.date).format())
|
14
|
+
if item.content
|
15
|
+
a.bber-reply.goComment(onclick=`sco.toTalk('${item.content}')`)
|
16
|
+
i.scoicon.sco-chat-fill
|
17
|
+
|
18
|
+
#bber-content
|
19
|
+
p.datacont= item.content
|
20
|
+
if item.image
|
21
|
+
.bber-content-img
|
22
|
+
each img in item.image
|
23
|
+
img(src=img title="即刻短文配图")
|
24
|
+
|
25
|
+
if item.aplayer
|
26
|
+
.bber-music
|
27
|
+
meting-js(server=item.aplayer.server type="song" id=item.aplayer.id mutex="true" preload="none" theme="var(--sco-main)" data-lrctype="0")
|
28
|
+
|
29
|
+
if item.video
|
30
|
+
.bber-video
|
31
|
+
if item.video.player
|
32
|
+
video(src=item.video.player controls="controls" style="object-fit: cover;")
|
33
|
+
if item.video.bilibili
|
34
|
+
iframe(src='//player.bilibili.com/player.html?auto-play=0&bvid=' + item.video.bilibili scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true")
|
35
|
+
|
36
|
+
if theme.says.style === 1
|
37
|
+
hr
|
38
|
+
.bber-bottom
|
39
|
+
.bber-info
|
40
|
+
.bber-info-time
|
41
|
+
i.scoicon.sco-calendar-todo-fill
|
42
|
+
time.datetime(datetime=moment(item.date).format())
|
43
|
+
if item.link
|
44
|
+
a.bber-content-link(href=url_for(item.link) title="跳转到短文指引的链接" target="_blank")
|
45
|
+
i.scoicon.sco-link-m-line
|
46
|
+
| 链接
|
47
|
+
if item.content
|
48
|
+
a.bber-reply(onclick=`sco.toTalk('${item.content}')`)
|
49
|
+
i.scoicon.sco-chat-fill
|
13
50
|
#bber-tips
|
14
51
|
if theme.says.strip === -1
|
15
52
|
| - 已展开所有短文 -
|
@@ -7,7 +7,7 @@ div#sidebar(style="zoom: 1;")
|
|
7
7
|
i.scoicon.sco-moon-clear-fill
|
8
8
|
span= __('sidebar.darkmode')
|
9
9
|
if theme.nav.left.enable
|
10
|
-
include ./widgets/nav/
|
10
|
+
include ./widgets/nav/group
|
11
11
|
include ./widgets/nav/menu.pug
|
12
12
|
span.sidebar-menu-item-title= __('sidebar.title2')
|
13
13
|
div.card-widget.card-tags.card-archives.card-webinfo.card-allinfo
|
@@ -15,6 +15,7 @@
|
|
15
15
|
.author-info__name= config.author
|
16
16
|
.author-info__desc!= config.subtitle
|
17
17
|
.card-info-social-icons.is-center
|
18
|
-
each value,
|
19
|
-
|
20
|
-
|
18
|
+
each value, label in theme.aside.card.information || {}
|
19
|
+
- var array = value.split('||')
|
20
|
+
a.social-icon(href=url_for(trim(array[0])), title=label)
|
21
|
+
i.scoicon(class=array[1])
|
@@ -1,6 +1,16 @@
|
|
1
1
|
div.banners-title
|
2
2
|
div.banners-title-big!= theme.hometop.banner.title
|
3
3
|
div.banners-title-small= theme.hometop.banner.url
|
4
|
+
- var group = theme.hometop.group
|
5
|
+
if group
|
6
|
+
div.banners-links
|
7
|
+
each value,label in group
|
8
|
+
- var array = value.split('||')
|
9
|
+
a.banners-link-btn(href=url_for(trim(array[0])) class="banners-link-"+label)
|
10
|
+
if array[1]
|
11
|
+
i.scoicon(class=array[1])
|
12
|
+
.banners-link-title= label
|
13
|
+
|
4
14
|
div.tags-group-all
|
5
15
|
.tags-group-wrapper
|
6
16
|
each i in [1,2]
|
@@ -10,7 +20,4 @@ div.tags-group-all
|
|
10
20
|
.tags-group-icon-pair
|
11
21
|
each key in pair
|
12
22
|
.tags-group-icon(style=`background: ${theme.hometop.banner.icon[key].color}`)
|
13
|
-
img(src=theme.hometop.banner.icon[key].img, title=key)
|
14
|
-
a#banner-hover(onclick="toRandomPost()")
|
15
|
-
span.bannerText= _p('home.bannertext')
|
16
|
-
i.scoicon.sco-arrow-2-right-line.banner-righticon
|
23
|
+
img(src=theme.hometop.banner.icon[key].img, title=key)
|
@@ -2,11 +2,17 @@
|
|
2
2
|
i.bber-logo.scoicon.sco-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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
each item, i in site.data.essay.essay_list.slice(0, 10)
|
6
|
+
.li-style.swiper-slide
|
7
|
+
| #{item.content}
|
8
|
+
if item.image
|
9
|
+
i.scoicon.sco-image-fill
|
10
|
+
else if item.aplayer
|
11
|
+
i.scoicon.sco-disc-fill
|
12
|
+
else if item.video
|
13
|
+
i.scoicon.sco-video-fill
|
14
|
+
else if item.bilibili
|
15
|
+
i.scoicon.sco-bilibili-line
|
16
|
+
else if item.link
|
17
|
+
i.scoicon.sco-links
|
12
18
|
i.bber-gotobb.scoicon.sco-right-btn-fill(title=_p('home.bbtime.text') onclick=`pjax.loadUrl('/essay/')`)
|
@@ -1,9 +1,12 @@
|
|
1
|
-
-
|
2
|
-
- var styles = ['--sco-shadow-blue', '--sco-shadow-red', '--sco-shadow-green'];
|
3
|
-
- var classes = ['bikan', 'remen', 'shiyong'];
|
1
|
+
- group = (Object.entries(theme.hometop.group)).slice(0, 2)
|
4
2
|
|
5
|
-
|
6
|
-
.
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
if group
|
4
|
+
.categoryGroup
|
5
|
+
|
6
|
+
each item in group
|
7
|
+
- var array = item[1].split('||')
|
8
|
+
.categoryItem
|
9
|
+
a.categoryButton(href=url_for(trim(array[0])) if array[2] style="background:" + array[2] + ";")
|
10
|
+
span.categoryButtonText= item[0]
|
11
|
+
if array[1]
|
12
|
+
i.scoicon(class=trim(array[1]))
|
@@ -15,14 +15,14 @@ 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=
|
18
|
+
a.unvisited-post(href=post.path)= _p('home.recent-post.read')
|
19
19
|
|
20
|
-
a.article-title(href=
|
20
|
+
a.article-title(href=post.path, title=post.title)= post.title
|
21
21
|
|
22
22
|
div.article-meta-wrap
|
23
23
|
span.article-meta.tags
|
24
24
|
each tag in post.tags.data
|
25
|
-
a.article-meta__tags(href=
|
25
|
+
a.article-meta__tags(href=tag.path, onclick="event.stopPropagation();")
|
26
26
|
span.tags-punctuation=tag.name
|
27
27
|
|
28
28
|
span.post-meta-date
|
@@ -0,0 +1,13 @@
|
|
1
|
+
- var menu = theme.nav.group
|
2
|
+
if menu
|
3
|
+
.back-menu-list-groups
|
4
|
+
each value, label in menu
|
5
|
+
.back-menu-list-group
|
6
|
+
.back-menu-list-title= label
|
7
|
+
.back-menu-list
|
8
|
+
each data, label in value
|
9
|
+
- var array = data.split('||')
|
10
|
+
a.back-menu-item(href=url_for(trim(array[0])), title=index)
|
11
|
+
if array[1]
|
12
|
+
img.back-menu-item-icon(src=trim(array[1]), alt=index)
|
13
|
+
span.back-menu-item-text= label
|
@@ -1,16 +1,20 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
- var menu = theme.nav.menu
|
2
|
+
|
3
|
+
if menu
|
4
|
+
.menus_items
|
5
|
+
each value, label in menu
|
6
|
+
.menus_item
|
7
|
+
if typeof value !== 'object'
|
8
|
+
a.site-page(href=url_for(value))
|
9
|
+
span= label
|
10
|
+
else
|
11
|
+
a.site-page(href="javascript:void(0);")
|
12
|
+
span= label
|
13
|
+
ul.menus_item_child
|
14
|
+
each childValue, childLabel in value
|
15
|
+
li
|
16
|
+
- var array = childValue.split('||')
|
17
|
+
a.site-page.child(href=url_for(trim(array[0])))
|
18
|
+
if array[1]
|
19
|
+
i.scoicon(class=array[1])
|
20
|
+
span= childLabel
|
@@ -14,7 +14,7 @@ if site.data.about.rewardList
|
|
14
14
|
.reward-list-item
|
15
15
|
.reward-list-item-name= reward.name
|
16
16
|
.reward-list-bottom-group
|
17
|
-
.reward-list-item-money(style=(reward.vip ? "background: var(--sco-vip);" : ""))
|
17
|
+
.reward-list-item-money(style=(reward.vip ? "background: var(--sco-vip);color: var(--sco-white)" : ""))
|
18
18
|
if reward.icon
|
19
19
|
i.scoicon(class=reward.icon)
|
20
20
|
| ¥ #{reward.money}
|
@@ -3,18 +3,13 @@
|
|
3
3
|
.author-content-item-tips= page.title
|
4
4
|
span.author-content-item-title= page.desc
|
5
5
|
.content-bottom
|
6
|
-
if
|
7
|
-
.tips
|
8
|
-
if
|
9
|
-
.tips
|
6
|
+
if page.leftend
|
7
|
+
.tips= page.leftend
|
8
|
+
if page.rightend
|
9
|
+
.tips= page.rightend
|
10
10
|
if page.rightbtn
|
11
11
|
.banner-button-group
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
span.banner-button-text= page.rightbtn
|
17
|
-
when false
|
18
|
-
a.banner-button(href=page.rightbtnlink, target="_blank")
|
19
|
-
i.scoicon.sco-right-btn-fill
|
20
|
-
span.banner-button-text= page.rightbtn
|
12
|
+
- const isInternalLink = page.rightbtnlink.startsWith('/')
|
13
|
+
a.banner-button(onclick=isInternalLink ? `pjax.loadUrl("${page.rightbtnlink}")` : null, href=isInternalLink ? null : page.rightbtnlink, target=isInternalLink ? null : "_blank")
|
14
|
+
i.scoicon.sco-right-btn-fill
|
15
|
+
span.banner-button-text= page.rightbtn
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.equipment-item-content-item-cover
|
11
11
|
img.equipment-item-content-item-image(src=item.image, alt=item.name)
|
12
12
|
.equipment-item-content-item-info
|
13
|
-
.equipment-item-content-item-name= item.name
|
13
|
+
.equipment-item-content-item-name(onclick='utils.copy("' + item.name + '")')= item.name
|
14
14
|
.equipment-item-content-item-specification= item.specification
|
15
15
|
.equipment-item-content-item-description= item.description
|
16
16
|
if item.link
|
@@ -6,7 +6,6 @@
|
|
6
6
|
i.light
|
7
7
|
a.img(title=item.name, href=url_for(item.link))
|
8
8
|
img.flink-avatar(src=item.topimg + (data.topimg_suffix || ''), alt=item.name)
|
9
|
-
.img-alt.is-center= item.name
|
10
9
|
a.info.cf-friends-link(title=item.name, href=url_for(item.link))
|
11
10
|
.site-card-avatar
|
12
11
|
img.flink-avatar.cf-friends-avatar(src=item.avatar + (data.suffix || ''), alt=item.name)
|
@@ -44,12 +44,12 @@ script.
|
|
44
44
|
const $dom = document.querySelector('#card-newest-comments .aside-list')
|
45
45
|
$dom.innerHTML = array.length ? array.map(item => `
|
46
46
|
<div class='aside-list-item'>
|
47
|
-
<a
|
47
|
+
<a onclick='pjax.loadUrl("${item.url}")' class='thumbnail'>
|
48
48
|
<img src='${item.avatar}' alt='${item.nick}'>
|
49
49
|
<div class='name'><span>${item.nick}</span></div>
|
50
50
|
</a>
|
51
51
|
<div class='content'>
|
52
|
-
<a class='comment'
|
52
|
+
<a class='comment' onclick='pjax.loadUrl("${item.url}")'>${item.content}</a>
|
53
53
|
<time class="datetime" datetime="${item.date}"></time>
|
54
54
|
</div>
|
55
55
|
</div>
|
@@ -45,12 +45,12 @@ script.
|
|
45
45
|
const $dom = document.querySelector('#card-newest-comments .aside-list')
|
46
46
|
$dom.innerHTML = array.length ? array.map(item => `
|
47
47
|
<div class='aside-list-item'>
|
48
|
-
<a
|
48
|
+
<a onclick='pjax.loadUrl("${item.url}")' class='thumbnail'>
|
49
49
|
<img src='${item.avatar}' alt='${item.nick}'>
|
50
50
|
<div class='name'><span>${item.nick}</span></div>
|
51
51
|
</a>
|
52
52
|
<div class='content'>
|
53
|
-
<a class='comment'
|
53
|
+
<a class='comment' onclick='pjax.loadUrl("${item.url}")'>${item.content}</a>
|
54
54
|
<time class="datetime" datetime="${item.date}"></time>
|
55
55
|
</div>
|
56
56
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
div#search-results
|
11
11
|
#search-hits
|
12
12
|
each tag in theme.search.tags || []
|
13
|
-
a.tag-list(href='/tags/
|
13
|
+
a.tag-list(href='javascript:void(0);' onclick="pjax.loadUrl('/tags/" + tag + "/')")=tag
|
14
14
|
div#search-pagination
|
15
15
|
div#search-tips
|
16
16
|
div#search-mask
|
package/layout/index.pug
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
extends includes/layout
|
1
|
+
extends includes/layout
|
2
2
|
|
3
3
|
block content
|
4
4
|
#home_top
|
5
5
|
if theme.says.home_mini
|
6
6
|
include ./includes/widgets/home/bbTimeList
|
7
7
|
if theme.hometop.banner.enable && is_home_first_page()
|
8
|
-
include ./includes/widgets/home/hometop
|
8
|
+
include ./includes/widgets/home/hometop
|
9
9
|
main.layout#content-inner
|
10
10
|
.recent-posts#recent-posts
|
11
11
|
#category-bar
|
12
|
-
include ./includes/widgets/home/categoryBar
|
12
|
+
include ./includes/widgets/home/categoryBar
|
13
13
|
for post in page.posts.sort("-sticky" || "-date").data
|
14
|
-
include ./includes/widgets/home/postList
|
14
|
+
include ./includes/widgets/home/postList
|
15
15
|
|
16
16
|
// pageination
|
17
|
-
include ./includes/mixins/pagination
|
17
|
+
include ./includes/mixins/pagination
|
18
18
|
|
19
19
|
// aside
|
20
|
-
include ./includes/widgets/aside/aside
|
20
|
+
include ./includes/widgets/aside/aside
|
package/layout/page.pug
CHANGED
package/package.json
CHANGED
package/plugins.yml
CHANGED
@@ -19,11 +19,6 @@ waline_js:
|
|
19
19
|
file: dist/waline.js
|
20
20
|
other_name: waline
|
21
21
|
version: 2.15.8
|
22
|
-
waline_css:
|
23
|
-
name: '@waline/client'
|
24
|
-
file: dist/waline.css
|
25
|
-
other_name: waline
|
26
|
-
version: 2.15.8
|
27
22
|
sharejs:
|
28
23
|
name: butterfly-extsrc
|
29
24
|
file: sharejs/dist/js/social-share.min.js
|