[PIE-8] Add recipe detail view #6

Merged
breadone merged 17 commits from PIE-8 into main 2025-08-13 16:54:06 +12:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit c25f95949b - Show all commits

View File

@ -13,7 +13,9 @@ const recipies = await client.collection("recipes").getFullList()
<div class="grid gap-2 grid-cols-1 md:grid-cols-2 lg:grid-cols-4">
{
recipies.map(r => (
<a href={`/recipe/${r.id}`}>
<OverviewCard recipe={r} />
</a>
))
}
</div>

View File

@ -0,0 +1,9 @@
---
import client from "@/data/pocketbase";
const { slug } = Astro.params;
const re = await client.collection("recipes").getOne(slug ?? "0");
---
{re.name}