1
0
mirror of https://github.com/saicaca/fuwari.git synced 2025-03-14 23:54:43 +08:00

17 lines
429 B
TypeScript
Raw Normal View History

import { z, defineCollection } from "astro:content";
const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
2023-10-18 21:24:51 +08:00
published: z.date(),
description: z.string().optional(),
cover: z.object({
url: z.string(),
alt: z.string(),
}),
tags: z.array(z.string()).optional(),
})
})
export const collections = {
'blog': blogCollection,
}