From 4171c2204fb43f5d7483b8e42432519b69bdef1f Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 12 Jan 2026 20:26:13 +0100 Subject: Add author to rss --- src/pages/micro/rss.xml.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pages') diff --git a/src/pages/micro/rss.xml.ts b/src/pages/micro/rss.xml.ts index 5b388b6..37d7d39 100644 --- a/src/pages/micro/rss.xml.ts +++ b/src/pages/micro/rss.xml.ts @@ -28,12 +28,20 @@ export const GET = async (context: APIContext) => { fullContent += imagesHtml; } + // Build author customData for RSS + let authorCustomData = ""; + if (post.data.author) { + const authorName = post.data.author.displayName || post.data.author.username; + authorCustomData = `${authorName}${authorName}`; + } + return { title: post.data.title, pubDate: post.data.publishDate, link: `micro/${post.id}/`, description: post.data.description, content: fullContent, + customData: authorCustomData, }; }); -- cgit v1.2.3