Files
folio/content.config.ts
T

19 lines
487 B
TypeScript
Raw Normal View History

import { defineContentConfig, defineCollection, z } from '@nuxt/content';
2026-04-29 23:06:11 -05:00
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(),
}),
2026-04-29 23:06:11 -05:00
}),
},
});