hexo-theme-hipaper-keyboarddaily 1.2.0 → 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 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: 30
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: 30
133
+ per_page: 20
134
134
  order_by: -updated
@@ -1,9 +1,9 @@
1
1
  home: 首页
2
- archives: 归档
2
+ archives: 内容列表
3
3
  about: 关于
4
- categories: 分类
4
+ categories: 内容分类
5
5
  search: 搜索
6
- tags: 合集
6
+ tags: 作品集
7
7
  tagcloud: 标签云
8
8
  tweets: 推文
9
9
  prev: 上一页
@@ -12,7 +12,7 @@ comment: 留言
12
12
  archive_a: 归档
13
13
  archive_b: 归档:%s
14
14
  page: 第 %d 页
15
- recent_posts: 最新文章
15
+ recent_posts: 最新内容
16
16
  newer: 上一篇
17
17
  older: 下一篇
18
18
  share: 分享
@@ -7,7 +7,7 @@
7
7
  <div class="site-info">
8
8
  &copy; <%= date(new Date(), 'YYYY') %> <%= config.title || config.author %> All Rights Reserved.
9
9
  <span id="icp_info">
10
- <a href="https://beian.miit.gov.cn/">沪ICP备2021016355号</a>
10
+ <a href="https://beian.miit.gov.cn/">沪ICP备2021016355号-2</a>
11
11
  </span>
12
12
  <br/>
13
13
  <% if (theme.busuanzi_analytics){ %>
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-hipaper-keyboarddaily",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Bugfix for A newspaper theme for Hexo.",
5
5
  "author": "iTimeTraveler, bugfix by keyboarddaily",
6
6
  "repository": {
@@ -54,8 +54,8 @@ $ins-full-screen
54
54
  .ins-close
55
55
  top: 50%
56
56
  right: 6px
57
- width: 30px
58
- height: 30px
57
+ width: 60px
58
+ height: 60px
59
59
  font-size: 16px
60
60
  margin-top: -11px
61
61
  position: absolute
@@ -149,14 +149,14 @@ if sidebar
149
149
  width: 100%;
150
150
  }
151
151
  @media only screen and (max-width: 767px) {
152
- .bilibili {height: 15em;max-width: 25em;}
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: 20em;max-width: 30em;}
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: 30em;max-width: 40em;}
158
+ .bilibili {height: 36em;max-width: 64em;}
159
159
  }
160
160
  @media only screen and (min-width: 1200px) {
161
- .bilibili {height: 40em;max-width: 50em;}
161
+ .bilibili {height: 45em;max-width: 80em;}
162
162
  }
@@ -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, 5),
170
- pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0, 5),
171
- categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0, 5),
172
- tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0, 5)
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));