add site|post background

This commit is contained in:
2024-08-01 16:45:30 +08:00
parent 3dd2927bd2
commit 8ddeba0de6
26 changed files with 1171 additions and 351 deletions

View File

@@ -105,7 +105,7 @@ hexo.extend.filter.register("before_generate", () => {
data[key] = cdnSource[type];
});
if (cond === "internal") data["main_css"] = "css/index.css";
if (cond === "internal") data["main_css"] = "css/index1.css";
return data;
};

View File

@@ -91,7 +91,7 @@ module.exports.cacheRules = {
search: false,
match: (url, $eject) => {
const allowedHost = $eject.domain;
const allowedPaths = ["/404.html", "/css/index.css"];
const allowedPaths = ["/404.html", "/css/index1.css"];
return url.host === allowedHost && allowedPaths.includes(url.pathname);
},
},