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
+1 -1
View File
@@ -30,7 +30,7 @@ const posts = (await getCollection('blog', ({ data }) => {
<div class="container">
<div class="posts-grid">
{posts.map((post) => (
<a href={`/blog/${post.slug}`} class="post-card">
<a href={`/blog/${post.id}`} class="post-card">
{post.data.heroImage && (
<div class="post-image">
<img src={post.data.heroImage} alt="" />
+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}>
+2
View File
@@ -59,6 +59,8 @@ import BaseLayout from '../layouts/BaseLayout.astro';
<li><strong>Setup Flow.</strong> Removed the blocking setup dialog that prevented users from exploring the app.</li>
<li><strong>Messaging.</strong> Clarified the messaging around Local vs Cloud usage.</li>
<li><strong>UX &amp; Copy.</strong> Various UX and copy improvements throughout the app.</li>
<li><strong>Zaguán Coder Daemon.</strong> Fixed a bug where we didn't catch the reasoning chunks correctly for the GLM-5 model.</li>
<li><strong>Zaguán Coder Daemon.</strong> Fixed a bug where the final response from MiniMax M2.5 and M2.7 was placed above the tool calls when it should be the last message in the conversation.</li>
</ul>
</div>
</div>
+1 -1
View File
@@ -15,7 +15,7 @@ export async function GET(context: APIContext) {
title: post.data.title,
pubDate: post.data.pubDate,
description: post.data.description,
link: `/blog/${post.slug}/`,
link: `/blog/${post.id}/`,
})),
customData: `<language>en-us</language>`,
});