From d199c4ef410751619d42da98ccf782f20c4d2eec Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:30:21 +0100 Subject: Adds atom:link to RSS feed --- src/pages/[locale]/rss.xml.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pages/[locale]/rss.xml.ts b/src/pages/[locale]/rss.xml.ts index 61eeeae..17ad0b0 100644 --- a/src/pages/[locale]/rss.xml.ts +++ b/src/pages/[locale]/rss.xml.ts @@ -26,6 +26,7 @@ export async function get(context: APIContext) { return rss({ title: t(tFeed, { key: 'title' }), + xmlns: { atom: 'http://www.w3.org/2005/Atom' }, description: t(tFeed, { key: 'description' }), site, items: [ @@ -33,7 +34,10 @@ export async function get(context: APIContext) { ...lallans.map(lallansIssueToRssFeedItem(locale)), ...scotsoun.map(scotsounReleaseToRssFeedItem(locale)), ], - customData: `${locale}`, + customData: ` + ${locale} + + `, }); } -- cgit v1.2.3