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

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

export const collections = { blog };