From 16b2165de7ebbef40a1c7927e1ccc67dba1e660f 2024-03-21 04:18:22 From: Ben Sturmfels Date: 2024-03-21 04:18:22 Subject: [PATCH] blog: Retain author/tag when changing pages in entry_list Denver noted that the author query string was being lost when you select a page by page number. This change fixes it. --- diff --git a/conservancy/templates/blog/entry_list.html b/conservancy/templates/blog/entry_list.html index ab09d2c5bae2b7fe9fa61bcd577a756436197e37..327cfc4af92245af87b38597b1492d85f4290a99 100644 --- a/conservancy/templates/blog/entry_list.html +++ b/conservancy/templates/blog/entry_list.html @@ -25,7 +25,7 @@ {% if blog_entries.has_next %}Next page (older) »{% endif %} {% if blog_entries.has_previous %}« Previous page (newer){% endif %}

-{% if blog_entries.paginator.num_pages > 1 %}

{% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endif %} {% endfor %}

{% endif %} +{% if blog_entries.paginator.num_pages > 1 %}

{% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endif %} {% endfor %}

{% endif %}
{% endblock %}