hexo-theme-particlex 2.5.4 → 2.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/layout/archives.ejs +1 -1
- package/layout/import.ejs +6 -6
- package/package.json +1 -1
- package/source/js/lib/crypto.js +4 -1
- package/source/js/lib/highlight.js +4 -1
- package/source/js/lib/math.js +2 -2
- package/source/js/lib/preview.js +6 -1
- package/source/js/lib/search.js +4 -2
- package/source/js/main.js +6 -1
package/layout/archives.ejs
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<% } %>
|
9
9
|
<div id="timeline-wrap" ref="timeline">
|
10
10
|
<% posts.reverse().forEach((post, id) => { %>
|
11
|
-
<div class="timeline" data-title="<%- post.title.toLowerCase().replace(/\s+/
|
11
|
+
<div class="timeline" data-title="<%- post.title.toLowerCase().replace(/\s+/g, "") %>">
|
12
12
|
<div class="timeline-tail"></div>
|
13
13
|
<div class="timeline-content">
|
14
14
|
<div class="item-time"><%= date(post.date, "YYYY/M/D") %></div>
|
package/layout/import.ejs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<script src="https://cdn.staticfile.org/vue/3.2.
|
2
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.
|
1
|
+
<script src="https://cdn.staticfile.org/vue/3.2.47/vue.global.prod.min.js"></script>
|
2
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.3.0/css/all.min.css" />
|
3
3
|
<link rel="stylesheet" href="<%- url_for("/css/fonts.min.css") %>" />
|
4
4
|
<script> const mixins = {}; </script>
|
5
5
|
<% if (theme.polyfill.enable) { %>
|
@@ -35,12 +35,12 @@
|
|
35
35
|
<link rel="stylesheet" href="https://cdn.staticfile.org/gitalk/1.8.0/gitalk.min.css" />
|
36
36
|
<% } %>
|
37
37
|
<% if (theme.waline.enable) { %>
|
38
|
-
<script src="https://cdn.staticfile.org/waline/2.14.
|
39
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.
|
40
|
-
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.
|
38
|
+
<script src="https://cdn.staticfile.org/waline/2.14.8/waline.min.js"></script>
|
39
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.8/waline.min.css" />
|
40
|
+
<link rel="stylesheet" href="https://cdn.staticfile.org/waline/2.14.8/waline-meta.min.css" />
|
41
41
|
<% } %>
|
42
42
|
<% if (theme.twikoo.enable) { %>
|
43
|
-
<script src="https://cdn.staticfile.org/twikoo/1.6.
|
43
|
+
<script src="https://cdn.staticfile.org/twikoo/1.6.10/twikoo.all.min.js"></script>
|
44
44
|
<% } %>
|
45
45
|
<% } %>
|
46
46
|
<% if (type === "index") { %>
|
package/package.json
CHANGED
package/source/js/lib/crypto.js
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
mixins.highlight = {
|
2
2
|
data() {
|
3
|
-
return {
|
3
|
+
return {
|
4
|
+
copying: false,
|
5
|
+
};
|
4
6
|
},
|
5
7
|
created() {
|
6
8
|
hljs.configure({ ignoreUnescapedHTML: true });
|
9
|
+
this.renderers.push(this.highlight);
|
7
10
|
},
|
8
11
|
methods: {
|
9
12
|
highlight() {
|
package/source/js/lib/math.js
CHANGED
package/source/js/lib/preview.js
CHANGED
package/source/js/lib/search.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
mixins.search = {
|
2
2
|
data() {
|
3
|
-
return {
|
3
|
+
return {
|
4
|
+
rawSearch: "",
|
5
|
+
};
|
4
6
|
},
|
5
7
|
watch: {
|
6
8
|
search(value) {
|
@@ -19,7 +21,7 @@ mixins.search = {
|
|
19
21
|
},
|
20
22
|
computed: {
|
21
23
|
search() {
|
22
|
-
return this.rawSearch.toLowerCase().replace(
|
24
|
+
return this.rawSearch.toLowerCase().replace(/\s+/g, "");
|
23
25
|
},
|
24
26
|
},
|
25
27
|
};
|
package/source/js/main.js
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
const app = Vue.createApp({
|
2
2
|
mixins: Object.values(mixins),
|
3
3
|
data() {
|
4
|
-
return {
|
4
|
+
return {
|
5
|
+
loading: true,
|
6
|
+
showMenu: false,
|
7
|
+
barLocal: 0,
|
8
|
+
renderers: [],
|
9
|
+
};
|
5
10
|
},
|
6
11
|
created() {
|
7
12
|
window.addEventListener("load", () => {
|