diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 9ff9801e0b30638b075887c8a2402f9c109362e5..128f83da4d837c075de7888eaf4cee9f71ddee71 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -1,16 +1,16 @@ -import rss from '@astrojs/rss'; -import { getCollection } from 'astro:content'; -import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; +// import rss from '@astrojs/rss'; +// import { getCollection } from 'astro:content'; +// import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; -export async function GET(context) { - const posts = await getCollection('blog'); - return rss({ - title: SITE_TITLE, - description: SITE_DESCRIPTION, - site: context.site, - items: posts.map((post) => ({ - ...post.data, - link: `/blog/${post.slug}/`, - })), - }); -} +// export async function GET(context) { +// const posts = await getCollection('blog'); +// return rss({ +// title: SITE_TITLE, +// description: SITE_DESCRIPTION, +// site: context.site, +// items: posts.map((post) => ({ +// ...post.data, +// link: `/blog/${post.slug}/`, +// })), +// }); +// }