1import { defineCollection, z } from 'astro:content';
2import { glob } from 'astro/loaders';
3
4const skills = defineCollection({
5 loader: glob({ pattern: '**/*.md', base: './site/content/skills' }),
6 schema: z.object({
7 tagline: z.string(),
8 }),
9});
10
11const tutorials = defineCollection({
12 loader: glob({ pattern: '**/*.md', base: './site/content/tutorials' }),
13 schema: z.object({
14 title: z.string(),
15 tagline: z.string(),
16 order: z.number(),
17 description: z.string(),
18 }),
19});
20
21export const collections = { skills, tutorials };