don't show part title if there is only one part

This commit is contained in:
Emi Vasilek 2023-11-05 12:44:13 +01:00
parent 59f80f6619
commit c01689f892

View file

@ -15,7 +15,9 @@
<a href="index.html">back</a>
<h1>{{recipe.title}}</h1>
{% for part in recipe.parts %}
{% if recipe.parts|length != 1 %}
<h2>{{part.title}}</h2>
{% endif %}
<h3>Ingredients</h3>
{% for ing in part.ingredients %}
<li>{{ingredient(ing)}}</li>