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