recipe-site/_includes/method.html

16 lines
603 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}}>
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 }}'>
{% 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 -%}