{# LIBRARIES #}
{% extends "@molecules/tm-cards/plain-card/plain-card.twig" %}

{# VARIABLES #}
{% set card_class = "news-card" %}
{% set link_scope = "top" %}
{% set content_class = 'cbelianr' %}
{% set show_header = false %}
{% set show_footer = true %}

{# BLOCK BODY #}
{% block card_body %}

  {{ attach_library('ui_patterns/news_card.news_card_lib') }}

  {% if title %}
    {% include "@atoms/tm-links/icon-bookended/icon-bookended.twig" with {
      "text": title,
      "icon_right": global_icon_right|default('fas fa-chevron-right'),
      "class": "subtitle",
      "tag_name": "h3"
    } only %}
  {% endif %}

  {% if body %}
    <div class="card-body-text">
      {{ body }}
    </div>
  {% endif %}

{% endblock %}

{# BLOCKS #}
{% block card_footer %}
  {% if date %}
    <span class="card-date">{{ date }}</span>
  {% endif %}
  {% if tags %}
    {% include "@molecules/tm-cards/card-partials/tags.html.twig" %}
  {% endif %}
{% endblock %}
