aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/content/config.ts
blob: 8d68c0ec3e85bad197664d9b5897ab31b3ce5421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { defineCollection, z } from 'astro:content';

const blog = defineCollection({
	schema: z.object({
		title: z.string(),
		description: z.string(),
		pubDate: z.coerce.date(),
		updatedDate: z.coerce.date().optional(),
		heroImage: z.string().optional(),
	}),
});

export const collections = { blog };