16 lines
351 B
TypeScript
16 lines
351 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
const blog = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
date: z.date(),
|
|
description: z.string(),
|
|
image: z.string(),
|
|
draft: z.boolean().default(false),
|
|
tags: z.array(z.string()).default([]),
|
|
}),
|
|
});
|
|
|
|
export const collections = { blog };
|