diff options
Diffstat (limited to 'data/templates/recipe.html')
-rw-r--r-- | data/templates/recipe.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/recipe.html b/data/templates/recipe.html index bec6eb5..a91f025 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -22,7 +22,7 @@ {{range .Recipe.Steps}} <section> <p>{{.Text}}</p> - <p><i>{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{$el.Amount}} {{$el.Type}}{{end}}</i></p> + <p><i>{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{if ne $el.Amount 0.0}}{{$el.Amount}} {{end}}{{if ne $el.Unit ""}}{{$el.Unit}} {{end}}{{$el.Type}}{{end}}</i></p> </section> {{end}} |