new website design
All checks were successful
/ test (push) Successful in 12s

This commit is contained in:
Soph :3 2024-07-23 22:53:15 +03:00
parent 199c85a262
commit 6af6c3ea79
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
16 changed files with 216 additions and 500 deletions

View file

@ -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",
},
});

View file

@ -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)) {