Upgraded to Astro 5.2.5 and fixed content collections
This commit is contained in:
parent
298b91262e
commit
eec488ddff
28 changed files with 290 additions and 198 deletions
src/content
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue