adding image collection object

This commit is contained in:
2026-07-28 22:44:35 +12:00
parent f0f2f3f3b5
commit 3d086dedf5

View File

@@ -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,
};