{%- if page.method | size != 0 %} {%- assign tag = "h2" -%} {%- if page.collection == "subrecipes" -%} {%- assign tag = "h4" -%} {%- endif -%} <{{tag}}>Method {%- assign name = page.name | downcase | url_encode -%}
    {% assign i = 1 -%} {%- for item in page.method -%}
  1. {%- assign i = i | plus: 1 -%} {% endfor %}
{%- endif -%}