summaryrefslogtreecommitdiff
path: root/examples/blog
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog')
-rw-r--r--examples/blog/astro/pages/$posts.astro13
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/blog/astro/pages/$posts.astro b/examples/blog/astro/pages/$posts.astro
index da688c041..ebb20705d 100644
--- a/examples/blog/astro/pages/$posts.astro
+++ b/examples/blog/astro/pages/$posts.astro
@@ -18,7 +18,18 @@ export async function createCollection() {
allPosts.sort((a, b) => new Date(b.date) - new Date(a.date));
return allPosts;
},
- pageSize: 3
+ pageSize: 3,
+ rss: {
+ title: 'Muppet Blog',
+ description: 'An example blog on Astro',
+ customData: `<language>en-us</language>`,
+ item: (item) => ({
+ title: item.title,
+ description: item.description,
+ link: item.url,
+ pubDate: item.date,
+ }),
+ }
};
}
---