15 Zeilen
304 B
TypeScript
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
|
||
|
}
|