import { defineCollection, z } from 'astro:content';
import { glob } from 'astro/loaders';

const landing = defineCollection({
  loader: glob({ base: './src/content/landing', pattern: '**/*.md' }),
  schema: z.object({
    title: z.string(),
    order: z.number(),
    section: z.enum(['hero', 'about', 'architecture', 'install-cta']),
  }),
});

export const collections = { landing };
