From f977cb353f212c0b42115033b1eab367d6f6c790 Mon Sep 17 00:00:00 2001 From: Lucas Verney Date: Wed, 12 Jul 2017 16:18:16 +0200 Subject: [PATCH] Draw period_archives according to the archives model. This fixes margin for period archives. (#126) Draw period_archives according to the archives model --- templates/period_archives.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/period_archives.html diff --git a/templates/period_archives.html b/templates/period_archives.html new file mode 100644 index 0000000..23df1e5 --- /dev/null +++ b/templates/period_archives.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block title %} – {{ _('Archives') }}{% endblock %} + +{% block content %} +
+
+

{{ _('Archives') }}

+
+
+
+ {% set previous_date = False %} + {% for article in dates %} + {% if article.locale_date != previous_date %} + {% set previous_date = article.locale_date %} +
{{ article.locale_date }}
+ {% endif %} +
{{ article.title }}
+ {% endfor %} +
+
+
+{% endblock %}