Skip to content

Commit 4d689aa

Browse files
committed
Fix the build
1 parent 6fb3ab9 commit 4d689aa

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/pages/rss.xml.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
import rss, { pagesGlobToRssItems } from '@astrojs/rss';
2-
3-
export async function GET(context) {
4-
return rss({
5-
// `<title>` field in output xml
6-
title: 'PyLadiesCon News and Announcements',
7-
// `<description>` field in output xml
8-
description: 'News and announcements from PyLadiesCon, a Global PyLadies Conference.',
9-
// Pull in your project "site" from the endpoint context
10-
// https://docs.astro.build/en/reference/api-reference/#site
11-
site: context.site,
12-
// Array of `<item>`s in output xml
13-
// See "Generating items" section for examples using content collections and glob imports
14-
items: await pagesGlobToRssItems(
15-
import.meta.glob('../posts/*.{md,mdx}'),
16-
),
17-
// (optional) inject custom xml
18-
customData: `<language>en-us</language>`,
19-
});
20-
}
21-
221
import rss from '@astrojs/rss';
232
import { getCollection } from 'astro:content';
243

0 commit comments

Comments
 (0)