2025-2-26-fixed

This commit is contained in:
2025-02-26 09:16:07 +08:00
parent bf50b6c865
commit 4968d276dc
456 changed files with 27801 additions and 1 deletions

View File

@ -0,0 +1,24 @@
/* global hexo */
'use strict';
hexo.extend.helper.register('import_js', function(base, relative, ex = '') {
if (!Array.isArray(this.page.script_snippets)) {
this.page.script_snippets = [];
}
this.page.script_snippets.push(this.js_ex(base, relative, ex));
});
hexo.extend.helper.register('import_script', function(snippet) {
if (!Array.isArray(this.page.script_snippets)) {
this.page.script_snippets = [];
}
this.page.script_snippets.push(snippet);
});
hexo.extend.helper.register('import_css', function(base, relative, ex = '') {
if (!Array.isArray(this.page.css_snippets)) {
this.page.css_snippets = [];
}
this.page.css_snippets.push(this.css_ex(base, relative, ex));
});