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 CHANGED
@@ -121,9 +121,9 @@ highlightStyle: github # Highlight style
121
121
  ```yaml
122
122
  card:
123
123
  enable: true
124
- description:
125
- - "Description"
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: "Normal **Strong** _Italic_"
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
- 使用 $\mathrm{K\kern{-0.2em}\raise{0.21em}{\scriptstyle{A}}\kern{-0.17em}T\kern{-0.14em}\lower{0.5ex}{E}\kern{-0.115em}X}$ 渲染数学公式,默认关闭
181
+ 使用 KaTeX 渲染数学公式,默认关闭
181
182
 
182
183
  ```yaml
183
184
  math:
package/_config.yml CHANGED
@@ -47,9 +47,9 @@ menu:
47
47
  # Side info card
48
48
  card:
49
49
  enable: true
50
- description:
51
- - "Description"
52
- - "..."
50
+ description: |
51
+ Description
52
+ ...
53
53
  iconLinks:
54
54
  {}
55
55
  # <name>:
package/layout/card.ejs CHANGED
@@ -6,13 +6,10 @@
6
6
  <div class="name">
7
7
  <%= config.author %>
8
8
  </div>
9
- <div class="descriptions">
10
- <% theme.card.description.forEach(desc => { %>
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
- <div class="friend-link">
26
+ <span class="friend-link">
28
27
  <a href="<%- theme.card.friendLinks[key] %>">
29
28
  <%= key %>
30
29
  </a>
31
- </div>
30
+ </span>
32
31
  <% }); %>
33
32
  </div>
33
+ <% } %>
34
34
  </div>
35
35
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -291,7 +291,7 @@ footer .footer-wrap {
291
291
  color: #1e3e3f;
292
292
  }
293
293
  #home-posts .post .post-tags {
294
- line-height: 1.5;
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 .descriptions {
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: 8px 15px;
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
- margin: 20px auto;
445
- }
446
- #home-card .card-style .friend-links .friend-link {
447
- margin: 5px auto;
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: 140px;
453
- line-height: 3;
449
+ width: 100%;
450
+ margin-bottom: 5px;
451
+ line-height: 30px;
454
452
  color: #5c6b72;
455
- font-size: 16px;
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.5;
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.5;
786
+ line-height: 1.7;
790
787
  }
791
788
  .article .info a {
792
789
  color: #5c6b72;