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

const posts = defineCollection({
  type: 'content',
  schema: z.object({
    title: z.string(),
    date: z.string(),
    tags: z.array(z.string()),
  }),
});

export const collections = { posts };