recipe-site/_includes/ingredients.html

11 lines
290 B
HTML
Raw Normal View History

{%- assign tag = "h2" -%}
{%- if page.collection == "subrecipes" -%}
{%- assign tag = "h4" -%}
{%- endif -%}
<{{tag}}>Ingredients</{{tag}}>
<ul>
{% for item in page.ingredients -%}
2020-03-01 06:47:33 +00:00
<li>{{ item[0] }} {%- if item[2] %} {{ item[2] }} of {% endif -%} {{ item[1] }}</li>
{% endfor -%}
</ul>