{% for section, field in sub_header.items %} {% if section != "section_name" and section != "template" %} {% if field.value %}
{{field.label}}: {{ field.value }}{% if not forloop.last %} | {% endif %}
{% endif %} {% endif %} {% endfor %}