aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
blob: 3467bdab03286b866ce77ef23a6c64e87020baca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { defineCollection, z } from "astro:content";

const blog = defineCollection({
	type: "content",
	schema: z.object({
		author: z.string(),
		description: z.string(),
		draft: z.optional(z.boolean()),
		pubDate: z.coerce.date(),
		title: z.string(),
		lang: z.string(),
	}),
});

export const collections = { blog };