From 816449c15c5a58c163978d8fdd7bad3d83706ae5 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Thu, 1 Jun 2017 14:38:39 -0400 Subject: [PATCH] Draw period_archives according to the archives model. This fixes margin for period archives. --- 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 %}