import rss from "@astrojs/rss"; import { getCollection } from "astro:content"; export async function get() { const posts = await getCollection("posts"); return rss({ title: "Jens Rømer Hesselbjerg | Blog", description: "My personal blog", site: "https://jhroemer.github.io/", items: posts.map((post) => ({ title: post.data.title, pubDate: post.data.pubDate, link: `/posts/${post.id}/`, })), customData: `en-us`, }); }