summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-22 19:57:44 +0200
committerxengineering <me@xengineering.eu>2023-04-22 19:57:44 +0200
commitb7a2d6b3521508d6ae8bb94d281f049f59001aa1 (patch)
tree279fd012b26ea4de386e515663bb040b383387fd
parent0b2ae5cbbee6637d5afe0a891f203f7eb7502c1e (diff)
downloadceres-b7a2d6b3521508d6ae8bb94d281f049f59001aa1.tar
ceres-b7a2d6b3521508d6ae8bb94d281f049f59001aa1.tar.zst
ceres-b7a2d6b3521508d6ae8bb94d281f049f59001aa1.zip
Improve representation of step ingredients
-rw-r--r--data/templates/recipe.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/data/templates/recipe.html b/data/templates/recipe.html
index 7bbb660..31fc7e3 100644
--- a/data/templates/recipe.html
+++ b/data/templates/recipe.html
@@ -23,11 +23,7 @@
{{range .Recipe.Steps}}
<p>{{.Text}}</p>
- <ul>
- {{range .Ingredients}}
- <li>{{.Amount}} {{.Type}}</li>
- {{end}}
- </ul>
+ <p><i>{{range $i, $el := .Ingredients}}{{if $i}}, {{end}}{{$el.Amount}} {{$el.Type}}{{end}}</i></p>
<hr>
{{end}}