From b34b452514f2bc032cfaa25295a99d415db4d743 Mon Sep 17 00:00:00 2001 From: m-r-r Date: Sun, 22 Apr 2012 15:17:15 +0200 Subject: Forgotten to wrap the archives with a
tag --- dev-random/templates/archives.html | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'dev-random') diff --git a/dev-random/templates/archives.html b/dev-random/templates/archives.html index 998890e..f437099 100644 --- a/dev-random/templates/archives.html +++ b/dev-random/templates/archives.html @@ -3,28 +3,28 @@ {% block content_title %}{{ SITENAME }} — Archives{% endblock %} {%- block content %} +
+
+ {% for article in articles %} + {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %} +
+

{{ article.date.strftime('%B %Y') }}

+
    + {% endif %} + +
  • + + {{ article.title }} + +
  • -
    - {% for article in articles %} - {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %} -
    -

    {{ article.date.strftime('%B %Y') }}

    -
      - {% endif %} - -
    • - - {{ article.title }} - -
    • - - {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %} -
    -
    - {% endif %} - {% endfor %} -
    - + {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %} +
+
+ {% endif %} + {% endfor %} +
+
{% endblock content -%} -- cgit