chore(astro): upgrade to Astro 6 and move content config

Add @astrojs/rss and update blog, changelog, and RSS pages
to use the new content collections configuration path
This commit is contained in:
2026-03-18 16:06:45 +01:00
parent 80c1964f4c
commit 8fd0450b0a
7 changed files with 83 additions and 172 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
---
import { getCollection } from 'astro:content';
import { getCollection, render } from 'astro:content';
import BlogPost from '../../layouts/BlogPost.astro';
export async function getStaticPaths() {
const posts = await getCollection('blog');
return posts.map((post) => ({
params: { slug: post.slug },
params: { slug: post.id },
props: post,
}));
}
const post = Astro.props;
const { Content } = await post.render();
const { Content } = await render(post);
---
<BlogPost post={post}>