add static pages

This commit is contained in:
2025-04-17 09:33:09 -03:00
parent e5ded40845
commit 04bf71a297
6 changed files with 301 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import { defineCollection, z } from 'astro:content'
import { glob } from 'astro/loaders'
const courses = defineCollection({
loader: glob({ pattern: '**/*.md', base: './src/data/courses' }),
schema: z.object({
id: z.string(),
title: z.string(),
slug: z.string(),
}),
})
export const collections = { courses }