refactor: convert Picture component to use AstroImageTools

This commit is contained in:
Stefan Imhoff
2023-05-18 16:06:38 +02:00
parent 5f66147900
commit 53fffc4f74
4 changed files with 9 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ const projectCollection = defineCollection({
src: z.string(),
height: z.number().optional(),
width: z.number().optional(),
aspectRatio: z.union([z.number(), z.string().regex(/^\d+:\d+$/)]),
aspectRatio: z.number().optional(),
})
.optional(),
sort: z.number().optional(),