add image

This commit is contained in:
2025-04-17 12:18:47 -03:00
parent fd149ea2e9
commit 49cbcbb7cf
12 changed files with 21 additions and 17 deletions

View File

@@ -3,10 +3,12 @@ import { glob } from 'astro/loaders'
const trainers = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/data/trainers' }),
schema: z.object({
name: z.string(),
bio: z.string(),
}),
schema: ({ image }) =>
z.object({
name: z.string(),
img: image(),
bio: z.string(),
}),
})
const courses = defineCollection({