Files
caperren-com/src/content/config.ts
Corwin Perren 5d56e7eeed
Some checks failed
Build and Test / determine_version (push) Successful in 6s
Build and Test / test (push) Successful in 1s
Build and Test / build_and_push (push) Has been cancelled
Add experience pages
2025-03-23 23:31:05 -07:00

20 lines
651 B
TypeScript

// 1. Import utilities from `astro:content`
import { defineCollection } from 'astro:content';
// 2. Import loader(s)
import { glob } from 'astro/loaders';
// 3. Define your collection(s)
const experiences = defineCollection({
loader: glob({ pattern: "*.md", base: "src/content/experience" })
})
const projects = defineCollection({
loader: glob({ pattern: "*.md", base: "src/content/projects" })
})
const hobbies = defineCollection({
loader: glob({ pattern: "*.md", base: "src/content/hobbies" })
})
// 4. Export a single `collections` object to register your collection(s)
export const collections = { experiences, projects, hobbies };