mirror of
https://github.com/saicaca/fuwari.git
synced 2025-02-07 22:10:06 +08:00
124843848f
(cherry picked from commit 44c4d7b9521fe449e61edc614446195861932f8c)
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,
|
|
} |