Add experiences demo
This commit is contained in:
@@ -2,10 +2,17 @@
|
||||
import {getCollection} from 'astro:content';
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
|
||||
const experiences = await getCollection('experiences');
|
||||
const projects = await getCollection('projects');
|
||||
const hobbies = await getCollection('hobbies');
|
||||
---
|
||||
<BaseLayout>
|
||||
<h1>My Experiences</h1>
|
||||
<ul>
|
||||
{experiences.map(experience => (
|
||||
<li><a href={`/experience/${experience.id}`}>{experience.id}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
<h1>My Projects</h1>
|
||||
<ul>
|
||||
{projects.map(project => (
|
||||
|
||||
Reference in New Issue
Block a user