mirror of
https://github.com/saicaca/fuwari.git
synced 2025-03-14 07:34:44 +08:00
15 lines
412 B
TypeScript
15 lines
412 B
TypeScript
import { z, defineCollection } from "astro:content";
|
|
|
|
const blogCollection = defineCollection({
|
|
schema: z.object({
|
|
title: z.string(),
|
|
published: z.date(),
|
|
description: z.string().optional(),
|
|
image: z.string().optional(),
|
|
tags: z.array(z.string()).optional(),
|
|
category: z.string().optional(),
|
|
})
|
|
})
|
|
export const collections = {
|
|
'blog': blogCollection,
|
|
} |