{% extends "base.html" %}
{% import "macros.html" as macros %}

{% block title %}{{ page.title }} · {{ config.title }}{% endblock title %}

{% block content %}
{% include "partials/back-to-section.html" %}
<article>
    <header class="entry-header">
        <h1>{{ page.title }}</h1>

        {% if page.description %}
            <p class="entry-description">{{ page.description }}</p>
        {% endif %}

        {% include "partials/entry-dates.html" %}

        {% if page.taxonomies.genres %}
            <dl class="metadata">
                <dt>Type de texte</dt>
                <dd>
                    {{ macros::taxonomy_links(terms=page.taxonomies.genres, kind="genres") }}
                </dd>
            </dl>
        {% endif %}
    </header>

    {{ page.content | safe }}
</article>
{% endblock content %}
