diff options
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/recipe.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/recipe.html b/data/templates/recipe.html index 2b387c0..f95ace6 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -15,7 +15,13 @@ </header> <main> - <p>This recipe is written for {{.Recipe.Portions}} portions.</p> + <p>For {{.Recipe.Portions}} portions you will need these ingredients:</p> + + <ul> + {{range .Recipe.Steps}}{{range $i, $el := .Ingredients}} + <li>{{if ne $el.Amount 0.0}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}</li> + {{end}}{{end}} + </ul> {{if ne .Recipe.Url ""}} <p>Use this <a href="{{.Recipe.Url}}">link</a> to go to the original recipe.</p> |