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

const blogCollection = defineCollection({
	type: 'content',
	schema: z.object({
		title: z.string(),
		metaDescription: z.string(),
		publishedAt: z.date()
	})
});

export const collections = {
	'blog': blogCollection
};