diff --git a/www/conservancy/templates/blog/entry_list.html b/www/conservancy/templates/blog/entry_list.html index 29f1adb3c256ef9f2247f09d3ee1edab56a1bb8b..e7c21317ac1e7bd0fa86d332755258d678c893dc 100644 --- a/www/conservancy/templates/blog/entry_list.html +++ b/www/conservancy/templates/blog/entry_list.html @@ -12,19 +12,21 @@
{% endif %} -{% for object in object_list %} +{% for entry in blog_entries %}{{ object.pub_date|date:"F j, Y" }} by {{ object.author.formal_name }}
-Posted by {{ object.author.formal_name}} on {{ object.pub_date|date:"F j, Y" }}
- {% if object.tags.all %} {% endif %} +{{ entry.pub_date|date:"F j, Y" }} by {{ entry.author.formal_name }}
+Posted by {{ entry.author.formal_name}} on {{ entry.pub_date|date:"F j, Y" }}
+ {% if entry.tags.all %} {% endif %}-{% if has_next %}Next page (older) »{% endif %} -{% if has_previous %}« Previous page (newer){% endif %} +{% 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 %}