diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index 368eb0e..58f0400 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -11,12 +11,11 @@ export async function get() { title: SITE.title, description: SITE.desc, site: SITE.website, - items: sortedPosts - .map(({ data }) => ({ - link: `posts/${slugify(data)}`, - title: data.title, - description: data.description, - pubDate: new Date(data.pubDatetime), - })), + items: sortedPosts.map(({ data }) => ({ + link: `posts/${slugify(data)}`, + title: data.title, + description: data.description, + pubDate: new Date(data.pubDatetime), + })), }); }