{% extends 'partials/base.html.twig' %}

{% set bodyclass = "projet" %}

{% set images = page.media.images[2:] %}
{% set images = images|merge(page.media.files) %}

{% block content %}
  <section class="projet">
    <h1>{{page.title}}</h1>
    <h2>{{ page.header.subtitle}}</h2>

    {{ page.content }}

    <div id="images" class="">
      {{ dump(images) }}
      {% for image in images %}
        {{ image.lightbox().resize(400).html(image.meta.title) }}
      {% endfor %}
    </div>
  </section>

  <nav class="categories">
    {% include 'partials/tagslist.html.twig' with {'base_url':"/categories/", 'taxonomy':'tag', 'display':'inline'} %}
  </nav>

{% endblock %}
