hexo-theme-particlex 2.2.4 → 2.2.6
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 +6 -6
- package/_config.yml +7 -7
- package/layout/layout.ejs +2 -2
- package/layout/script.ejs +2 -2
- package/package.json +1 -1
- package/source/css/particlex.css +1 -1
- package/source/js/functions.js +1 -1
package/README.md
CHANGED
|
@@ -278,12 +278,12 @@ highlightStyle: github # Highlight style
|
|
|
278
278
|
commentCount: true # If false, comment count will only be displayed in post page, not in home page
|
|
279
279
|
pageview: false # Pageviews count, Note: You should not enable both `waline.pageview` and `leancloud_visitors`
|
|
280
280
|
emoji: # Custom emoji
|
|
281
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
282
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
283
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
284
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
285
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
286
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
281
|
+
- https://unpkg.com/@waline/emojis@1.2.0/weibo
|
|
282
|
+
- https://unpkg.com/@waline/emojis@1.2.0/alus
|
|
283
|
+
- https://unpkg.com/@waline/emojis@1.2.0/bilibili
|
|
284
|
+
- https://unpkg.com/@waline/emojis@1.2.0/qq
|
|
285
|
+
- https://unpkg.com/@waline/emojis@1.2.0/tieba
|
|
286
|
+
- https://unpkg.com/@waline/emojis@1.2.0/tw-emoji
|
|
287
287
|
meta: # Comment information, valid meta are nick, mail and link
|
|
288
288
|
- nick
|
|
289
289
|
- mail
|
package/_config.yml
CHANGED
|
@@ -109,7 +109,7 @@ gitalk:
|
|
|
109
109
|
# https://github.com/giscus/giscus
|
|
110
110
|
giscus:
|
|
111
111
|
enable: false
|
|
112
|
-
src: https://giscus.app/client.js
|
|
112
|
+
src: https://giscus.app/client.js
|
|
113
113
|
repo:
|
|
114
114
|
repoID:
|
|
115
115
|
category:
|
|
@@ -134,12 +134,12 @@ waline:
|
|
|
134
134
|
commentCount: true # If false, comment count will only be displayed in post page, not in home page
|
|
135
135
|
pageview: false # Pageviews count, Note: You should not enable both `waline.pageview` and `leancloud_visitors`
|
|
136
136
|
emoji: # Custom emoji
|
|
137
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
138
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
139
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
140
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
141
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
142
|
-
- https://unpkg.com/@waline/emojis@1.0
|
|
137
|
+
- https://unpkg.com/@waline/emojis@1.2.0/weibo
|
|
138
|
+
- https://unpkg.com/@waline/emojis@1.2.0/alus
|
|
139
|
+
- https://unpkg.com/@waline/emojis@1.2.0/bilibili
|
|
140
|
+
- https://unpkg.com/@waline/emojis@1.2.0/qq
|
|
141
|
+
- https://unpkg.com/@waline/emojis@1.2.0/tieba
|
|
142
|
+
- https://unpkg.com/@waline/emojis@1.2.0/tw-emoji
|
|
143
143
|
meta: # Comment information, valid meta are nick, mail and link
|
|
144
144
|
- nick
|
|
145
145
|
- mail
|
package/layout/layout.ejs
CHANGED
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
<html lang="<%- config.language %>">
|
|
26
26
|
<head>
|
|
27
27
|
<meta charset="UTF-8">
|
|
28
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
|
|
29
28
|
<title><%= titlecase(title) %></title>
|
|
30
29
|
<meta name="author" content="<%- config.author %>">
|
|
31
30
|
<meta name="description" content="<%- config.description %>">
|
|
32
31
|
<meta name="keywords" content="<%- config.keywords %>">
|
|
32
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
|
|
33
33
|
<link rel="icon" href="<%- url_for(theme.avatar) %>">
|
|
34
|
-
<script src="https://cdn.staticfile.org/vue/3.2.45/vue.global.
|
|
34
|
+
<script src="https://cdn.staticfile.org/vue/3.2.45/vue.global.min.js"></script>
|
|
35
35
|
<script src="https://cdn.staticfile.org/highlight.js/11.7.0/highlight.min.js"></script>
|
|
36
36
|
<link rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/11.7.0/styles/<%- theme.highlightStyle %>.min.css">
|
|
37
37
|
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.2.1/css/all.min.css">
|
package/layout/script.ejs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<script src="<%- url_for("/js/particlex.js") %>"></script>
|
|
3
3
|
<% if (type == "post") { %>
|
|
4
4
|
<% if (theme.gitalk.enable) { %>
|
|
5
|
-
<script src="https://cdn.staticfile.org/gitalk/1.
|
|
6
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/gitalk/1.
|
|
5
|
+
<script src="https://cdn.staticfile.org/gitalk/1.8.0/gitalk.min.js"></script>
|
|
6
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/gitalk/1.8.0/gitalk.min.css">
|
|
7
7
|
<script>
|
|
8
8
|
let clientID = "<%- theme.gitalk.clientID %>",
|
|
9
9
|
clientSecret = "<%- theme.gitalk.clientSecret %>";
|
package/package.json
CHANGED
package/source/css/particlex.css
CHANGED
package/source/js/functions.js
CHANGED
|
@@ -6,7 +6,7 @@ function highlight() {
|
|
|
6
6
|
hljs.configure({ ignoreUnescapedHTML: true });
|
|
7
7
|
let codes = document.getElementsByTagName("pre");
|
|
8
8
|
for (let i of codes) {
|
|
9
|
-
let lang = [...i.classList, ...i.firstChild.classList][0] || "
|
|
9
|
+
let lang = [...i.classList, ...i.firstChild.classList][0] || "plaintext";
|
|
10
10
|
i.innerHTML = `<div class="code-content">${i.innerHTML}</div><div class="language">${lang}</div><div class="copycode"><i class="fa-solid fa-copy fa-fw"></i><i class="fa-solid fa-clone fa-fw"></i></div>`;
|
|
11
11
|
let copycode = i.getElementsByClassName("copycode")[0];
|
|
12
12
|
copycode.addEventListener("click", async function () {
|