diff options
Diffstat (limited to 'examples/blog/src/pages/rss.xml.js')
-rw-r--r-- | examples/blog/src/pages/rss.xml.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/blog/src/pages/rss.xml.js b/examples/blog/src/pages/rss.xml.js new file mode 100644 index 000000000..9fd153480 --- /dev/null +++ b/examples/blog/src/pages/rss.xml.js @@ -0,0 +1,9 @@ +import rss from '@astrojs/rss'; +import {SITE_TITLE, SITE_DESCRIPTION} from '../config'; + +export const get = () => rss({ + title: SITE_TITLE, + description: SITE_DESCRIPTION, + site: import.meta.env.SITE, + items: import.meta.glob('./blog/**/*.md'), + });
\ No newline at end of file |