This commit is contained in:
parent
199c85a262
commit
6af6c3ea79
16 changed files with 216 additions and 500 deletions
|
|
@ -66,6 +66,9 @@ export default class DevPlugin extends Plugin {
|
|||
}
|
||||
return new Response(rawFile, {
|
||||
headers: {
|
||||
"Cache-Control": "no-cache, no-store, must-revalidate",
|
||||
"Pragma": "no-cache",
|
||||
"Expires": "0",
|
||||
"Content-Type": (mime.lookup(type) || "application/octet-stream") + "; charset=utf-8",
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ export default class Variables extends Plugin {
|
|||
this.variables["__BLOG_POSTS__"] = JSON.stringify(
|
||||
fs.readdirSync("./website/blogs").map((z) => z.replace(".md", ""))
|
||||
);
|
||||
this.variables["__STICKERS__"] = JSON.stringify(
|
||||
fs.readdirSync("./website/assets/stickers")
|
||||
);
|
||||
const templatePath = path.resolve(__dirname, "../../website/templates");
|
||||
if (fs.existsSync(templatePath)) {
|
||||
for (const file of fs.readdirSync(templatePath)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue