10 lines
354 B
HTML
10 lines
354 B
HTML
{%- assign tag = "h2" -%}
|
|
{%- if page.collection == "subrecipes" -%}
|
|
{%- assign tag = "h4" -%}
|
|
{%- endif -%}
|
|
<{{tag}}>Ingredients</{{tag}}>
|
|
<ul class='ingredients'>
|
|
{% for item in page.ingredients -%}
|
|
<li class='{% if item[3] %}optional{% endif %}'>{{ item[0] }} {%- if item[2] %} {{ item[2] }} of {%- endif %} {{ item[1] }}</li>
|
|
{% endfor -%}
|
|
</ul>
|