2020-02-29 18:07:36 +00:00
|
|
|
{%- assign tag = "h2" -%}
|
|
|
|
{%- if page.collection == "subrecipes" -%}
|
|
|
|
{%- assign tag = "h4" -%}
|
|
|
|
{%- endif -%}
|
2020-02-29 18:05:06 +00:00
|
|
|
<{{tag}}>Ingredients</{{tag}}>
|
2020-03-01 08:38:27 +00:00
|
|
|
<ul class='ingredients'>
|
2020-02-29 18:07:36 +00:00
|
|
|
{% for item in page.ingredients -%}
|
2020-03-01 09:50:53 +00:00
|
|
|
{%- assign tag = "li" -%}
|
|
|
|
{%- if item[3] -%}
|
|
|
|
{%- assign tag = tag | append: " class='optional'" -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
2020-03-05 13:30:17 +00:00
|
|
|
{%- assign input = item[0] -%}
|
|
|
|
{%- include fractionalise.html -%}
|
|
|
|
|
|
|
|
{%- assign amount = output | append: " " -%}
|
2020-03-01 09:50:53 +00:00
|
|
|
{%- assign end = "" -%}
|
|
|
|
{%- if item[0][0] -%}
|
2020-03-05 13:30:17 +00:00
|
|
|
{%- assign input = item[0][0] -%}
|
|
|
|
{%- include fractionalise.html -%}
|
|
|
|
{%- assign from = output -%}
|
|
|
|
|
|
|
|
{%- assign input = item[0][1] -%}
|
|
|
|
{%- include fractionalise.html -%}
|
|
|
|
{%- assign to = output -%}
|
|
|
|
|
|
|
|
{%- assign amount = from | append: " to " | append: to | append: " " -%}
|
2020-03-01 09:50:53 +00:00
|
|
|
{%- elsif item[0] == 0 -%}
|
|
|
|
{%- assign amount = "" -%}
|
|
|
|
{%- assign end = " to taste" -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
<{{ tag }}>{{ amount }} {%- if item[2] %}{{ item[2] }} of {% endif -%} {{ item[1] }}{{ end }}</li>
|
|
|
|
{% endfor %}
|
2020-02-29 18:05:06 +00:00
|
|
|
</ul>
|