Avoiding to generate 1/1 if pagination is set to false

This commit is contained in:
Massimo Santini 2011-06-30 23:46:29 +02:00
commit 0a26fcbd0d

View file

@ -1,3 +1,4 @@
{% if WITH_PAGINATION %}
<p class="paginator">
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
@ -11,3 +12,4 @@
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&raquo;</a>
{% endif %}
</p>
{% endif %}