recipe-site/_includes/ingredients.html
Lynne 902af258a3
All checks were successful
continuous-integration/drone/push Build is passing
removed an extraneous space in the html output
it is 7:30am and i haven't slept yet what am i doing with my life
2020-03-01 07:31:44 +10:00

10 lines
289 B
HTML

{%- assign tag = "h2" -%}
{%- if page.collection == "subrecipes" -%}
{%- assign tag = "h4" -%}
{%- endif -%}
<{{tag}}>Ingredients</{{tag}}>
<ul>
{% for item in page.ingredients -%}
<li>{{ item[0] }} {%- if item[2] %} {{ item[2] }} of {% endif %} {{ item[1] }}</li>
{% endfor -%}
</ul>