From 03a70c675e39a41ba2b0252dba44274daf54871f Mon Sep 17 00:00:00 2001 From: HPCesia Date: Wed, 2 Apr 2025 15:16:05 +0800 Subject: [PATCH] feat: remove stylesheet of RSS feed A third-party stylesheet should not be a part of template. --- public/rss/pretty-feed-v3.xsl | 141 ---------------------------------- src/pages/rss.xml.ts | 1 - 2 files changed, 142 deletions(-) delete mode 100644 public/rss/pretty-feed-v3.xsl diff --git a/public/rss/pretty-feed-v3.xsl b/public/rss/pretty-feed-v3.xsl deleted file mode 100644 index dfdb0fe..0000000 --- a/public/rss/pretty-feed-v3.xsl +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - <xsl:value-of select="/rss/channel/title"/> Web Feed - - - - - - -
-
-

- - - - - - - - - - - - - - - - - - - Web Feed Preview -

-

-

- - - - - Visit Website → - -
-

Recent Items

- -
-

- - - - - - -

- - Published: - -
-
-
- - -
-
\ No newline at end of file diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index dd9c657..32d4df8 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -13,7 +13,6 @@ export const GET: APIRoute = async function (context) { title: siteConfig.title, description: siteConfig.subtitle, site: context.site || '', - stylesheet: '/rss/pretty-feed-v3.xsl', items: posts.map((post) => ({ title: post.data.title, pubDate: post.data.published,