From 30ab3d2ba36bb677564de63e0ce1681802f5ea0b Mon Sep 17 00:00:00 2001 From: Graham Hall Date: Fri, 12 Apr 2024 22:09:13 -0400 Subject: [PATCH] =?UTF-8?q?possible=20fix=20for=20rss=20=F0=9F=A4=B7?= =?UTF-8?q?=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 3 ++- src/pages/posts/[...slug].astro | 2 -- src/pages/rss.xml.js | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 04a4d68..7be3c38 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -7,7 +7,8 @@ import mdx from '@astrojs/mdx'; // https://astro.build/config export default defineConfig({ - output: 'server', + site: 'https://ghall.blog', + output: 'hybrid', adapter: netlify(), integrations: [ mdx(), diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index c5baaad..bd76953 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -18,8 +18,6 @@ const { post } = Astro.props; const { data } = post; -console.log(post); - const { Content } = await post.render(); --- diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 8835859..e860926 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -10,7 +10,8 @@ export async function get(context) { title: 'ghall.blog', description: 'My personal blog about life, gaming, tech, and whatever else I feel like writing about.', - site: 'https://ghall.blog', + site: context.site, + trailingSlash: false, items: blog .sort((a, b) => Date.parse(b.data.pubDate) - Date.parse(a.data.pubDate)) .map((post) => ({