-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wesenbergg
committed
Nov 16, 2023
1 parent
81dfe23
commit 78aaf3b
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters