initiation librodrome
This commit is contained in:
24
content.config.ts
Normal file
24
content.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
book: defineCollection({
|
||||
type: 'page',
|
||||
source: 'book/**/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
order: z.number(),
|
||||
readingTime: z.string().optional(),
|
||||
}),
|
||||
}),
|
||||
pages: defineCollection({
|
||||
type: 'page',
|
||||
source: 'pages/**/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user