hexo-theme-particlex 2.7.2 → 2.7.4

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -73,9 +73,6 @@ archive_generator:
73
73
  # Avatar image
74
74
  avatar: /images/avatar.jpg
75
75
 
76
- # Favicon
77
- favicon: /images/favicon.png
78
-
79
76
  # Home page background image
80
77
  background:
81
78
  - /images/background.jpg
package/_config.yml CHANGED
@@ -4,9 +4,6 @@
4
4
  # Avatar image
5
5
  avatar: /images/avatar.jpg
6
6
 
7
- # Favicon
8
- favicon: /images/favicon.png
9
-
10
7
  # Home page background image
11
8
  background:
12
9
  - /images/background.jpg
@@ -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/layout/layout.ejs CHANGED
@@ -21,7 +21,7 @@
21
21
  <meta name="description" content="<%- config.description %>" />
22
22
  <meta name="keywords" content="<%- config.keywords %>" />
23
23
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
24
- <link rel="icon" href="<%- url_for(theme.favicon) %>" />
24
+ <link rel="icon" href="<%- url_for(theme.avatar) %>" />
25
25
  <%- partial("import", { type }) %>
26
26
  </head>
27
27
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.7.2",
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;
package/source/js/main.js CHANGED
@@ -21,7 +21,6 @@ const app = Vue.createApp({
21
21
  },
22
22
  methods: {
23
23
  render() {
24
- if (typeof this.renderers === "undefined") return;
25
24
  for (let i of this.renderers) i();
26
25
  },
27
26
  handleScroll() {
Binary file