This commit is contained in:
@@ -8,17 +8,25 @@ const recipes = await memorium.listResource("Recipes");
|
||||
|
||||
<Layout title="Max Richter">
|
||||
{
|
||||
recipes.content.filter(res => res.content).map((recipe: any) => (
|
||||
<HeroCard
|
||||
post={{
|
||||
collection: "resources/Recipes",
|
||||
id: recipe.name.replace(/\.md$/, ""),
|
||||
data: {
|
||||
cover: recipe.content?.image ? `http://localhost:8080/${recipe.content.image}` : undefined,
|
||||
title: recipe.name.replace(/\.md$/, ""),
|
||||
},
|
||||
}}
|
||||
/>
|
||||
))
|
||||
recipes.content
|
||||
.filter((res) => res.content)
|
||||
.map((recipe: any) => (
|
||||
<HeroCard
|
||||
post={{
|
||||
collection: "resources/Recipes",
|
||||
id: recipe.name.replace(/\.md$/, ""),
|
||||
data: {
|
||||
cover: recipe.content?.image
|
||||
? `http://localhost:8080/${recipe.content.image}`
|
||||
: undefined,
|
||||
title: recipe.name.replace(/\.md$/, ""),
|
||||
},
|
||||
}}
|
||||
/>
|
||||
))
|
||||
}
|
||||
</Layout>
|
||||
/>
|
||||
))
|
||||
}
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user