mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
35 lines
1022 B
TypeScript
35 lines
1022 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.string(),
|
|
description: z.string(),
|
|
hidden: z.boolean().optional(),
|
|
}),
|
|
}),
|
|
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(),
|
|
date: z.string().optional(),
|
|
image: z.string().optional(),
|
|
}),
|
|
}),
|
|
},
|
|
});
|