hexo-theme-hipaper-keyboarddaily 1.2.1 → 1.2.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/_config.yml +2 -2
- package/layout/_partial/header-post.ejs +1 -1
- package/package.json +1 -1
- package/source/css/style.styl +4 -4
- package/source/js/insight.js +8 -4
package/_config.yml
CHANGED
|
@@ -121,7 +121,7 @@ cnzz_siteid: 1260716016
|
|
|
121
121
|
|
|
122
122
|
# Pagination
|
|
123
123
|
## Set per_page to 0 to disable pagination
|
|
124
|
-
per_page:
|
|
124
|
+
per_page: 20
|
|
125
125
|
pagination_dir: page
|
|
126
126
|
|
|
127
127
|
# Home page setting
|
|
@@ -130,5 +130,5 @@ pagination_dir: page
|
|
|
130
130
|
# order_by: Posts order. (Order by date descending by default)
|
|
131
131
|
index_generator:
|
|
132
132
|
path: ''
|
|
133
|
-
per_page:
|
|
133
|
+
per_page: 20
|
|
134
134
|
order_by: -updated
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</div>
|
|
56
56
|
</nav>
|
|
57
57
|
<div style="margin: 10px 0;">
|
|
58
|
-
<div id="search-form-menu" style="width: 100%;">
|
|
58
|
+
<div id="search-form-menu" style="width: 100%; display: none;">
|
|
59
59
|
<form class="search-form">
|
|
60
60
|
<label style="width:100%">
|
|
61
61
|
<span class="screen-reader-text">Search for:</span>
|
package/package.json
CHANGED
package/source/css/style.styl
CHANGED
|
@@ -149,14 +149,14 @@ if sidebar
|
|
|
149
149
|
width: 100%;
|
|
150
150
|
}
|
|
151
151
|
@media only screen and (max-width: 767px) {
|
|
152
|
-
.bilibili {height:
|
|
152
|
+
.bilibili {height: 18em;max-width: 32em;}
|
|
153
153
|
}
|
|
154
154
|
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
|
155
|
-
.bilibili {height:
|
|
155
|
+
.bilibili {height: 27em;max-width: 48em;}
|
|
156
156
|
}
|
|
157
157
|
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
|
158
|
-
.bilibili {height:
|
|
158
|
+
.bilibili {height: 36em;max-width: 64em;}
|
|
159
159
|
}
|
|
160
160
|
@media only screen and (min-width: 1200px) {
|
|
161
|
-
.bilibili {height:
|
|
161
|
+
.bilibili {height: 45em;max-width: 80em;}
|
|
162
162
|
}
|
package/source/js/insight.js
CHANGED
|
@@ -166,10 +166,10 @@
|
|
|
166
166
|
var tags = extractToSet(json, 'tags');
|
|
167
167
|
var categories = extractToSet(json, 'categories');
|
|
168
168
|
return {
|
|
169
|
-
posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0,
|
|
170
|
-
pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0,
|
|
171
|
-
categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0,
|
|
172
|
-
tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0,
|
|
169
|
+
posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0, 10),
|
|
170
|
+
pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0, 10),
|
|
171
|
+
categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0, 10),
|
|
172
|
+
tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0, 10)
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -218,6 +218,10 @@
|
|
|
218
218
|
if (location.hash.trim() === '#ins-search') {
|
|
219
219
|
$main.addClass('show');
|
|
220
220
|
}
|
|
221
|
+
|
|
222
|
+
const element = document.getElementById('search-form-menu');
|
|
223
|
+
element.style.display = '';
|
|
224
|
+
|
|
221
225
|
$input.on('input', function () {
|
|
222
226
|
var keywords = $(this).val();
|
|
223
227
|
searchResultToDOM(search(json, keywords));
|