News Item

This is the News Item component which is used to display latest news items.

Markup Details
                            {{ attach_library('goizueta_theme/news-item') }}

{%
  set attributes = attributes ? attributes.addClass('news-item')  : ' class="news-item"'
%}

<article{{ attributes|raw }}>
  <div class="news-item__inner">
    {% if image %}
      <div class="news-item__image">
        {{ image }}
      </div>
    {% endif %}
    {% if date %}
      <div class="news-item__date">
        {{ date }}
      </div>
    {% endif %}
    {%
      include '@components/heading/heading.twig' with {
        "heading": heading
      } only
    %}
  </div>
</article>