hexo-theme-particlex 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -5
- package/_config.yml +3 -3
- package/layout/card.ejs +8 -8
- package/package.json +1 -1
- package/source/css/particlex.css +14 -17
package/README.md
CHANGED
@@ -121,9 +121,9 @@ highlightStyle: github # Highlight style
|
|
121
121
|
```yaml
|
122
122
|
card:
|
123
123
|
enable: true
|
124
|
-
description:
|
125
|
-
|
126
|
-
|
124
|
+
description: |
|
125
|
+
Description
|
126
|
+
...
|
127
127
|
iconLinks:
|
128
128
|
{}
|
129
129
|
# <name>:
|
@@ -144,7 +144,8 @@ highlightStyle: github # Highlight style
|
|
144
144
|
支持 Markdown 格式
|
145
145
|
|
146
146
|
```yaml
|
147
|
-
description:
|
147
|
+
description: |
|
148
|
+
Normal _Italic_ **Strong**
|
148
149
|
```
|
149
150
|
|
150
151
|
- 页脚
|
@@ -177,7 +178,7 @@ highlightStyle: github # Highlight style
|
|
177
178
|
|
178
179
|
- 渲染数学公式
|
179
180
|
|
180
|
-
使用
|
181
|
+
使用 KaTeX 渲染数学公式,默认关闭
|
181
182
|
|
182
183
|
```yaml
|
183
184
|
math:
|
package/_config.yml
CHANGED
package/layout/card.ejs
CHANGED
@@ -6,13 +6,10 @@
|
|
6
6
|
<div class="name">
|
7
7
|
<%= config.author %>
|
8
8
|
</div>
|
9
|
-
<div class="
|
10
|
-
|
11
|
-
<div class="description">
|
12
|
-
<%- markdown(desc) %>
|
13
|
-
</div>
|
14
|
-
<% }); %>
|
9
|
+
<div class="description">
|
10
|
+
<%- markdown(theme.card.description) %>
|
15
11
|
</div>
|
12
|
+
<% if (Object.keys(theme.card.iconLinks).length) { %>
|
16
13
|
<div class="icon-links">
|
17
14
|
<% Object.keys(theme.card.iconLinks).forEach(key => { %>
|
18
15
|
<span class="icon-link">
|
@@ -22,14 +19,17 @@
|
|
22
19
|
</span>
|
23
20
|
<% }); %>
|
24
21
|
</div>
|
22
|
+
<% } %>
|
23
|
+
<% if (Object.keys(theme.card.friendLinks).length) { %>
|
25
24
|
<div class="friend-links">
|
26
25
|
<% Object.keys(theme.card.friendLinks).forEach(key => { %>
|
27
|
-
<
|
26
|
+
<span class="friend-link">
|
28
27
|
<a href="<%- theme.card.friendLinks[key] %>">
|
29
28
|
<%= key %>
|
30
29
|
</a>
|
31
|
-
</
|
30
|
+
</span>
|
32
31
|
<% }); %>
|
33
32
|
</div>
|
33
|
+
<% } %>
|
34
34
|
</div>
|
35
35
|
</div>
|
package/package.json
CHANGED
package/source/css/particlex.css
CHANGED
@@ -291,7 +291,7 @@ footer .footer-wrap {
|
|
291
291
|
color: #1e3e3f;
|
292
292
|
}
|
293
293
|
#home-posts .post .post-tags {
|
294
|
-
line-height: 1.
|
294
|
+
line-height: 1.7;
|
295
295
|
}
|
296
296
|
#home-posts .post .post-tags a {
|
297
297
|
font-size: 14px;
|
@@ -414,18 +414,16 @@ footer .footer-wrap {
|
|
414
414
|
font-size: 16px;
|
415
415
|
font-weight: bold;
|
416
416
|
color: #1e3e3f;
|
417
|
-
text-transform: uppercase;
|
418
417
|
}
|
419
|
-
#home-card .card-style .
|
418
|
+
#home-card .card-style .description {
|
420
419
|
margin: 20px auto;
|
421
420
|
width: 85%;
|
422
421
|
}
|
423
422
|
#home-card .card-style .icon-links {
|
424
423
|
width: 85%;
|
425
424
|
margin: 10px auto;
|
426
|
-
padding:
|
425
|
+
padding-top: 10px;
|
427
426
|
border-top: #cdcdcd solid 1px;
|
428
|
-
border-bottom: #cdcdcd solid 1px;
|
429
427
|
}
|
430
428
|
#home-card .card-style .icon-links a {
|
431
429
|
color: #5c6b72;
|
@@ -441,20 +439,18 @@ footer .footer-wrap {
|
|
441
439
|
margin: 5px;
|
442
440
|
}
|
443
441
|
#home-card .card-style .friend-links {
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
text-align: center;
|
442
|
+
width: 85%;
|
443
|
+
margin: 10px auto;
|
444
|
+
padding-top: 10px;
|
445
|
+
border-top: #cdcdcd solid 1px;
|
449
446
|
}
|
450
447
|
#home-card .card-style .friend-links .friend-link a {
|
451
448
|
display: inline-block;
|
452
|
-
width:
|
453
|
-
|
449
|
+
width: 100%;
|
450
|
+
margin-bottom: 5px;
|
451
|
+
line-height: 30px;
|
454
452
|
color: #5c6b72;
|
455
|
-
|
456
|
-
border-radius: 15px;
|
457
|
-
background-blend-mode: darken;
|
453
|
+
border-radius: 10px;
|
458
454
|
}
|
459
455
|
#home-card .card-style .friend-links .friend-link a:hover {
|
460
456
|
color: #fff;
|
@@ -507,6 +503,7 @@ footer .footer-wrap {
|
|
507
503
|
#menu .phone-menu .title {
|
508
504
|
z-index: 10004;
|
509
505
|
cursor: pointer;
|
506
|
+
text-transform: uppercase;
|
510
507
|
color: #555;
|
511
508
|
}
|
512
509
|
#menu .phone-menu .items {
|
@@ -718,7 +715,7 @@ footer .footer-icon {
|
|
718
715
|
text-decoration: none;
|
719
716
|
}
|
720
717
|
#archives .info {
|
721
|
-
line-height: 1.
|
718
|
+
line-height: 1.7;
|
722
719
|
}
|
723
720
|
#archives .category {
|
724
721
|
display: inline-block;
|
@@ -786,7 +783,7 @@ footer .footer-icon {
|
|
786
783
|
margin: 20px 0;
|
787
784
|
}
|
788
785
|
.article .info {
|
789
|
-
line-height: 1.
|
786
|
+
line-height: 1.7;
|
790
787
|
}
|
791
788
|
.article .info a {
|
792
789
|
color: #5c6b72;
|