From 828e7bcb4c123e438cd977d88a58dbaabc1edaa3 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Wed, 12 Feb 2014 12:42:27 +0100 Subject: [PATCH] Fix stray ol and section end tag if only one article was displayed. We already check if loop.length > 1 before outputting
and
    tags, but we neglected to do the same check when outputting the corresponding end tags. --- pelican/themes/notmyidea/templates/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html index abd33c35..c8982476 100644 --- a/pelican/themes/notmyidea/templates/index.html +++ b/pelican/themes/notmyidea/templates/index.html @@ -42,11 +42,15 @@ {% endif %} {% if loop.last %} -
+ {% if loop.length > 1 %} + + {% endif %} {% if articles_page.has_previous() or loop.length > 1 %} {% include 'pagination.html' %} {% endif %} -
+ {% if loop.length > 1 %} + + {% endif %} {% endif %} {% endfor %} {% else %}