mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-24 11:11:29 +08:00
feat: update rss config
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user