mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 02:31:31 +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
|
||||
|
@ -23,6 +23,12 @@ export const siteConfig: SiteConfig = {
|
||||
title: "声控烤箱 | KazooTTT 博客",
|
||||
// ! Please remember to replace the following site property with your own domain, used in astro.config.ts
|
||||
url: "https://blog.kazoottt.top/",
|
||||
rssConfig: {
|
||||
noteTitle: "碎碎念 - 声控烤箱 | KazooTTT",
|
||||
noteDescription: "分享一些比较碎片化的内容。",
|
||||
blogTitle: "博客 - 声控烤箱 | KazooTTT",
|
||||
blogDescription: "分享一些技术笔记、个人随笔、生活日常等比较长篇的内容。",
|
||||
},
|
||||
};
|
||||
|
||||
// Used to generate links in both the Header & Footer.
|
||||
|
@ -9,6 +9,12 @@ export interface SiteConfig {
|
||||
ogLocale: string;
|
||||
title: string;
|
||||
url: string;
|
||||
rssConfig: {
|
||||
noteTitle: string;
|
||||
noteDescription: string;
|
||||
blogTitle: string;
|
||||
blogDescription: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PaginationLink {
|
||||
|
Reference in New Issue
Block a user