hexo-theme-solitude 1.7.6 → 1.7.8
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 +1 -2
- package/languages/en.yml +1 -0
- package/languages/zh-CN.yml +1 -0
- package/languages/zh-TW.yml +1 -0
- package/layout/includes/inject/body.pug +6 -10
- package/layout/includes/inject/head.pug +2 -2
- package/layout/includes/widgets/home/leonus.pug +1 -1
- package/layout/index.pug +2 -2
- package/package.json +1 -1
- package/plugins.yml +0 -4
- package/source/css/_page/_home/banner.styl +7 -3
- package/source/css/_page/_home/home-top.styl +0 -4
- package/source/css/_page/_home/home.styl +1 -5
- package/source/css/_page/other.styl +1 -1
- package/source/js/search/local.js +3 -13
- /package/source/css/{_page/_home → _layout}/pagination.styl +0 -0
- /package/source/css/{_page/_home → _layout}/recent-post.styl +0 -0
package/_config.yml
CHANGED
package/languages/en.yml
CHANGED
package/languages/zh-CN.yml
CHANGED
package/languages/zh-TW.yml
CHANGED
@@ -44,7 +44,7 @@ div
|
|
44
44
|
script(src=url_for(theme.cdn.medium_zoom))
|
45
45
|
if theme.fancybox
|
46
46
|
script(src=url_for(theme.cdn.fancyapps_ui))
|
47
|
-
if theme.says.home_mini
|
47
|
+
if (theme.says.home_mini && theme.says.enable) || theme.banner
|
48
48
|
script(src=url_for(theme.cdn.swiper_js))
|
49
49
|
|
50
50
|
if theme.post_ai.enable
|
@@ -90,13 +90,9 @@ div
|
|
90
90
|
if theme.loading.pace
|
91
91
|
script(src=url_for(theme.cdn.pace_js))
|
92
92
|
|
93
|
-
if theme.search.enable
|
94
|
-
|
95
|
-
|
96
|
-
script(src=url_for(theme.cdn.instantsearch))
|
97
|
-
script(src=url_for(theme.cdn.algolia_search))
|
98
|
-
when 'local'
|
99
|
-
script(src=url_for(theme.cdn.lunr_js))
|
93
|
+
if theme.search.enable && theme.search.type === "algolia"
|
94
|
+
script(src=url_for(theme.cdn.instantsearch))
|
95
|
+
script(src=url_for(theme.cdn.algolia_search))
|
100
96
|
|
101
97
|
if theme.extends.body
|
102
98
|
each item in theme.extends.body
|
@@ -106,10 +102,10 @@ div#js-pjax
|
|
106
102
|
if theme.mermaid
|
107
103
|
script.
|
108
104
|
mermaid.run();
|
109
|
-
if is_home() && theme.says.home_mini
|
105
|
+
if is_home() && (theme.says.home_mini && theme.says.enable)
|
110
106
|
script.
|
111
107
|
sco.initbbtalk();
|
112
|
-
if is_home() && theme.banner && site.posts.data.filter(item => item.recommend === true).slice(0,6) || false
|
108
|
+
if is_home() && theme.banner && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false
|
113
109
|
script.
|
114
110
|
banner_swiper()
|
115
111
|
if page.type === 'says' && theme.says.enable
|
@@ -8,7 +8,7 @@ if theme.capsule.enable || theme.music.enable
|
|
8
8
|
link(rel="stylesheet", href=url_for(theme.cdn.aplayer_css))
|
9
9
|
|
10
10
|
// swiper
|
11
|
-
if theme.says.home_mini
|
11
|
+
if (theme.says.home_mini && theme.says.enable) || theme.banner
|
12
12
|
link(rel="stylesheet", href=url_for(theme.cdn.swiper_css))
|
13
13
|
|
14
14
|
if theme.lightbox && theme.fancybox
|
@@ -111,7 +111,7 @@ script.
|
|
111
111
|
)(window)
|
112
112
|
|
113
113
|
console.log(
|
114
|
-
"%c Program: Hexo %c Theme: Solitude %c Version: v1.7.
|
114
|
+
"%c Program: Hexo %c Theme: Solitude %c Version: v1.7.8",
|
115
115
|
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
|
116
116
|
"padding: 5px 10px;color:white;background:#3e9f50;",
|
117
117
|
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
|
@@ -10,7 +10,7 @@ if recommends
|
|
10
10
|
.blog-slider__content
|
11
11
|
a.blog-slider__title(onclick=`event.stopPropagation();`, href=item.path)=item.title
|
12
12
|
span.blog-slider__code
|
13
|
-
|
13
|
+
=_p('upload')
|
14
14
|
time(datetime=item.date)
|
15
15
|
.blog-slider__text=item.description
|
16
16
|
.swiper-button-next
|
package/layout/index.pug
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
extends includes/layout
|
2
2
|
|
3
3
|
block content
|
4
|
-
if theme.hometop.enable || theme.says.home_mini
|
4
|
+
if theme.hometop.enable || (theme.says.home_mini && theme.says.enable)
|
5
5
|
#home_top
|
6
|
-
if theme.says.home_mini
|
6
|
+
if theme.says.home_mini && theme.says.enable
|
7
7
|
include ./includes/widgets/home/bbTimeList
|
8
8
|
if theme.hometop.enable && is_home_first_page()
|
9
9
|
include ./includes/widgets/home/hometop
|
package/package.json
CHANGED
package/plugins.yml
CHANGED
@@ -7,6 +7,7 @@ div#swiper_container
|
|
7
7
|
|
8
8
|
#swiperBox
|
9
9
|
margin-top 0!important
|
10
|
+
cursor default
|
10
11
|
|
11
12
|
.swiperBox-top-text
|
12
13
|
position absolute
|
@@ -27,13 +28,16 @@ div#swiper_container
|
|
27
28
|
|
28
29
|
.swiper-button-prev, .swiper-button-next
|
29
30
|
transition all .3s
|
31
|
+
border-radius 5px
|
30
32
|
color var(--efu-main) !important
|
33
|
+
background var(--efu-maskbg)
|
34
|
+
opacity .5
|
31
35
|
|
32
36
|
&:hover
|
37
|
+
opacity 1
|
33
38
|
transition all .3s
|
34
|
-
|
35
|
-
|
36
|
-
background var(--efu-maskbg)
|
39
|
+
color var(--efu-white) !important
|
40
|
+
background var(--efu-main)
|
37
41
|
|
38
42
|
.swiper-button-next::after, .swiper-button-prev::after
|
39
43
|
font-size 1.5rem
|
@@ -1,5 +1,5 @@
|
|
1
1
|
window.onload = () => {
|
2
|
-
let
|
2
|
+
let store = [];
|
3
3
|
const $searchMask = document.getElementById("search-mask");
|
4
4
|
const $searchDialog = document.querySelector("#local-search .search-dialog");
|
5
5
|
window.openSearch = () => {
|
@@ -41,7 +41,7 @@ window.onload = () => {
|
|
41
41
|
|
42
42
|
searchClickFn();
|
43
43
|
|
44
|
-
function
|
44
|
+
function init() {
|
45
45
|
fetch(GLOBAL_CONFIG.localsearch.path)
|
46
46
|
.then(response => response.text())
|
47
47
|
.then(data => {
|
@@ -59,16 +59,6 @@ window.onload = () => {
|
|
59
59
|
'content': content
|
60
60
|
});
|
61
61
|
}
|
62
|
-
|
63
|
-
idx = lunr(function () {
|
64
|
-
this.ref('link');
|
65
|
-
this.field('title', {boost: 10});
|
66
|
-
this.field('content');
|
67
|
-
|
68
|
-
store.forEach(function (doc) {
|
69
|
-
this.add(doc);
|
70
|
-
}, this);
|
71
|
-
});
|
72
62
|
})
|
73
63
|
.catch(err => console.error("Error loading search data:", err));
|
74
64
|
}
|
@@ -169,7 +159,7 @@ window.onload = () => {
|
|
169
159
|
}
|
170
160
|
paginationContainer.appendChild(paginationList);
|
171
161
|
}
|
172
|
-
|
162
|
+
init();
|
173
163
|
initUI();
|
174
164
|
window.addEventListener('DOMContentLoaded', (event) => {
|
175
165
|
initUI();
|
File without changes
|
File without changes
|