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
+19
View File
@@ -0,0 +1,19 @@
import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';
const blog = defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }),
schema: z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
tags: z.array(z.string()).default([]),
categories: z.array(z.string()).default([]),
draft: z.boolean().default(false),
}),
});
export const collections = { blog };