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.
Files changed (39) hide show
  1. package/.github/workflows/main.yml +19 -0
  2. package/LICENSE +21 -21
  3. package/index.js +2 -2
  4. package/languages/default.yml +4 -4
  5. package/languages/en.yml +4 -4
  6. package/languages/zh-CN.yml +4 -4
  7. package/layout/_partial/_analytics/baidu.ejs +8 -8
  8. package/layout/_partial/_analytics/cnzz.ejs +3 -3
  9. package/layout/_partial/_analytics/google.ejs +6 -6
  10. package/layout/_partial/_analytics/gtags.ejs +7 -7
  11. package/layout/_partial/_analytics/gtm-body.ejs +5 -5
  12. package/layout/_partial/_analytics/gtm-head.ejs +8 -8
  13. package/layout/_partial/_analytics/la.ejs +3 -3
  14. package/layout/_partial/_analytics/tencent.ejs +8 -8
  15. package/layout/_partial/_comment/DiscussBot.ejs +16 -16
  16. package/layout/_partial/_comment/changyan.ejs +13 -13
  17. package/layout/_partial/_comment/disqus.ejs +17 -17
  18. package/layout/_partial/_comment/disqusjs.ejs +16 -16
  19. package/layout/_partial/_comment/giscus.ejs +12 -12
  20. package/layout/_partial/_comment/gitalk.ejs +13 -13
  21. package/layout/_partial/_comment/gitment.ejs +13 -13
  22. package/layout/_partial/_comment/livere.ejs +11 -11
  23. package/layout/_partial/_comment/utteranc.ejs +9 -9
  24. package/layout/_partial/_comment/valine.ejs +9 -9
  25. package/layout/_partial/analytics.ejs +17 -17
  26. package/layout/_partial/head.ejs +28 -28
  27. package/layout/_partial/header.ejs +9 -9
  28. package/layout/_partial/post-nav.ejs +32 -32
  29. package/layout/archive.ejs +79 -79
  30. package/layout/category.ejs +24 -24
  31. package/layout/index.ejs +62 -62
  32. package/layout/layout.ejs +12 -12
  33. package/layout/post.ejs +39 -39
  34. package/move_config.js +17 -17
  35. package/package.json +17 -17
  36. package/scripts/helper/css_auto_version.js +17 -17
  37. package/scripts/helper/js_auto_version.js +17 -17
  38. package/source/css/style.css +663 -622
  39. package/source/js/core.js +24 -24
@@ -1,17 +1,17 @@
1
- 'use strict';
2
-
3
- function jsAutoVersionHelper(...args) {
4
- return args.reduce((result, path, i) => {
5
- if (i) result += '\n';
6
-
7
- if (Array.isArray(path)) {
8
- return result + Reflect.apply(jsAutoVersionHelper, this, path);
9
- }
10
- if (!path.includes('?') && !path.endsWith('.js')) path += '.js';
11
- let url_suffix = "?v=" + new Date().getTime();
12
- let url = this.url_for(path) + url_suffix;
13
- return `${result}<script src="${url}"></script>`;
14
- }, '');
15
- }
16
-
17
- hexo.extend.helper.register('js_auto_version', jsAutoVersionHelper);
1
+ 'use strict';
2
+
3
+ function jsAutoVersionHelper(...args) {
4
+ return args.reduce((result, path, i) => {
5
+ if (i) result += '\n';
6
+
7
+ if (Array.isArray(path)) {
8
+ return result + Reflect.apply(jsAutoVersionHelper, this, path);
9
+ }
10
+ if (!path.includes('?') && !path.endsWith('.js')) path += '.js';
11
+ let url_suffix = "?v=" + new Date().getTime();
12
+ let url = this.url_for(path) + url_suffix;
13
+ return `${result}<script src="${url}"></script>`;
14
+ }, '');
15
+ }
16
+
17
+ hexo.extend.helper.register('js_auto_version', jsAutoVersionHelper);