Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import { defineCollection, z } from "astro:content";
const blog = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
date: z.coerce.date(),
description: z.string().optional().default(""),
tags: z.array(z.string()).optional().default([]),
headerImage: z.string().optional().default(""),
templateKey: z.string().optional(),
useAi: z.boolean().optional().default(false),
}),
});
export const collections = { blog };
|