16 lines
322 B
TypeScript
16 lines
322 B
TypeScript
// Path: 00-Lesson-Site/src/content/lessons/config.ts
|
|
|
|
import { defineCollection, z } from "astro:content";
|
|
|
|
const lessonsCollection = defineCollection({
|
|
type: "content",
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string().optional(),
|
|
}),
|
|
});
|
|
|
|
export const collections = {
|
|
lessons: lessonsCollection,
|
|
};
|