add site|post background
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user