diff options
| author | Volpeon <git@volpeon.ink> | 2026-07-22 19:40:59 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2026-07-22 19:40:59 +0200 |
| commit | c1e28224aa2e1450031669d9a7e359b63e04687d (patch) | |
| tree | 68f3d8905c763a91f68001d868197effa92adafa /src/pages/sitemap.ts | |
| download | corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.gz corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.tar.bz2 corvos-website-c1e28224aa2e1450031669d9a7e359b63e04687d.zip | |
Init
Diffstat (limited to 'src/pages/sitemap.ts')
| -rw-r--r-- | src/pages/sitemap.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pages/sitemap.ts b/src/pages/sitemap.ts new file mode 100644 index 0000000..378a9ed --- /dev/null +++ b/src/pages/sitemap.ts | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | import site from "@/corvos.config.ts"; | ||
| 2 | |||
| 3 | export const sitemap = site.$.sitemap((pages) => ({ | ||
| 4 | items: pages.map((page) => ({ | ||
| 5 | loc: page.url, | ||
| 6 | lastmod: page.data.modifiedAt, | ||
| 7 | })), | ||
| 8 | })); | ||
