hexo-theme-solitude 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layout/includes/footer.pug +1 -0
- package/layout/includes/inject/body.pug +1 -1
- package/layout/includes/inject/head.pug +2 -2
- package/layout/includes/widgets/aside/asideCustom.pug +5 -5
- package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
- package/layout/includes/widgets/aside/asideSwitch.pug +1 -1
- package/layout/includes/widgets/page/about/personalities.pug +3 -3
- package/layout/includes/widgets/third-party/comments/artalk.pug +1 -1
- package/layout/includes/widgets/third-party/comments/twikoo.pug +1 -1
- package/package.json +1 -1
- package/source/css/_comments/valine.styl +2 -1
- package/source/css/_highlight/prismjs/diff.styl +2 -3
- package/source/css/_post/tools.styl +4 -0
- package/source/js/utils.js +2 -1
@@ -52,6 +52,7 @@ div#footer-bar
|
|
52
52
|
div.copyright © #{moment(theme.aside.siteinfo.runtime).year()} - #{new Date().getFullYear()} By
|
53
53
|
a.footer-bar-link(href=url_for("/"))= config.author
|
54
54
|
div.footer-bar-right
|
55
|
+
a.footer-bar-link(href="https://github.com/valor-x/hexo-theme-solitude" title=__('footer.theme'))= __('footer.theme')
|
55
56
|
each item in theme.footer.links
|
56
57
|
a.footer-bar-link(href=url_for(item.url), alt=item.name)!= item.name
|
57
58
|
a.footer-bar-link.cc(href=url_for(theme.footer.license), aria-label = 'copyright')
|
@@ -47,7 +47,7 @@ div
|
|
47
47
|
if theme.post_ai.enable
|
48
48
|
script(src=url_for(theme.cdn.efu_ai))
|
49
49
|
|
50
|
-
if theme.capsule.enable || theme.music.enable
|
50
|
+
if theme.capsule.enable || theme.music.enable || theme.says.enable
|
51
51
|
script.
|
52
52
|
var meting_api = '!{theme.meting_api}';
|
53
53
|
script(src=url_for(theme.cdn.aplayer_js))
|
@@ -4,7 +4,7 @@ each item in theme.verify_site || []
|
|
4
4
|
link(rel="stylesheet", href=url_for(theme.cdn.solitude_css))
|
5
5
|
|
6
6
|
// aplayer
|
7
|
-
if theme.capsule.enable || theme.music.enable
|
7
|
+
if theme.capsule.enable || theme.music.enable || theme.says.enable
|
8
8
|
link(rel="stylesheet", href=url_for(theme.cdn.aplayer_css))
|
9
9
|
|
10
10
|
// swiper
|
@@ -27,7 +27,7 @@ include ../head/pwa.pug
|
|
27
27
|
|
28
28
|
script.
|
29
29
|
console.log(
|
30
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.9.
|
30
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.9.2",
|
31
31
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
32
32
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
33
33
|
"padding: 5px 10px;color:white;background:#0084ff;",
|
@@ -1,6 +1,6 @@
|
|
1
|
-
.card-widget(class=
|
1
|
+
.card-widget(class=custom.class, id=custom.id)
|
2
2
|
.item-headline
|
3
|
-
i(class=
|
4
|
-
span=
|
5
|
-
div(class=
|
6
|
-
!=
|
3
|
+
i(class=custom.icon)
|
4
|
+
span=custom.title
|
5
|
+
div(class=custom.content_class ||'item-content', id=custom.content_id, style=custom.content_css)
|
6
|
+
!= custom.content_html
|
@@ -30,7 +30,7 @@
|
|
30
30
|
.author-info__sayhi#author-info__sayhi(onclick="sco.changeSayHelloText()")= _p('sayhello.morning')
|
31
31
|
a.card-info-avatar(href=url_for(theme.aside.card.url) title=_p('aside.avatar'))
|
32
32
|
.avatar-img
|
33
|
-
img(src=theme.aside.card.author.img)
|
33
|
+
img(src=theme.aside.card.author.img alt=_p('aside.avatar'))
|
34
34
|
if theme.aside.card.author.sticker
|
35
35
|
.avatar-sticker
|
36
36
|
img.avatar-sticker-img(src=theme.aside.card.author.sticker, alt=_p('aside.sticker'))
|
@@ -9,9 +9,9 @@ if personalities
|
|
9
9
|
.image
|
10
10
|
img.nolazyload(src=personalities.image)
|
11
11
|
.post-tips
|
12
|
-
= _p('about.personalities.tip1')
|
13
|
-
a(href=
|
14
|
-
= _p('about.personalities.tip2')
|
12
|
+
= _p('about.personalities.tip1') + ' '
|
13
|
+
a(href='https://www.16personalities.com/')= personalities.linkText + ' '
|
14
|
+
= _p('about.personalities.tip2') + ' '
|
15
15
|
a(href=personalities.typeLink)= personalities.typeName
|
16
16
|
.author-content-item.myphoto
|
17
17
|
img.author-content-img(src=personalities.myphoto, alt="my photo")
|
@@ -22,7 +22,7 @@ script.
|
|
22
22
|
mailMd5: comment.data.email_encrypted,
|
23
23
|
})
|
24
24
|
const $content = comment.getRender().$content
|
25
|
-
utils.lightbox($content.querySelectorAll('img:not([atk-emoticon])'))
|
25
|
+
GLOBAL_CONFIG.lightbox && utils.lightbox($content.querySelectorAll('img:not([atk-emoticon])'))
|
26
26
|
sco.owoBig({body: '.atk-grp', item: '.atk-item'})
|
27
27
|
})
|
28
28
|
!{commentBarrage} && barrageArtalk(array)
|
@@ -24,7 +24,7 @@ script().
|
|
24
24
|
region: '!{region}',
|
25
25
|
path: window.location.pathname,
|
26
26
|
onCommentLoaded: () => {
|
27
|
-
utils.lightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
|
27
|
+
GLOBAL_CONFIG.lightbox && utils.lightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
|
28
28
|
}
|
29
29
|
}, !{JSON.stringify(option)}))
|
30
30
|
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
flex-direction column
|
16
16
|
position relative
|
17
17
|
|
18
|
-
|
18
|
+
.vemojis
|
19
19
|
display: none;
|
20
20
|
position: absolute;
|
21
21
|
left: 0;
|
@@ -194,6 +194,7 @@
|
|
194
194
|
flex 1
|
195
195
|
padding 0
|
196
196
|
border 0
|
197
|
+
overflow visible
|
197
198
|
|
198
199
|
.vhead
|
199
200
|
display flex
|
@@ -56,11 +56,10 @@ pre[class*='language-']
|
|
56
56
|
color: $highlight-blue
|
57
57
|
|
58
58
|
.token.deleted
|
59
|
-
|
59
|
+
color: var(--efu-red)
|
60
60
|
|
61
61
|
.token.inserted
|
62
|
-
|
63
|
-
text-decoration: none
|
62
|
+
color: var(--efu-green)
|
64
63
|
|
65
64
|
.token.italic
|
66
65
|
font-style: italic
|
package/source/js/utils.js
CHANGED
@@ -148,6 +148,7 @@
|
|
148
148
|
if (!window.fancyboxRun) {
|
149
149
|
Fancybox.bind('[data-fancybox]', {
|
150
150
|
Hash: false,
|
151
|
+
animated: true,
|
151
152
|
Thumbs: {showOnStart: false},
|
152
153
|
Images: {Panzoom: {maxScale: 4}},
|
153
154
|
Carousel: {transition: 'slide'},
|
@@ -157,7 +158,7 @@
|
|
157
158
|
middle: ['zoomIn', 'zoomOut', 'toggle1to1', 'rotateCCW', 'rotateCW', 'flipX', 'flipY'],
|
158
159
|
right: ['slideshow', 'thumbs', 'close']
|
159
160
|
}
|
160
|
-
}
|
161
|
+
},
|
161
162
|
});
|
162
163
|
window.fancyboxRun = true;
|
163
164
|
}
|