Add pagination support for blog listing

This commit is contained in:
2013-10-14 12:12:50 +02:00
parent 7b3ec3f916
commit 87d7e16b0e
4 changed files with 58 additions and 11 deletions

View File

@@ -2,11 +2,13 @@
{% block content %}
{% if posts %}
{% include 'paginator.html' with list=posts %}
{% for post in posts %}
{% with title_links=True %}
{% include 'blog/post.html' %}
{% endwith %}
{% endfor %}
{% include 'paginator.html' with list=posts %}
{% else %}
<p>No posts are returned for your query.</p>
{% endif %}