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

const blog = defineCollection({
	type: 'content',
	schema: z.object({
		title: z.string(),
		hidden: z.optional(z.boolean()),
		description: z.string(),
		pubDate: z.date(),
		updatedDate: z.optional(z.date()),
	}),
});

export const collections = { blog };