mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Avoiding to generate 1/1 if pagination is set to false
This commit is contained in:
parent
9dc9fc1d40
commit
0a26fcbd0d
1 changed files with 2 additions and 0 deletions
|
|
@ -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">»</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue