From b9846b5a7f56ff22d0bf23ca2fbcf970807a5f78 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Wed, 12 Feb 2014 12:34:22 +0100 Subject: [PATCH] Simplify unnecessarily complicated conditional. if (a) if (a and (b or not b and c)) can be simplified as if (a) if (b or c) --- pelican/themes/notmyidea/templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html index 2d45bb2a..abd33c35 100644 --- a/pelican/themes/notmyidea/templates/index.html +++ b/pelican/themes/notmyidea/templates/index.html @@ -43,8 +43,7 @@ {% endif %} {% if loop.last %} - {% if loop.last and (articles_page.has_previous() - or not articles_page.has_previous() and loop.length > 1) %} + {% if articles_page.has_previous() or loop.length > 1 %} {% include 'pagination.html' %} {% endif %}