{% set node_classes = [
  'node--page',
  node_field_erp_impact_title ? 'node--has-impact-title' : '',
] %}

{% set attributes = attributes|default(create_attribute()) %}

{% extends "@ui-node/node--full.html.twig" %}

{% block node_header %}
  {% if node_field_erp_homepage_hero %}
    <div class="node__homepage-hero">
      {{ node_field_erp_homepage_hero }}
    </div>

  {# Not the homepage #}
  {% else %}
    {% if node_field_erp_impact_title %}
      <div class="node__impact-title">
        {{ node_field_erp_impact_title }}
      </div>
    {% else %}
      {{ parent() }}
    {% endif %}

    {% if node_field_subtitle %}
      <div class="node__subtitle">
        {{ node_field_subtitle }}
      </div>
    {% endif %}
  {% endif %}
{% endblock %}

{% block node_content %}
  {% if node_field_erp_sections %}
    <div class="node__sections">
      {{ node_field_erp_sections }}
    </div>
  {% endif %}
{% endblock %}
