feat: update rss config

This commit is contained in:
KazooTTT
2025-02-24 14:19:48 +08:00
parent c037d61e49
commit e2e98f9cc7
4 changed files with 25 additions and 7 deletions

View File

@ -15,13 +15,16 @@ export const GET = async () => {
<feedId>116728239358236672</feedId>
<userId>62156866798228480</userId>
</follow_challenge>`,
title: siteConfig.title,
description: siteConfig.description,
title: siteConfig.rssConfig.noteTitle,
description: siteConfig.rssConfig.noteDescription,
site: import.meta.env.SITE,
items: sortedNotes.map((post) => {
const tagStr = post.data.tags.reduce((acc, tag) => {
return `${acc}#${tag} `;
}, "");
return {
title: post.data.title,
description: post.data.description ?? "",
description: (post.data.description ?? "") + "\t" + tagStr,
pubDate: post.data.date,
link: `notes/${post.id}/`,
content: post.body

View File

@ -15,13 +15,16 @@ export const GET = async () => {
<feedId>75113012474671104</feedId>
<userId>62156866798228480</userId>
</follow_challenge>`,
title: siteConfig.title,
description: siteConfig.description,
title: siteConfig.rssConfig.blogTitle,
description: siteConfig.rssConfig.blogDescription,
site: import.meta.env.SITE,
items: sortedPosts.map((post) => {
const tagStr = post.data.tags.reduce((acc, tag) => {
return `${acc}#${tag} `;
}, "");
return {
title: post.data.title,
description: post.data.description ?? "",
title: post.data.category ? `[${post.data.category}] ${post.data.title}` : post.data.title,
description: (post.data.description ?? "") + "\t" + tagStr,
pubDate: post.data.date,
link: `posts/${post.id}/`,
content: post.body