summaryrefslogtreecommitdiff
path: root/website/src/pages/blog/rss.xml.ts
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-01-28 18:06:53 +0000
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-01-28 18:06:53 +0000
commited52216fb8df3c5c6ed1561ed59699a67a950187 (patch)
tree643debcd204e511e0842a68f6946a97a26f51814 /website/src/pages/blog/rss.xml.ts
parent17aa658fb8b86a5caf3d3608f7871e43d09be55a (diff)
parentc9f6c53a0d9617e3d3a6862b3998322c2a1470c8 (diff)
Merge branch 'main' of https://github.com/joeacarstairs/personal-website
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',