{% extends "base_2019.html" %}
{% block lang %}{{ note.lang }}{% endblock lang %}
{% block title %}{{ note.title }}{% endblock %}
{% block extra_head %}
  <!-- Canonical URL for SEO purposes -->
  <link rel="canonical" href="https://larlet.fr{{ note.url }}">
{% endblock %}
{% block content %}
<h1 class="single">
  <span><a id="jumper" href="#jumpto" title="Un peu perdu ?">?</a></span>
  {{ note.title }}
  <time>Publié le {{ note.date.strftime("%d %B").strip("0") }}</time>
</h1>
<article class="single">
 {{ note.content }}
</article>
{% endblock content %}

{% block aside %}
{% if note.lang == 'en' %}
<aside>
  <p>
    Other articles in English:
  {% for post_en in published_posts_en %}
    <a href="{{ post_en.url }}">{{ post_en.title }}</a>{% if not loop.last %},{% else %}.{% endif %}
  {% endfor %}
    Oh, and most of <a href="/david/stream/2018/">the 2018 thoughts</a>.
  </p>
</aside>
{% else %}
  {{ super() }}
{% endif %}
{% endblock aside%}

{% block nav %}
<nav id="jumpto">
  <p>
    <a rel=prev href="{{ prev.url }}">← {{ prev.title }}</a> | <a href="/david/stream/{{ note.date.year }}/" title="Retour à la liste complète">↑ Liste complète</a>{% if next %} | <a  rel=next href="{{ next.url }}">{{ next.title }} →</a>{% endif %}
  </p>
</nav>
{% endblock nav %}

{% block extrajs %}
  {% include 'service_workers.html' %}
{% endblock %}
