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);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
// page
|
||||
&.not-home-page
|
||||
height: 400px
|
||||
height: 700px !important
|
||||
|
||||
+maxWidth768()
|
||||
height: 280px
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
// post
|
||||
&.post-bg
|
||||
height: 400px
|
||||
height: 700px
|
||||
|
||||
+maxWidth768()
|
||||
height: 360px
|
||||
|
||||
Reference in New Issue
Block a user