Files
aranroig.com/frontend/content.config.ts
Aran Roig a6197137c0
Some checks failed
Build and Deploy Nuxt / build (push) Has been cancelled
Big commit
2026-04-13 01:27:19 +02:00

33 lines
704 B
TypeScript

import { defineContentConfig, defineCollection } from '@nuxt/content'
import { z } from 'zod'
export default defineContentConfig({
collections: {
blog: defineCollection({
type: 'page',
source: 'blog/**/**.md',
schema: z.object({
title: z.string(),
slug: z.string(),
date: z.string(),
description: z.string()
})
}),
fixed: defineCollection({
type: 'page',
source: 'fixed/**/**.md'
}),
art: defineCollection({
type: 'page',
source: 'art/**/**.md',
schema: z.object({
title: z.string(),
slug: z.string(),
thumb: z.string(),
date: z.string()
})
}),
}
})