firq-dev-website/src/content/config.ts

17 lines
350 B
TypeScript
Raw Normal View History

2024-07-19 22:52:15 +02:00
import { z, defineCollection } from 'astro:content'
const blogCollection = defineCollection({
type: 'content', // v2.5.0 and later
schema: z.object({
title: z.string(),
tags: z.array(z.string()),
pubDate: z.date(),
description: z.string(),
author: z.string(),
}),
})
export const collections = {
blog: blogCollection,
}