ADD: NuxtContent
For RichText and blog later
This commit is contained in:
parent
9930b39578
commit
73f09ad76e
8 changed files with 3230 additions and 428 deletions
23
content.config.ts
Normal file
23
content.config.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
blog: defineCollection({
|
||||
type: 'page',
|
||||
source: 'blog/**/*.md'
|
||||
}),
|
||||
|
||||
skills: defineCollection({
|
||||
type: 'page',
|
||||
source: 'snippets/skills/*.md',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
img: z.object({
|
||||
path: z.string(),
|
||||
name: z.string(),
|
||||
position: z.string(),
|
||||
}),
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue