Skip to content

Commit

Permalink
ref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wesenbergg committed Nov 16, 2023
1 parent 81dfe23 commit 78aaf3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion src/pages/kurssit/101-git/index.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
---
import Layout from "../../../layouts/Layout.astro";
import { getCollection } from "astro:content";
const posts = await getCollection("101-git");
---

<Layout title="Welcome to Astro.">
<Layout title="Tervetuloa 101 Git kurssille!">
<main>
<h1>Git Perusteet</h1>
<ul>
{
posts.map((p) => (
<li>
<a href={`${p.slug}`}>{p.data.title}</a>
</li>
))
}
</ul>
</main>
</Layout>
4 changes: 2 additions & 2 deletions src/pages/kurssit/101-web/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { getCollection } from "astro:content";
const posts = await getCollection("101-web");
---

<Layout title="Welcome to Astro.">
<Layout title="Tervetuloa 101 Web kurssille!">
<main>
<h1>Web Perusteet</h1>
<ul>
{
posts.map((p) => (
<li>
<a href={`101-web/${p.slug}`}>{p.data.title}</a>
<a href={`${p.slug}`}>{p.data.title}</a>
</li>
))
}
Expand Down

0 comments on commit 78aaf3b

Please sign in to comment.