File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 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
-
22
1
import rss from '@astrojs/rss' ;
23
2
import { getCollection } from 'astro:content' ;
24
3
You can’t perform that action at this time.
0 commit comments