summaryrefslogtreecommitdiff
path: root/examples/blog/src/pages/rss.xml.js
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-08-15 00:26:33 -0400
committerGravatar GitHub <noreply@github.com> 2022-08-15 00:26:33 -0400
commit0e2f4d74b77cc05b161afe69a8713935fe41591f (patch)
tree7ec5e614c1db4b7c577cd995e74d0d550e3b622e /examples/blog/src/pages/rss.xml.js
parent16edf0c7730d273771f75f959c9f8015a4f69238 (diff)
downloadastro-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.js9
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