{% extends 'layouts/base.njk' %}

{% block content %}
  <main id="main-content" tabindex="-1">
    <article class="[ post wrapper ]">
      <div class="[ post__body ]">
        <h1>{{ title }}</h1>
        <div class="post-info">
          Publié le <strong>{{ date | dateFilter }}</strong>{%if author %} | {{ author }}{% endif %}
        </div>
        {% if illustration %}
        <img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
        {% endif %}
        {{ content | safe }}
        <a class="return-link" href="/posts">Voir toute l'actualité</a>
      </div>
    </article>
    {% include "partials/components/contact-form.njk" %}
  </main>
{% endblock %}
