diff options
Diffstat (limited to 'src/pages/notes/rss.xml.ts')
| -rw-r--r-- | src/pages/notes/rss.xml.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/pages/notes/rss.xml.ts b/src/pages/notes/rss.xml.ts deleted file mode 100644 index 0f1f945..0000000 --- a/src/pages/notes/rss.xml.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { getCollection } from "astro:content"; -import { siteConfig } from "@/site.config"; -import rss from "@astrojs/rss"; - -export const GET = async () => { - const notes = await getCollection("note"); - - return rss({ - title: siteConfig.title, - description: siteConfig.description, - site: import.meta.env.SITE, - items: notes.map((note) => ({ - title: note.data.title, - pubDate: note.data.publishDate, - link: `notes/${note.id}/`, - })), - }); -}; |
