diff options
author | 2022-08-15 00:26:33 -0400 | |
---|---|---|
committer | 2022-08-15 00:26:33 -0400 | |
commit | 0e2f4d74b77cc05b161afe69a8713935fe41591f (patch) | |
tree | 7ec5e614c1db4b7c577cd995e74d0d550e3b622e /examples/blog/src/pages/rss.xml.js | |
parent | 16edf0c7730d273771f75f959c9f8015a4f69238 (diff) | |
download | astro-0e2f4d74b77cc05b161afe69a8713935fe41591f.tar.gz astro-0e2f4d74b77cc05b161afe69a8713935fe41591f.tar.zst astro-0e2f4d74b77cc05b161afe69a8713935fe41591f.zip |
image fix (#4322)
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 |