{%- if context %} {% set id = context.id %} {% set href = context.href %} {% set section_title = context.section_title %} {% set section__subheading = context.section__subheading %} {% set vf_section__content = context.vf_section__content %} {% set hidden = context.hidden %} {% endif -%} {% spaceless %} {# in the future we may allow a choice of h2 or h3 #} {% set tags = 'h2' %} {% if href %} {% endif %}
{# Check if the 'hidden' property is true and just show the h2 with title if it is #} {% if hidden %} <{{tags}} class="vf-section-header__heading vf-u-sr-only" {%- if id %} id="{{id}}"{% endif -%} > {{- section_title -}} {# If the 'hidden' property is not true show the h2 with link and image #} {% else %} <{{tags}} class="vf-section-header__heading{% if href %} vf-section-header__heading--is-link{% endif %}" {%- if id %} id="{{id}}"{% endif -%} > {% if href %}{% endif %} {{- section_title -}} {% if href %}{% endif %} {%- if href %} {%- endif -%} {% endif %} {% if section__subheading %}

{{ section__subheading }}

{% endif %} {%- if vf_section__content -%} {%- asyncEach section__content in vf_section__content -%}

{{section__content | safe }}

{%- endeach -%} {%- endif -%}
{% endspaceless %}