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

export const collections = {
  blogs: defineCollection({
    type: "content",
    schema: z.object({
      title: z.string(),
      description: z.string().optional(),
      date: z.date(),
    }),
  }),
};