mirror of
https://github.com/mmahdium/portfolio.git
synced 2025-12-20 09:23:54 +01:00
21 lines
528 B
TypeScript
21 lines
528 B
TypeScript
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
blog: defineCollection({
|
|
type: 'page',
|
|
source: '**/*.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
date: z.string(),
|
|
tags: z.array(z.string()),
|
|
image: z.string().optional(),
|
|
author: z.string().optional(),
|
|
draft: z.boolean().optional(),
|
|
updatedAt: z.string().optional()
|
|
})
|
|
})
|
|
}
|
|
})
|