Use paginator.(next|previous)_page_path instead of just the number.

Closes #3074
This commit is contained in:
Parker Moore 2014-11-08 22:25:05 -08:00
parent 5eb300043f
commit 70159ac8cb
1 changed files with 2 additions and 2 deletions

View File

@ -155,13 +155,13 @@ title: My Blog
<!-- Pagination links --> <!-- Pagination links -->
<div class="pagination"> <div class="pagination">
{% if paginator.previous_page %} {% if paginator.previous_page %}
<a href="/page{{ paginator.previous_page }}" class="previous">Previous</a> <a href="{{ paginator.previous_page_path }}" class="previous">Previous</a>
{% else %} {% else %}
<span class="previous">Previous</span> <span class="previous">Previous</span>
{% endif %} {% endif %}
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span> <span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %} {% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="next">Next</a> <a href="{{ paginator.next_page_path }}" class="next">Next</a>
{% else %} {% else %}
<span class="next ">Next</span> <span class="next ">Next</span>
{% endif %} {% endif %}