diff --git a/www/conservancy/templates/blog/entry_list.html b/www/conservancy/templates/blog/entry_list.html index c4cb0da2..334ef519 100644 --- a/www/conservancy/templates/blog/entry_list.html +++ b/www/conservancy/templates/blog/entry_list.html @@ -26,8 +26,7 @@ {% if blog_entries.has_next %}Next page (older) »{% endif %} {% if blog_entries.has_previous %}« Previous page (newer){% endif %}
-{% for pagenum in blog_entries.paginator.page_range %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %} -
+{% if blog_entries.num_pages > 1 %} {% for pagenum in blog_entries.paginator.page_range %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %}{% endif %}
{% if date_list %} diff --git a/www/conservancy/templates/news/pressrelease_list.html b/www/conservancy/templates/news/pressrelease_list.html index 5a8c86b5..5c93d3d6 100644 --- a/www/conservancy/templates/news/pressrelease_list.html +++ b/www/conservancy/templates/news/pressrelease_list.html @@ -31,8 +31,7 @@ {% if news.has_next %}Next page (older) »{% endif %} {% if news.has_previous %}« Previous page (newer){% endif %} -{% for pagenum in news.paginator.page_range %}{% ifequal pagenum news.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %} -
+{% if blog_entries.num_pages > 1 %} {% for pagenum in blog_entries.paginator.page_range %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %}{% endif %}