From 8171e1753c0cdda3e13c452717019f47fa056928 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 17 Feb 2011 19:03:23 +0000 Subject: [PATCH] Fix a template bug. --- pelican/themes/notmyidea/templates/index.html | 60 ++++++++++--------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html index ded814ff..217bacf2 100644 --- a/pelican/themes/notmyidea/templates/index.html +++ b/pelican/themes/notmyidea/templates/index.html @@ -2,31 +2,32 @@ {% block content_title %}{% endblock %} {% block content %} {% if articles %} -{% for article in articles_page.object_list %} - {% if loop.first and not articles_page.has_previous() %} - + {% if loop.length > 1 %} +
+

Other articles

+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first and articles_page.has_previous %} +
    +
      + {% endif %} +
    1. - {% endif %} - {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} - {% include 'pagination.html' %} - {% endif %} + + {% endif %} + {% if loop.last and (articles_page.has_previous() + or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} {% endfor %} -
    -{% if loop.length > 1 %} -
    + {% if loop.length > 1 or articles_page.has_previous() %} +
+
{% endif %} {% else %}