14 lines
250 B
TypeScript
14 lines
250 B
TypeScript
|
import { defineCollection, z } from 'astro:content';
|
||
|
|
||
|
const blogCollection = defineCollection({
|
||
|
schema: z.object({
|
||
|
title: z.string(),
|
||
|
author: z.string(),
|
||
|
date: z.date()
|
||
|
})
|
||
|
});
|
||
|
|
||
|
export const collections = {
|
||
|
'blog': blogCollection
|
||
|
};
|