mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
25 lines
565 B
TypeScript
25 lines
565 B
TypeScript
import { defineCollection, z } from '@nuxt/content'
|
|
|
|
export const collections = {
|
|
content: defineCollection({
|
|
type: 'page',
|
|
source: '**/*',
|
|
schema: z.object({
|
|
navigation: z.object({
|
|
title: z.string().optional(),
|
|
framework: z.string().optional()
|
|
}),
|
|
links: z.array(z.object({
|
|
label: z.string(),
|
|
icon: z.string(),
|
|
avatar: z.object({
|
|
src: z.string(),
|
|
alt: z.string()
|
|
}).optional(),
|
|
to: z.string(),
|
|
target: z.string().optional()
|
|
}))
|
|
})
|
|
})
|
|
}
|