chore: add all projects content
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
import { defineContentConfig, defineCollection } from '@nuxt/content'
|
||||
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
content: defineCollection({
|
||||
type: 'page',
|
||||
source: '**/*.md'
|
||||
source: '*.md',
|
||||
schema: z.object({
|
||||
|
||||
})
|
||||
}),
|
||||
projects: defineCollection({
|
||||
type: 'page',
|
||||
source: 'projects/*.md',
|
||||
schema: z.object({
|
||||
order: z.number(),
|
||||
title: z.string(),
|
||||
shortDescription: z.string(),
|
||||
description: z.string(),
|
||||
image: z.string(),
|
||||
preview: z.string(),
|
||||
isDraft: z.boolean()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user