diff options
author | xengineering <me@xengineering.eu> | 2024-03-16 21:24:28 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-03-24 10:10:54 +0100 |
commit | 40a576737de18af2fb20387b3b76b12053910fe9 (patch) | |
tree | 8aba7d6e5d285a095830d918a792a93a885465da /view/html/recipe.html | |
parent | ddc6e8e1fb8a4b1dfe8421b12e40b15162ae75f1 (diff) | |
download | ceres-40a576737de18af2fb20387b3b76b12053910fe9.tar ceres-40a576737de18af2fb20387b3b76b12053910fe9.tar.zst ceres-40a576737de18af2fb20387b3b76b12053910fe9.zip |
view: Add steps to recipe page
Diffstat (limited to 'view/html/recipe.html')
-rw-r--r-- | view/html/recipe.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/view/html/recipe.html b/view/html/recipe.html index 4d0eb99..fea32a5 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -14,7 +14,10 @@ </p>{{ if ne .Portions "" }} <p><i>Portions:</i> {{.Portions}}</p>{{end}}{{ if ne .Url "" }} <p><i>Original recipe:</i> <a href="{{.Url}}">link</a></p>{{end}}{{ if ne .Notes "" }} - <p class="notice" style="white-space: pre-line;">{{.Notes}}</p>{{end}} + <p class="notice" style="white-space: pre-line;">{{.Notes}}</p>{{end}}{{range .Steps}} + <section> + <p>{{.Text}}</p> + </section>{{end}} </main> {{ template "footer" }} <script src="/static/view/static/ceres.js"></script> |