hexo-theme-particlex 2.3.0 → 2.3.1

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/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:
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.3.0",
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 {
@@ -853,7 +853,7 @@ ol {
853
853
  margin-bottom: 25px;
854
854
  padding: 50px;
855
855
  }
856
- #home-posts .post .excerpt {
856
+ #home-posts .post .description {
857
857
  padding: 20px 0;
858
858
  }
859
859
  #home-posts-wrap {
@@ -935,7 +935,7 @@ ol {
935
935
  margin-bottom: 30px;
936
936
  padding: 20px 30px;
937
937
  }
938
- #home-posts .post .excerpt {
938
+ #home-posts .post .description {
939
939
  padding: 20px 0;
940
940
  }
941
941
  #home-posts .post .post-tags {