this repo has no description
1import { z, defineCollection } from "astro:content";
2
3const blog_collection = defineCollection({
4 schema: z.object({
5 title: z.string(),
6 description: z.string(),
7 date: z.string(),
8 draft: z.boolean(),
9 link: z.string().optional()
10 })
11});
12
13const about_collection = defineCollection({
14 schema: z.object({
15 updated_at: z.string(),
16 draft: z.boolean()
17 })
18});
19
20export const collections = {
21 blog: blog_collection,
22 about: about_collection
23}