blob: 3886d491162b0e4d1b2e32527171c58e9dc24aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { defineCollection, z } from 'astro:content';
const blog = defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
publishDate: z.coerce.date(),
author: z.string(),
}),
});
export const collections = {
blog,
};
|