{% set node_teaser_classes = [
  'node-teaser',
  'node-teaser--story',
  'node-teaser--text',
] %}
{% set attributes = attributes|default(create_attribute()) %}
{% set node_teaser_has_content = 'false' %}

{% extends "@ui-node/component/node-teaser/node-teaser.twig" %}

{% block node_teaser_header %}
  {% if
    node_teaser_field_ert_story_type or
    node_teaser_field_published_date
  %}
    <div class="node-teaser__metadata">
      {% if node_teaser_field_ert_story_type %}
        <div class="node-teaser__story-type">
          {{ node_teaser_field_ert_story_type }}
        </div>
      {% endif %}

      {% if node_teaser_field_published_date %}
        <div class="node-teaser__date">{{ node_teaser_field_published_date }}</div>
      {% endif %}
    </div>
  {% endif %}

  {{ parent() }}

  {% if node_teaser_topics %}
    <div class="node-teaser__topics">
      {{ node_teaser_topics }}
    </div>
  {% endif %}
{% endblock %}
