Add blog config for astro

This commit is contained in:
Alexander Navarro 2023-11-11 18:48:24 -03:00
parent c1d863c335
commit 9d81cb4b87

View file

@ -22,6 +22,18 @@ const games = defineCollection({
}),
});
const blog = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
draft: z.boolean().optional(),
tags: z.array(z.string()).optional(),
published_at: z.coerce.date().optional(),
updated_at: z.coerce.date().optional(),
}),
});
export const collections = {
games,
blog,
};