diff --git a/src/content.config.ts b/src/content.config.ts index 1f06368..f4f3995 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -17,4 +17,18 @@ const blog = defineCollection({ }), }); -export const collections = { blog }; +const album = defineCollection({ + loader : glob({base : './src/content/pictures/', pattern : '**/*.yaml'}), + schema: ({image}) => + z.object({ + title : z.string(), + description : z.string(), + cover : image() + }), +}); + + +export const collections = { + blog, + album, +};