2026-05-02 21:28:14 -05:00
|
|
|
import { defineContentConfig, defineCollection, z } from '@nuxt/content';
|
2026-04-29 23:06:11 -05:00
|
|
|
|
|
|
|
|
export default defineContentConfig({
|
|
|
|
|
collections: {
|
|
|
|
|
writing: defineCollection({
|
|
|
|
|
type: 'page',
|
2026-05-12 19:12:41 -05:00
|
|
|
source: {
|
|
|
|
|
include: 'writing/**/*.md',
|
|
|
|
|
prefix: '',
|
|
|
|
|
},
|
2026-05-02 21:28:14 -05:00
|
|
|
schema: z.object({
|
|
|
|
|
title: z.string(),
|
|
|
|
|
date: z.coerce.date(),
|
|
|
|
|
description: z.string(),
|
2026-08-23 09:25:52 -05:00
|
|
|
hidden: z.boolean().optional(),
|
2026-05-02 21:28:14 -05:00
|
|
|
}),
|
2026-04-29 23:06:11 -05:00
|
|
|
}),
|
2026-08-23 22:03:49 -05:00
|
|
|
projects: defineCollection({
|
|
|
|
|
type: 'page',
|
|
|
|
|
source: {
|
|
|
|
|
include: 'projects/**/*.md',
|
|
|
|
|
prefix: '',
|
|
|
|
|
},
|
|
|
|
|
schema: z.object({
|
|
|
|
|
title: z.string(),
|
|
|
|
|
description: z.string(),
|
|
|
|
|
href: z.string().optional(),
|
|
|
|
|
hidden: z.boolean().optional(),
|
2026-09-10 00:26:59 -05:00
|
|
|
date: z.coerce.date().optional(),
|
2026-08-23 22:03:49 -05:00
|
|
|
image: z.string().optional(),
|
|
|
|
|
}),
|
|
|
|
|
}),
|
2026-04-29 23:06:11 -05:00
|
|
|
},
|
|
|
|
|
});
|