Draw period_archives according to the archives model. This fixes margin for period archives. (#126)

Draw period_archives according to the archives model
This commit is contained in:
Lucas Verney 2017-07-12 16:18:16 +02:00 committed by Alexandre Vicenzi
parent 79c91d1335
commit f977cb353f

View file

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %} – {{ _('Archives') }}{% endblock %}
{% block content %}
<article class="single">
<header>
<h1>{{ _('Archives') }}</h1>
</header>
<div>
<dl>
{% set previous_date = False %}
{% for article in dates %}
{% if article.locale_date != previous_date %}
{% set previous_date = article.locale_date %}
<dt>{{ article.locale_date }}</dt>
{% endif %}
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
</div>
</article>
{% endblock %}