hexo-theme-yet-the-books-optimize 1.0.4 → 2.0.20260103
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/.github/workflows/main.yml +19 -0
- package/LICENSE +21 -21
- package/index.js +2 -2
- package/languages/default.yml +4 -4
- package/languages/en.yml +4 -4
- package/languages/zh-CN.yml +4 -4
- package/layout/_partial/_analytics/baidu.ejs +8 -8
- package/layout/_partial/_analytics/cnzz.ejs +3 -3
- package/layout/_partial/_analytics/google.ejs +6 -6
- package/layout/_partial/_analytics/gtags.ejs +7 -7
- package/layout/_partial/_analytics/gtm-body.ejs +5 -5
- package/layout/_partial/_analytics/gtm-head.ejs +8 -8
- package/layout/_partial/_analytics/la.ejs +3 -3
- package/layout/_partial/_analytics/tencent.ejs +8 -8
- package/layout/_partial/_comment/DiscussBot.ejs +16 -16
- package/layout/_partial/_comment/changyan.ejs +13 -13
- package/layout/_partial/_comment/disqus.ejs +17 -17
- package/layout/_partial/_comment/disqusjs.ejs +16 -16
- package/layout/_partial/_comment/giscus.ejs +12 -12
- package/layout/_partial/_comment/gitalk.ejs +13 -13
- package/layout/_partial/_comment/gitment.ejs +13 -13
- package/layout/_partial/_comment/livere.ejs +11 -11
- package/layout/_partial/_comment/utteranc.ejs +9 -9
- package/layout/_partial/_comment/valine.ejs +9 -9
- package/layout/_partial/analytics.ejs +17 -17
- package/layout/_partial/head.ejs +28 -28
- package/layout/_partial/header.ejs +9 -9
- package/layout/_partial/post-nav.ejs +32 -32
- package/layout/archive.ejs +79 -79
- package/layout/category.ejs +24 -24
- package/layout/index.ejs +62 -62
- package/layout/layout.ejs +12 -12
- package/layout/post.ejs +39 -39
- package/move_config.js +17 -17
- package/package.json +17 -17
- package/scripts/helper/css_auto_version.js +17 -17
- package/scripts/helper/js_auto_version.js +17 -17
- package/source/css/style.css +663 -622
- package/source/js/core.js +24 -24
package/source/js/core.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
function search() {
|
|
2
|
-
window.open(
|
|
3
|
-
document.getElementById("search_form").getAttribute("action_e") +
|
|
4
|
-
" " +
|
|
5
|
-
document.getElementById("search_value").value
|
|
6
|
-
);
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
let display = false;
|
|
11
|
-
function displayAll() {
|
|
12
|
-
let elements = document.querySelectorAll(".catalogue .hidden");
|
|
13
|
-
if (!display) {
|
|
14
|
-
for (let elem of elements) {
|
|
15
|
-
elem.style.display = "block";
|
|
16
|
-
display = true;
|
|
17
|
-
}
|
|
18
|
-
} else {
|
|
19
|
-
for (let elem of elements) {
|
|
20
|
-
elem.style.display = "none";
|
|
21
|
-
display = false;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
function search() {
|
|
2
|
+
window.open(
|
|
3
|
+
document.getElementById("search_form").getAttribute("action_e") +
|
|
4
|
+
" " +
|
|
5
|
+
document.getElementById("search_value").value
|
|
6
|
+
);
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let display = false;
|
|
11
|
+
function displayAll() {
|
|
12
|
+
let elements = document.querySelectorAll(".catalogue .hidden");
|
|
13
|
+
if (!display) {
|
|
14
|
+
for (let elem of elements) {
|
|
15
|
+
elem.style.display = "block";
|
|
16
|
+
display = true;
|
|
17
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
for (let elem of elements) {
|
|
20
|
+
elem.style.display = "none";
|
|
21
|
+
display = false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|