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) => ({