Skip to content
Snippets Groups Projects

Draft: Implement @nuxt/content v3

Open Nathan Dubord requested to merge content-v3 into main
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
+ 12
0
@@ -30,6 +30,18 @@ export default defineContentConfig({
@@ -30,6 +30,18 @@ export default defineContentConfig({
include: '**/blog/authors/*.yml',
include: '**/blog/authors/*.yml',
prefix: '/',
prefix: '/',
},
},
 
schema: z.object({
 
content: z.object({
 
name: z.string(),
 
config: z.object({
 
headshot: z.string().optional(),
 
ctfId: z.string()
 
})
 
}),
 
config: z.object({
 
template: z.string()
 
})
 
})
}),
}),
// Blog Categories
// Blog Categories
Loading