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

const news = defineCollection({
  type: 'content',
  schema: z.object({
    title: z.string(),
    summary: z.string(),
  }),
});

export const collections = {
  news: news,
};