import { defineCollection, z } from 'astro:content'; const postsCollection = defineCollection({ type: 'content', schema: z.object({ title: z.string(), date: z.date(), summary: z.string(), tags: z.array(z.string()).optional(), cover: z.string().optional(), author: z.string().optional(), }), }); export const collections = { posts: postsCollection, };