feat: add dark mode

This commit is contained in:
2022-07-21 22:03:35 -04:00
parent a4450071d2
commit 9c6b91c562
18 changed files with 394 additions and 36 deletions

View File

@@ -1,11 +0,0 @@
import { SitemapStream, streamToPromise } from "sitemap";
export default defineEventHandler(async (event) => {
// Fetch all documents
const docs = await serverQueryContent(event).find();
const sitemap = new SitemapStream({ hostname: "https://example.com" });
for (const doc of docs) {
sitemap.write({ url: doc._path, changefreq: "monthly" });
}
sitemap.end();
return streamToPromise(sitemap);
});