hexo-theme-particlex 2.2.12 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -23,9 +23,15 @@ cd themes
23
23
  git clone https://github.com/argvchs/hexo-theme-particlex.git particlex --depth=1
24
24
  ```
25
25
 
26
+ 然后在根目录 `_config.yml` 设置主题为 ParticleX 即可
27
+
28
+ ```yaml
29
+ theme: particlex
30
+ ```
31
+
26
32
  - 关闭自带 Highlight
27
33
 
28
- 在博客根目录下的 `_config.yml`,修改 `highlight` `prismjs` 参数
34
+ Hexo 有自带的 Highlight,但是和 ParticleX Highlight 不兼容
29
35
 
30
36
  ```yaml
31
37
  highlight:
@@ -1,4 +1,4 @@
1
- <div id="loading" style="height: 100vh; width: 100vw; position: fixed; display: flex; z-index: 2147483647; justify-content: space-between; background: #fff; transition: opacity 0.3s ease-out, visibility 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none">
1
+ <div id="loading" style="height: 100vh; width: 100vw; left: 0; top: 0; position: fixed; display: flex; z-index: 2147483647; justify-content: space-between; background: #fff; transition: opacity 0.3s ease-out, visibility 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none">
2
2
  <div style="position: fixed; height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center">
3
3
  <div id="loadcontent" style="width: 50vmin; height: 50vmin; padding: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: solid 10px #a3ddfb; text-align: center">
4
4
  <div>
package/layout/posts.ejs CHANGED
@@ -40,11 +40,11 @@
40
40
  </span>
41
41
  <% } %>
42
42
  </div>
43
- <div class="excerpt">
43
+ <div class="description">
44
44
  <div class="content" v-pre>
45
45
  <% if (typeof post.description !== "undefined") { %>
46
46
  <%- markdown(post.description) %>
47
- <% } else if (typeof post.excerpt !== "undefined") { %>
47
+ <% } else if (post.excerpt) { %>
48
48
  <%- post.excerpt %>
49
49
  <% } else { %>
50
50
  <%- post.content %>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.2.12",
3
+ "version": "2.3.1",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -330,7 +330,7 @@
330
330
  display: inline-block;
331
331
  margin-left: 25px;
332
332
  }
333
- #home-posts .post .excerpt {
333
+ #home-posts .post .description {
334
334
  color: #1e3e3f;
335
335
  }
336
336
  #home-posts .post .go-post {
@@ -387,6 +387,7 @@
387
387
  }
388
388
  #main {
389
389
  margin-right: calc(100% - 100vw);
390
+ overflow: auto;
390
391
  }
391
392
  #menu {
392
393
  background: #92cafa;
@@ -852,7 +853,7 @@ ol {
852
853
  margin-bottom: 25px;
853
854
  padding: 50px;
854
855
  }
855
- #home-posts .post .excerpt {
856
+ #home-posts .post .description {
856
857
  padding: 20px 0;
857
858
  }
858
859
  #home-posts-wrap {
@@ -934,7 +935,7 @@ ol {
934
935
  margin-bottom: 30px;
935
936
  padding: 20px 30px;
936
937
  }
937
- #home-posts .post .excerpt {
938
+ #home-posts .post .description {
938
939
  padding: 20px 0;
939
940
  }
940
941
  #home-posts .post .post-tags {