{% extends "base.html" %}
{% import 'macros/card.html' as macro_card -%}
{% import 'macros/media.html' as macro_media -%}

{% block content %}


  <div class="columns is-multiline mt-6">
  {% set blog = get_section(path="blog/_index.md") %}
    {% for page in blog.pages %}
            <div class="column is-one-third">
         {% if loop.index0 == 3 %}
              </div>
              {% break %}
          {% endif %}
    {% if page.taxonomies.Tag %}
        {{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
    {% else %}
      {{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="", abstract=page.summary, tags="", date=page.date) }}
    {% endif %}
        </div>
    {% endfor %}
    
    <a class="plus-articles button is-link is-light is-medium has-text-weight-bold" href="{{ blog.permalink }}">
           Plus d'articles
            <i class="computer fas fa-chevron-right"></i>
    </a>
    </div>
{% endblock content %}
