Add experience pages
This commit is contained in:
@@ -5,6 +5,10 @@ import { defineCollection } from 'astro:content';
|
||||
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" })
|
||||
})
|
||||
@@ -13,4 +17,4 @@ const hobbies = defineCollection({
|
||||
})
|
||||
|
||||
// 4. Export a single `collections` object to register your collection(s)
|
||||
export const collections = { projects, hobbies };
|
||||
export const collections = { experiences, projects, hobbies };
|
||||
Reference in New Issue
Block a user