🔥 remove RSS from site

This commit is contained in:
Sindre Kjelsrud 2023-12-10 02:27:15 +01:00
parent 3bc95d71e1
commit 35e2312e06

View file

@ -1,18 +0,0 @@
import rss from '@astrojs/rss';
import { getCollection } from 'astro:content';
export async function GET(context) {
const blog = await getCollection('blog');
return rss({
title: 'Sindre Kjelsrud',
description: 'Recent content on Sindre Kjelsrud`s blog',
site: context.site,
items: blog.map((post) => ({
title: post.data.title,
pubDate: post.data.pubDate,
description: post.data.description,
customData: post.data.customData,
link: `/blog/${post.slug}/`,
})),
});
}