Improved tagging
This commit is contained in:
@@ -1,23 +1,27 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import {getCollection} from 'astro:content';
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
|
||||
const projects = await getCollection('projects');
|
||||
const hobbies = await getCollection('hobbies');
|
||||
---
|
||||
<h1>My Projects</h1>
|
||||
<ul>
|
||||
{projects.map(project => (
|
||||
<li><a href={`/project/${project.id}`}>{project.id}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
<BaseLayout>
|
||||
<h1>My Projects</h1>
|
||||
<ul>
|
||||
{projects.map(project => (
|
||||
<li><a href={`/project/${project.id}`}>{project.id}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<h1>My Hobbies</h1>
|
||||
<ul>
|
||||
{hobbies.map(project => (
|
||||
<li><a href={`/hobby/${project.id}`}>{project.id}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
</BaseLayout>
|
||||
|
||||
<h1>My Hobbies</h1>
|
||||
<ul>
|
||||
{hobbies.map(project => (
|
||||
<li><a href={`/hobby/${project.id}`}>{project.id}</a></li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<!--import BaseLayout from "../layouts/BaseLayout.astro";-->
|
||||
<!--import { getCollection, render } from 'astro:content';-->
|
||||
<!--import type { CollectionEntry } from 'astro:content';-->
|
||||
|
||||
@@ -46,4 +50,3 @@ const hobbies = await getCollection('hobbies');
|
||||
<!--<!– <div class="prose">–>-->
|
||||
<!--<!– <!–<Content />–>–>-->
|
||||
<!--<!– </div>–>-->
|
||||
<!--</BaseLayout>-->
|
||||
Reference in New Issue
Block a user