don't show part title if there is only one part
This commit is contained in:
parent
59f80f6619
commit
c01689f892
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue