hexo-theme-particlex 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -1
- package/layout/posts.ejs +2 -2
- package/package.json +1 -1
- package/source/css/particlex.css +3 -3
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
|
-
|
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="
|
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 (
|
47
|
+
<% } else if (post.excerpt) { %>
|
48
48
|
<%- post.excerpt %>
|
49
49
|
<% } else { %>
|
50
50
|
<%- post.content %>
|
package/package.json
CHANGED
package/source/css/particlex.css
CHANGED
@@ -330,7 +330,7 @@
|
|
330
330
|
display: inline-block;
|
331
331
|
margin-left: 25px;
|
332
332
|
}
|
333
|
-
#home-posts .post .
|
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 .
|
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 .
|
938
|
+
#home-posts .post .description {
|
939
939
|
padding: 20px 0;
|
940
940
|
}
|
941
941
|
#home-posts .post .post-tags {
|