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.
This commit is contained in:
Ben Sturmfels 2024-03-21 15:18:22 +11:00
parent 02ca52e2f0
commit 16b2165de7
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -25,7 +25,7 @@
{% if blog_entries.has_next %}<a class="next_page_button" href="?page={{ blog_entries.next_page_number }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">Next page (older) &raquo;</a>{% endif %}
{% if blog_entries.has_previous %}<a href="?page={{ blog_entries.previous_page_number }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">&laquo; Previous page (newer)</a>{% endif %}
</p>
{% if blog_entries.paginator.num_pages > 1 %}<p class="pagination_list"> {% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endif %} {% endfor %}</p>{% endif %}
{% if blog_entries.paginator.num_pages > 1 %}<p class="pagination_list"> {% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">{{ pagenum }}</a>{% endif %} {% endfor %}</p>{% endif %}
<div class="clear"></div>
{% endblock %}