-
+
back
@@ -55,11 +58,19 @@ const resource = await memorium.listResource(
{resource?.content?.description}
Ingredients
- {resource.content.recipeIngredient.map(ingredient => - {markdownToText(ingredient)}
)}
+ {
+ resource.content.recipeIngredient.map((ingredient) => (
+ - {markdownToText(ingredient)}
+ ))
+ }
Steps
- {resource.content.recipeInstructions.map(ingredient => - {markdownToText(ingredient)}
)}
+ {
+ resource.content.recipeInstructions.map((ingredient) => (
+ - {markdownToText(ingredient)}
+ ))
+ }
diff --git a/src/pages/resources/[resourceType]/index.astro b/src/pages/resources/[resourceType]/index.astro
index f68e831..e411a84 100644
--- a/src/pages/resources/[resourceType]/index.astro
+++ b/src/pages/resources/[resourceType]/index.astro
@@ -8,12 +8,12 @@ const { resourceType } = Astro.params;
const resources = await memorium.listResource(resourceType);
-export async function getStaticPaths(): string[] {
+export async function getStaticPaths() {
return resourceTypes.map((type: any) => {
return {
params: {
resourceType: type.id,
- resourceName: "Recipe"
+ resourceName: "Recipe",
},
};
});
@@ -21,17 +21,22 @@ export async function getStaticPaths(): string[] {
---
- { resources.content.filter(res => res && res?.content && res?.content?.name).map((resource: any) => (
-
- ))
+ {
+ resources.content
+ .filter((res) => res && res?.content && res?.content?.name)
+ .map((resource: any) => (
+
+ ))
}