From df43ac617bce5aa1f1ee59c65083dec65127d4f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Moritz=20H=C3=B6lting?=
<87192362+moritz-hoelting@users.noreply.github.com>
Date: Wed, 18 Mar 2026 13:26:17 +0100
Subject: [PATCH] redesign: style rss feed
---
public/rss-style.xsl | 108 +++++++++++++++++++++++++++++++++++++++++++
src/pages/rss.xml.ts | 7 ++-
2 files changed, 113 insertions(+), 2 deletions(-)
create mode 100644 public/rss-style.xsl
diff --git a/public/rss-style.xsl b/public/rss-style.xsl
new file mode 100644
index 0000000..0b76021
--- /dev/null
+++ b/public/rss-style.xsl
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts
index cf4a8fb..933d206 100644
--- a/src/pages/rss.xml.ts
+++ b/src/pages/rss.xml.ts
@@ -27,14 +27,17 @@ export async function GET(context: Context) {
);
return rss({
- title: SITE.TITLE,
+ title: `${SITE.TITLE} - ${SITE.AUTHOR}`,
description: SITE.DESCRIPTION,
site: context.site,
+ stylesheet: "/rss-style.xsl",
items: items.map(({ item, pre }) => ({
title: item.data.title,
description: item.data.summary,
+ author: SITE.AUTHOR,
pubDate: item.data.date,
- link: `/${pre}/${item.id}/`,
+ link: `/${item.collection}/${item.id}/`,
+ customData: `${item.collection}`,
})),
});
}