Skip to content
Snippets Groups Projects
rss.xml.js 449 B
Newer Older
  • Learn to ignore specific revisions
  • Jannes Lücht's avatar
    Jannes Lücht committed
    // import rss from '@astrojs/rss';
    // import { getCollection } from 'astro:content';
    // import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
    
    Jannes Lücht's avatar
    Jannes Lücht committed
    // 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}/`,
    // 		})),
    // 	});
    // }