aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
blob: 8dd2162ef34ea13d7fba935294926dae3fce1c5e (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(),
        pubDate: z.date(),
        tags: z.array(z.string()),
    }),
});

export const collections = {
    blog: blogCollection,
};