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}}>
2020-03-03 13:15:05 +00:00
{%- assign prefix = page.id | downcase | split: "/" | last | url_encode | prepend: "cb-" -%}
< ol class = 'method' data-cb-prefix = '{{ prefix }}' >
2020-03-03 12:46:28 +00:00
{% assign i = 1 -%}
{%- for item in page.method -%}
2020-03-03 13:15:05 +00:00
< li > < input id = '{{ prefix }}-{{ i }}' class = 'method-checkbox' data-number = '{{ i }}' type = 'checkbox' > < label for = '{{ prefix }}-{{ i }}' > {{ item }}< / label > < / li >
{% assign i = i | plus: 1 -%}
{%- endfor %}
2020-02-29 18:18:45 +00:00
< / ol >
{%- endif -%}