hexo-theme-particlex 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,12 +4,12 @@
4
4
  <% site.categories.data.forEach(category => { %>
5
5
  <%
6
6
  const color = is_category(category.name)
7
- ? ["background: linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%)"]
8
- : ["background: #ffa2c4", "background: #00bcd4", "background: #03a9f4", "background: #00a596", "background: #ff7d73"];
7
+ ? ["linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%)"]
8
+ : ["#ffa2c4", "#00bcd4", "#03a9f4", "#00a596", "#ff7d73"];
9
9
  let num = Math.floor(Math.random() * color.length);
10
10
  %>
11
11
  <span>
12
- <a href="<%- url_for(category.path) %>" style="<%- color[num] %>">
12
+ <a href="<%- url_for(category.path) %>" style="background: <%- color[num] %>">
13
13
  <span class="icon">
14
14
  <i class="fa-solid fa-bookmark fa-fw"></i>
15
15
  </span>
package/layout/tags.ejs CHANGED
@@ -4,12 +4,12 @@
4
4
  <% site.tags.data.forEach(tag => { %>
5
5
  <%
6
6
  const color = is_tag(tag.name)
7
- ? ["background: linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%)"]
8
- : ["background: #ffa2c4", "background: #00bcd4", "background: #03a9f4", "background: #00a596", "background: #ff7d73"];
7
+ ? ["linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%)"]
8
+ : ["#ffa2c4", "#00bcd4", "#03a9f4", "#00a596", "#ff7d73"];
9
9
  let num = Math.floor(Math.random() * color.length);
10
10
  %>
11
11
  <span>
12
- <a href="<%- url_for(tag.path) %>" style="<%- color[num] %>">
12
+ <a href="<%- url_for(tag.path) %>" style="background: <%- color[num] %>">
13
13
  <span class="icon">
14
14
  <i class="fa-solid fa-tags fa-fw"></i>
15
15
  </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -553,6 +553,7 @@ footer .footer-wrap {
553
553
  background: #bddcf76b;
554
554
  padding: 4px 8px;
555
555
  border-radius: 4px;
556
+ line-height: 2.5;
556
557
  font-size: 14px;
557
558
  color: #4b616b;
558
559
  }