mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
12 lines
287 B
TypeScript
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,
|
|
} |