mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Simplify unnecessarily complicated conditional.
if (a) if (a and (b or not b and c)) can be simplified as if (a) if (b or c)
This commit is contained in:
parent
18d089e8ea
commit
b9846b5a7f
1 changed files with 1 additions and 2 deletions
|
|
@ -43,8 +43,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if loop.last %}
|
{% if loop.last %}
|
||||||
</ol><!-- /#posts-list -->
|
</ol><!-- /#posts-list -->
|
||||||
{% if loop.last and (articles_page.has_previous()
|
{% if articles_page.has_previous() or loop.length > 1 %}
|
||||||
or not articles_page.has_previous() and loop.length > 1) %}
|
|
||||||
{% include 'pagination.html' %}
|
{% include 'pagination.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue