recipe-site/_includes/method.html

16 lines
578 B
HTML

{%- if page.method | size != 0 %}
{%- assign tag = "h2" -%}
{%- if page.collection == "subrecipes" -%}
{%- assign tag = "h4" -%}
{%- endif -%}
<{{tag}}>Method</{{tag}}>
{%- assign name = page.name | downcase | url_encode -%}
<ol class='method' data-cb-prefix='check-{{ name }}'>
{% assign i = 1 -%}
{%- for item in page.method -%}
<li><input id='check-{{ name }}-{{ i }}' class='method-checkbox' data-number='{{ i }}' type='checkbox'><label for='check-{{ name }}-{{ i }}'>{{ item }}</label></li>
{%- assign i = i | plus: 1 -%}
{% endfor %}
</ol>
{%- endif -%}