Convert more recipes to the new format
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
module.exports = require("../helpers")({
|
||||
title: "",
|
||||
timings: {
|
||||
prep: " min",
|
||||
cook: " hours",
|
||||
},
|
||||
icons: ["gluten-free", "low-carb", "overnight", "vegetarian"],
|
||||
servings: ,
|
||||
description: "",
|
||||
steps: [{
|
||||
ingredients: [
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
],
|
||||
directions: ""
|
||||
}, {
|
||||
ingredients: [
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
],
|
||||
directions: ""
|
||||
}, {
|
||||
ingredients: [
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
{ amount: , unit: "", item: "" },
|
||||
],
|
||||
directions: ""
|
||||
}]
|
||||
})
|
||||
@@ -17,8 +17,9 @@ html
|
||||
.icons
|
||||
each icon in icons
|
||||
.icon(class=icon)
|
||||
.icon.serving
|
||||
| × #{servings}
|
||||
if servings
|
||||
.icon.serving
|
||||
| × #{servings}
|
||||
|
||||
.description #{description}
|
||||
|
||||
@@ -29,10 +30,11 @@ html
|
||||
h3 #{stepNumber}
|
||||
.ingredients
|
||||
ul
|
||||
each ingredient in step.ingredients
|
||||
li
|
||||
.amount #{asFraction(ingredient.amount)} #{ingredient.unit}
|
||||
.item #{ingredient.item}
|
||||
if step.ingredients
|
||||
each ingredient in step.ingredients
|
||||
li
|
||||
.amount #{asFraction(ingredient.amount)} #{ingredient.unit}
|
||||
.item #{ingredient.item}
|
||||
.detail #{step.directions}
|
||||
- stepNumber++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user