diff options
| author | Joe Carstairs <me@joeac.net> | 2024-12-24 09:26:32 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-12-24 09:26:32 +0000 |
| commit | 532f75bea033e8073c4c1bc1dff72fa6af7d5316 (patch) | |
| tree | b39d4419a9b23fc210399c6277628b1a2d4f5dee /website/src/pages/blog/rss.xml.ts | |
| parent | b080e5631416451e548ff4de943e1b6a196225ee (diff) | |
Upgrades to Astro 5
Diffstat (limited to 'website/src/pages/blog/rss.xml.ts')
| -rw-r--r-- | website/src/pages/blog/rss.xml.ts | 4 |
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', |
