feat: add dark mode
This commit is contained in:
1 parent
a4450071d2
commit
9c6b91c562
18 files changed
+394
-36
No files matched your search
@@ -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);
|
||||
});
|
||||
Reference in new issue
Block a user