hexo-theme-particlex 2.1.5 → 2.2.0

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
@@ -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,10 +144,8 @@ highlightStyle: github # Highlight style
144
144
  支持 Markdown 格式
145
145
 
146
146
  ```yaml
147
- description: |-
148
- Normal
149
- _Italic_
150
- **Strong**
147
+ description: |
148
+ Normal _Italic_ **Strong**
151
149
  ```
152
150
 
153
151
  - 页脚
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,12 +6,8 @@
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>
16
12
  <% if (Object.keys(theme.card.iconLinks).length) { %>
17
13
  <div class="icon-links">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.1.5",
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"
@@ -415,7 +415,7 @@ footer .footer-wrap {
415
415
  font-weight: bold;
416
416
  color: #1e3e3f;
417
417
  }
418
- #home-card .card-style .descriptions {
418
+ #home-card .card-style .description {
419
419
  margin: 20px auto;
420
420
  width: 85%;
421
421
  }