99a943eb36
pipeline / build-and-push-images (push) Successful in 3m12s
NuxtJS, Vue, real web app Nuxt content: blog Better mobile/responsive design and practices Better practices overall
16 lines
333 B
TypeScript
16 lines
333 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({
|
|
date: z.string(),
|
|
tags: z.array(z.string())
|
|
})
|
|
})
|
|
}
|
|
})
|