rafa-links/src/content/config.ts

16 lines
364 B
TypeScript
Raw Normal View History

2023-02-23 04:35:07 +00:00
import { z, defineCollection } from "astro:content";
const blogCollection = defineCollection({
schema: z.object({
layout: z.enum(['../../layouts/main.astro']).optional(),
date: z.date(),
title: z.string(),
description: z.string(),
exerpt: z.string(),
image: z.string()
}),
});
export const collections = {
'blog': blogCollection,
};