aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
blob: 694e87df1c0018007f2e402186e69006038d06b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { defineCollection, z } from "astro:content";
import { rssSchema } from '@astrojs/rss';

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

export const collections = {
    blog: blogCollection,
};