diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html index 2d45bb2a..8e065937 100644 --- a/pelican/themes/notmyidea/templates/index.html +++ b/pelican/themes/notmyidea/templates/index.html @@ -43,8 +43,9 @@ {% endif %} {% if loop.last %} - {% if loop.last and (articles_page.has_previous() - or not articles_page.has_previous() and loop.length > 1) %} + {% if loop.last and + ( (loop.length == DEFAULT_PAGINATION and articles_page.has_next()) or + (loop.length < DEFAULT_PAGINATION and articles_page.has_previous())) %} {% include 'pagination.html' %} {% endif %}