{% extends "base.html" %}
{% block title %}{{ config.title }} • {{ page.title }}{% endblock title %}
{% block content %}
<div class="post">
  <h1 class="post-title">{{ page.title }}</h1>
  <div class="post-line"></div>
  <div class="post-info">
    <div class="date">
      <time datetime="{{ macros::date_fr(date=page.date) }}">{{ macros::date_fr(date=page.date) }}</time>
      <span class="fas fa-clock eta"></span>{{ macros::reading_time_from(word_count=page.word_count) }}
    </div>
    <div class="tags">
      {% if page.taxonomies["tags"] %}<span class="fa fa-tags"></span>{{ macros::print_tags(page=page) }}{% endif %}
    </div>
    <br />
    {% if page.updated %}
    <div class="date">
      &nbsp;&nbsp;➡ Mise à jour : <time datetime="{{ macros::date_fr(date=page.updated) }}">{{ macros::date_fr(date=page.updated)}}</time>
    </div>
    {% endif %}
  </div>
  <article>
    {{ page.content | safe }}
  </article>
</div>
<div class="pagination">
{% if page.earlier %}
   <a class="arrow left one_arrow" style="max-width: 45%; left: 0px !important;" href="{{page.earlier.permalink}}">{{page.earlier.title}}</a>
 {% endif %}
 {% if page.later %}
   <a class="arrow right one_arrow" style="max-width: 45%;" href="{{page.later.permalink}}">{{page.later.title}}</a>
{% endif %}
</div>
{% endblock content %}
