summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joshua Stübner <jshsj@hey.com> 2021-08-03 14:18:25 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-03 08:18:25 -0400
commit52ca7fafb0c4c1b81fc153c1c65edee6075d2fbd (patch)
treef62462dc246f6d06981ab08c01d19278a9991ce6
parent418bc1d91cb40d2cc050a4e5b519c12c8cc590c8 (diff)
downloadastro-52ca7fafb0c4c1b81fc153c1c65edee6075d2fbd.tar.gz
astro-52ca7fafb0c4c1b81fc153c1c65edee6075d2fbd.tar.zst
astro-52ca7fafb0c4c1b81fc153c1c65edee6075d2fbd.zip
Improve Collection docs for RSS (#990)
- Added missing but required link attribute - Added note on how to create a full text feed
-rw-r--r--docs/src/pages/core-concepts/collections.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/src/pages/core-concepts/collections.md b/docs/src/pages/core-concepts/collections.md
index edf4cf1fa..ef209e8a4 100644
--- a/docs/src/pages/core-concepts/collections.md
+++ b/docs/src/pages/core-concepts/collections.md
@@ -245,6 +245,7 @@ export async function createCollection() {
},
rss: {
title: 'My RSS Feed',
+ // if you want a full text feed, add your markup here (e.g. item.astro.html)
description: 'Description of the feed',
// (optional) add xmlns:* properties to root element
xmlns: {
@@ -260,7 +261,10 @@ export async function createCollection() {
description: item.description,
// enforce GMT timezone (otherwise it'll be different based on where it's built)
pubDate: item.pubDate + 'Z',
- // custom data is supported here as well
+ // link is required, shows up in RSS readers
+ link: '/collection/' + item.id
+ // (optional) custom data is supported here as well
+ customData: ``<id>${Astro.site}collection/${item.id}</id>``
}),
},
};