fixes pagination include

This commit is contained in:
Jérôme Steunou 2013-08-30 16:03:06 +02:00
commit 21d948a378

View file

@ -43,8 +43,9 @@
{% endif %}
{% if loop.last %}
</ol><!-- /#posts-list -->
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% if loop.last and
( (loop.length == DEFAULT_PAGINATION and articles_page.has_next()) or
(loop.length < DEFAULT_PAGINATION and articles_page.has_previous())) %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->