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.
- package/layout/categories.ejs +3 -3
- package/layout/tags.ejs +3 -3
- package/package.json +1 -1
- package/source/css/particlex.css +1 -0
package/layout/categories.ejs
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
<% site.categories.data.forEach(category => { %>
|
5
5
|
<%
|
6
6
|
const color = is_category(category.name)
|
7
|
-
? ["
|
8
|
-
: ["
|
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
|
-
? ["
|
8
|
-
: ["
|
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