summaryrefslogtreecommitdiff
path: root/website/src/pages/blog/rss.xml.ts
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-12-24 09:26:32 +0000
committerJoe Carstairs <me@joeac.net>2024-12-24 09:26:32 +0000
commit532f75bea033e8073c4c1bc1dff72fa6af7d5316 (patch)
treeb39d4419a9b23fc210399c6277628b1a2d4f5dee /website/src/pages/blog/rss.xml.ts
parentb080e5631416451e548ff4de943e1b6a196225ee (diff)
Upgrades to Astro 5
Diffstat (limited to 'website/src/pages/blog/rss.xml.ts')
-rw-r--r--website/src/pages/blog/rss.xml.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/website/src/pages/blog/rss.xml.ts b/website/src/pages/blog/rss.xml.ts
index afd0640..5b90fd0 100644
--- a/website/src/pages/blog/rss.xml.ts
+++ b/website/src/pages/blog/rss.xml.ts
@@ -23,9 +23,9 @@ export async function GET(context: APIContext) {
site: path.join(site.toString(), 'blog'),
trailingSlash: false,
items: posts.map((post) => ({
- link: `/blog/${post.slug}`,
+ link: `/blog/${post.id}`,
title: post.data.title,
- content: mdParser.render(post.body),
+ content: mdParser.render(post.body ?? ''),
pubDate: post.data.pubDate,
description: post.data.description,
author: 'Joe Carstairs',