Website/src/content/config.ts
2023-10-01 10:04:04 +02:00

15 Zeilen
304 B
TypeScript

// @ts-ignore
import { defineCollection, z } from 'astro:content';
export const pages = defineCollection({
type: "content",
schema: z.object({
title: z.string().min(1).max(80),
description: z.string().min(1).max(120),
})
})
export const collections = {
'pages': pages
}