Skip to content

Commit

Permalink
add pagination to blog list
Browse files Browse the repository at this point in the history
  • Loading branch information
furtidev committed Nov 9, 2024
1 parent a2a11a2 commit 7855731
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/blogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ <h1>
</div>

{% endfor %} {% endif %}

{% if paginator.previous %}
<a href="{{ paginator.previous }}">&laquo; Previous</a> |
{% endif %}
Page {{ paginator.current_index }} of {{ paginator.number_pagers }}
{% if paginator.next %}
| <a href="{{ paginator.next }}">Next &raquo;</a>
{% endif %}
</center>

{% endblock content %}

0 comments on commit 7855731

Please sign in to comment.