feat: add dark mode

This commit is contained in:
eggy committed 2022-07-21 22:03:35 -04:00
1 parent a4450071d2
commit 9c6b91c562
18 files changed
+394 -36

No files matched your search

-11
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);
});