adding image collection object
This commit is contained in:
@@ -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,
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user