From 99ace0c61c88e433ebcfb76dd46a5f61a5bcca89 Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Fri, 29 Nov 2024 00:07:17 +0800 Subject: [PATCH] fix: error rss --- src/pages/rss.xml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index df140c4..731462f 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -32,7 +32,7 @@ export async function GET(context: APIContext) { 62156866798228480 `, items: sortedPosts.map((post) => { - const prefix = post.frontmatter.category?.startsWith('日记-20') ? '/dairy/' : '/blog/' + const prefix = post.frontmatter.category?.startsWith('日记-20') ? '/diary/' : '/blog/' return { title: post.frontmatter.title?.replace(/[\x00-\x1F\x7F-\x9F]/g, '') ?? '', pubDate: new Date(post.frontmatter.date),