[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
Showing only changes of commit e3dad8bee4 - Show all commits

View File

@ -3,9 +3,9 @@ import client from "@/data/pocketbase";
import SiteLayout from "@/layouts/base";
import ImageCarousel from "@/components/Detail/ImageCarousel";
const { slug } = Astro.params;
const { recipeid } = Astro.params;
const re = await client.collection("recipes").getOne(slug ?? "0");
const re = await client.collection("recipes").getOne(recipeid ?? "0");
---