{% extends "base.html" %}

{% block content %}
<article>
    <section class=title>
        <h1 class=title>{{ page.title }}</h1>
        {% if page.description %}
        <p class=subtitle>{{ page.description }}</p>
        {% endif %}
        <p class=metadata>
            <span>  {{ page.authors | join(sep=', ') }}</span>
            <span class="separator">•</span>
            <span>
                <meta itemprop="datePublished" content="{{ page.date | date(format='%+') }}">
                  {{ page.date | date(format='%d %b %Y') }}
            </span>
            <span class="separator">•</span>
            <span>󱎫  {{ page.reading_time }} min</span>
        </p>
        <p class="last-update">
            {% if page.updated %}
            <span>󰚰  {{ page.updated | date(format='%d %b %Y') }}</span>
            <span class="separator">•</span>
                {% if config.extra.remote_repository_url %}
                <a class="external-link" href="{% include 'partials/history_url.html'%}" target="_blank" rel="noopener noreferrer">Changements</a>
                {% endif %}
            {% endif %}
        </p>
    </section>
    <section>
        {{ page.content | safe }}
    </section>
</article>
{% endblock content %}