{% extends 'base.html.twig' %}
{% block title %}Acceuil{% endblock %}
{% block body %}
<body>
  {% include "header.html.twig" %}
  <nav aria-label="breadcrumb">
    {% set current_path = "" %}
    <ul>
        {% for item in path|split(pat="/") %}
            {% set current_path = current_path ~ "/" ~ item %}
            <li><a href="/medias?q={{current_path}}">{{item}}</a></li>
        {% endfor %}
    </ul>
  </nav>

  {% include "footer.html.twig"%}

</body>
{% endblock %}