All checks were successful
Build and Deploy Nuxt / build (push) Successful in 41s
37 lines
741 B
TypeScript
37 lines
741 B
TypeScript
import { defineContentConfig, defineCollection } from '@nuxt/content'
|
|
import { z } from 'zod'
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
blog: defineCollection({
|
|
type: 'page',
|
|
source: 'blog/**/**.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
slug: z.string(),
|
|
date: z.string(),
|
|
description: z.string()
|
|
})
|
|
}),
|
|
|
|
fixed: defineCollection({
|
|
type: 'page',
|
|
source: 'fixed/**/**.md'
|
|
}),
|
|
|
|
art: defineCollection({
|
|
type: 'page',
|
|
source: 'art/**/**.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
slug: z.string(),
|
|
thumb: z.string(),
|
|
date: z.string()
|
|
})
|
|
}),
|
|
},
|
|
markdown: {
|
|
tags: {
|
|
}
|
|
}
|
|
}) |