Upgraded to Astro 5.2.5 and fixed content collections

This commit is contained in:
Firq 2025-02-06 19:08:51 +01:00
commit eec488ddff
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
28 changed files with 290 additions and 198 deletions
src/content

View file

@ -1,16 +0,0 @@
import { z, defineCollection } from 'astro:content'
const blogCollection = defineCollection({
type: 'content', // v2.5.0 and later
schema: z.object({
title: z.string(),
tags: z.array(z.string()),
pubDate: z.date(),
description: z.string(),
author: z.string(),
}),
})
export const collections = {
blog: blogCollection,
}