add static pages
This commit is contained in:
13
superpage/src/content.config.ts
Normal file
13
superpage/src/content.config.ts
Normal 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 }
|
||||
Reference in New Issue
Block a user