hexo-theme-particlex 2.7.3 → 2.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,48 +1,25 @@
1
1
  <div class="page-current">
2
- <div class="prev">
3
- <% if (page.current !== 1) { %>
4
- <a class="page-num" href="<%- url_for(page.prev_link) %>">
5
- <i class="fa-solid fa-caret-left fa-fw"></i>
6
- </a>
7
- <% } %>
8
- </div>
9
- <div class="page-index">
10
- <% if (page.current !== 1) { %>
11
- <span>
12
- <% if (page.current - 3 >= 1) { %>
13
- <a class="page-num" href="<%- config.root %>">1</a>
14
- <span class="page-omit">...</span>
15
- <% } %>
16
- <% if (page.current - 2 >= 1) { %>
17
- <% if (page.current - 2 === 1) { %>
18
- <a class="page-num" href="<%- config.root %>">1</a>
19
- <% } %>
20
- <% if (page.current - 2 !== 1) { %>
21
- <a class="page-num" href="<%- url_for("page/" + (page.current - 2)) %>"><%= page.current - 2 %></a>
22
- <% } %>
23
- <% } %>
24
- <a class="page-num" href="<%- url_for(page.prev_link) %>"><%= page.prev %></a>
25
- </span>
26
- <% } %>
27
- <span class="current"><%= page.current %></span>
28
- <% if (page.current !== page.total) { %>
29
- <span>
30
- <a class="page-num" href="<%- url_for(page.next_link) %>"><%= page.next %></a>
31
- <% if (page.current + 2 <= page.total) { %>
32
- <a class="page-num" href="<%- url_for("page/" + (page.current + 2)) %>"><%= page.current + 2 %></a>
33
- <% } %>
34
- <% if (page.current + 3 <= page.total) { %>
35
- <span class="page-omit">...</span>
36
- <a class="page-num" href="<%- url_for("page/" + page.total) %>"><%= page.total %></a>
37
- <% } %>
38
- </span>
39
- <% } %>
40
- </div>
41
- <div class="next">
42
- <% if (page.current !== page.total) { %>
43
- <a class="page-num" href="<%- url_for(page.next_link) %>">
44
- <i class="fa-solid fa-caret-right fa-fw"></i>
45
- </a>
46
- <% } %>
47
- </div>
2
+ <% if (page.current !== 1) { %>
3
+ <a class="page-num" href="<%- url_for(page.prev_link) %>">
4
+ <i class="fa-solid fa-caret-left fa-fw"></i>
5
+ </a>
6
+ <a class="page-num" href="<%- config.root %>">1</a>
7
+ <span class="page-omit">...</span>
8
+ <% } %>
9
+ <span class="current"><%= page.current %></span>
10
+ <% if (page.current + 1 <= page.total) { %>
11
+ <a class="page-num" href="<%- url_for("page/" + (page.current + 1)) %>"><%= page.current + 1 %></a>
12
+ <% } %>
13
+ <% if (page.current + 2 <= page.total) { %>
14
+ <a class="page-num" href="<%- url_for("page/" + (page.current + 2)) %>"><%= page.current + 2 %></a>
15
+ <% } %>
16
+ <% if (page.current + 3 <= page.total) { %>
17
+ <span class="page-omit">...</span>
18
+ <a class="page-num" href="<%- url_for("page/" + page.total) %>"><%= page.total %></a>
19
+ <% } %>
20
+ <% if (page.current !== page.total) { %>
21
+ <a class="page-num" href="<%- url_for(page.next_link) %>">
22
+ <i class="fa-solid fa-caret-right fa-fw"></i>
23
+ </a>
24
+ <% } %>
48
25
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -214,8 +214,10 @@
214
214
  #home-posts .page-current {
215
215
  align-items: center;
216
216
  display: flex;
217
+ font-weight: bold;
217
218
  justify-content: center;
218
219
  margin-top: 50px;
220
+ text-align: center;
219
221
  width: 100%;
220
222
  }
221
223
  #home-posts .page-current .current {
@@ -228,11 +230,6 @@
228
230
  padding: 5px;
229
231
  width: 35px;
230
232
  }
231
- #home-posts .page-current .page-index {
232
- font-weight: bold;
233
- text-align: center;
234
- width: 300px;
235
- }
236
233
  #home-posts .page-current .page-num,
237
234
  #home-posts .page-current .page-omit {
238
235
  border-radius: 5px;
@@ -243,11 +240,6 @@
243
240
  padding: 5px;
244
241
  width: 35px;
245
242
  }
246
- #home-posts .page-current .prev,
247
- #home-posts .page-current .next {
248
- text-align: center;
249
- width: 50px;
250
- }
251
243
  #home-posts .page-current a {
252
244
  color: #999;
253
245
  }
@@ -347,6 +339,7 @@
347
339
  position: fixed;
348
340
  top: 0;
349
341
  width: 100vw;
342
+ word-break: keep-all;
350
343
  z-index: 2147483647;
351
344
  }
352
345
  #loading h2,
@@ -473,7 +466,6 @@
473
466
  position: relative;
474
467
  scrollbar-color: #8ab5ff #e6efff;
475
468
  scrollbar-width: thin;
476
- word-break: keep-all;
477
469
  word-wrap: break-word;
478
470
  }
479
471
  .article {
@@ -721,9 +713,6 @@ code {
721
713
  line-height: 2.5;
722
714
  padding: 4px 8px;
723
715
  }
724
- h1 {
725
- font-size: 30px;
726
- }
727
716
  h1,
728
717
  h2,
729
718
  h3,
@@ -733,6 +722,10 @@ h6 {
733
722
  color: #1e3e3f;
734
723
  font-weight: bold;
735
724
  margin: 15px 0;
725
+ word-break: keep-all;
726
+ }
727
+ h1 {
728
+ font-size: 30px;
736
729
  }
737
730
  h2 {
738
731
  font-size: 27px;