mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
20 lines
533 B
TypeScript
20 lines
533 B
TypeScript
import { defineContentConfig, defineCollection, z } from '@nuxt/content';
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
writing: defineCollection({
|
|
type: 'page',
|
|
source: {
|
|
include: 'writing/**/*.md',
|
|
prefix: '',
|
|
},
|
|
schema: z.object({
|
|
title: z.string(),
|
|
date: z.coerce.date(),
|
|
description: z.string(),
|
|
demo: z.boolean().optional(),
|
|
}),
|
|
}),
|
|
},
|
|
});
|