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),