From 325a2740e39b7c7937bfae8b76b092dd900fec9a Mon Sep 17 00:00:00 2001 From: xengineering <me@xengineering.eu> Date: Wed, 17 Jan 2024 21:37:52 +0100 Subject: Show steps on recipe page --- view/html/recipe.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'view/html') diff --git a/view/html/recipe.html b/view/html/recipe.html index acf346f..82b426b 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -12,7 +12,10 @@ <p>Portions: {{.Portions}}</p> <p><a href="{{.URL}}">original recipe</a></p> <p>{{.Notes}}</p> - <a href="/recipes/{{.Id}}/edit"><button>edit</button></a> + <a href="/recipes/{{.Id}}/edit"><button>edit</button></a>{{range .Steps}} + <section> + <p>{{.Text}}</p> + </section>{{end}} </main> {{ template "footer" }} </body> -- cgit v1.2.3-70-g09d2