summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-25 18:30:21 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-25 18:30:21 +0100
commitd199c4ef410751619d42da98ccf782f20c4d2eec (patch)
tree90ae61350f627a1c2cb3479f0f18f535eaad06b0 /src
parenta1c465e86bca672df8af4c3fba88ebf5f1a3ec56 (diff)
Adds atom:link to RSS feed
Diffstat (limited to 'src')
-rw-r--r--src/pages/[locale]/rss.xml.ts6
1 files changed, 5 insertions, 1 deletions
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: `<language>${locale}</language>`,
+ customData: `
+ <language>${locale}</language>
+ <atom:link href="${site}${locale}/rss.xml" rel="self" type="application/rss+xml" />
+ `,
});
}