24 lines
535 B
Plaintext
24 lines
535 B
Plaintext
---
|
|
import Layout from "@layouts/Layout.astro";
|
|
import HeroCard from "@components/HeroCard.astro";
|
|
import * as memorium from "@helpers/memorium";
|
|
|
|
const recipes = await memorium.listResource("Recipes/*");
|
|
---
|
|
|
|
<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>
|