diff --git a/astro.config.mjs b/astro.config.mjs index 479c93f..5c186e5 100755 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,5 +2,6 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ - server: { port: 8001 } + server: { port: 8001 }, + site: "https://limepot.xyz" }); diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js new file mode 100644 index 0000000..5606c32 --- /dev/null +++ b/src/pages/rss.xml.js @@ -0,0 +1,11 @@ +import rss, { pagesGlobToRssItems } from '@astrojs/rss'; + +export async function GET(context) { + return rss({ + title: 'LimePot - Blog', + description: 'Tis a blog maybe or something IG', + site: context.site, + items: await pagesGlobToRssItems(import.meta.glob('./**/*.md')), + customData: `en-us`, + }); +} \ No newline at end of file