fuwari/src/content/config.ts
saicaca 124843848f feat: initial commit
(cherry picked from commit 44c4d7b9521fe449e61edc614446195861932f8c)
2023-10-18 02:15:21 +08:00

12 lines
287 B
TypeScript

import { z, defineCollection } from "astro:content";
const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
tags: z.array(z.string()),
cover: z.string().optional(),
})
})
export const collections = {
'blog': blogCollection,
}