feat: rename folders

This commit is contained in:
Mauricio Siu
2024-06-30 20:31:53 -06:00
parent e494f3a3aa
commit 90f5981b60
195 changed files with 20 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
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}/`,
})),
});
}