aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
blob: d0d1d7086c331d5c3cb4b4530bc5d7f90deb9f99 (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
};