11 lines
382 B
JavaScript
11 lines
382 B
JavaScript
import rss, { pagesGlobToRssItems } from '@astrojs/rss';
|
|
|
|
export async function GET(context) {
|
|
return rss({
|
|
title: 'ruds | blog',
|
|
description: 'The incoherent ramblings of an emo madman with a technological inclination.',
|
|
site: context.site,
|
|
items: await pagesGlobToRssItems(import.meta.glob('./posts/*.md')),
|
|
customData: `<language>en-us</language>`,
|
|
});
|
|
}
|