This commit is contained in:
Max Richter
2025-07-20 13:37:29 +02:00
parent 08397deee8
commit 8005fe4e7e
15 changed files with 375 additions and 67 deletions

View File

@@ -0,0 +1,23 @@
---
import Layout from "@layouts/Layout.astro";
import HeroCard from "@components/HeroCard.astro";
const response = await fetch("http://localhost:8080/resources?name=Recipes/*");
const recipes = await response.json();
---
<Layout title="Max Richter">
{
recipes.map((recipe: any) => (
<HeroCard
post={{
collection: "resources/recipes",
id: recipe.identifier.replace("Recipes/", "").replace(/\.md$/, ""),
data: {
title: recipe.name,
},
}}
/>
))
}
</Layout>