{%- assign tag = "h2" -%} {%- if page.collection == "subrecipes" -%} {%- assign tag = "h4" -%} {%- endif -%} <{{tag}}>Ingredients{{tag}}>