recipe-site/_includes/method.html

16 lines
578 B
HTML
Raw Normal View History

2020-02-29 18:18:45 +00:00
{%- 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 %}
2020-02-29 18:18:45 +00:00
</ol>
{%- endif -%}