1 import { defineCollection, z } from 'astro:content'
2
3 const posts = defineCollection({
4 type: 'content',
5 schema: z.object({
6 title: z.string(),
7 pubDate: z.date()
8 })
9 })
10
11 export const collections = {
12 posts
13 }