2024-03-26 16:36:18 +01:00
|
|
|
import { defineCollection, z } from 'astro:content';
|
|
|
|
|
|
|
|
const blogCollection = defineCollection({
|
|
|
|
schema: z.object({
|
|
|
|
title: z.string(),
|
2024-03-27 01:51:42 +01:00
|
|
|
date: z.date(),
|
|
|
|
headerImg: z.string().optional()
|
2024-03-26 16:36:18 +01:00
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
export const collections = {
|
|
|
|
'blog': blogCollection
|
|
|
|
};
|