mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix stray ol and section end tag if only one article was displayed.
We already check if loop.length > 1 before outputting <section> and <ol> tags, but we neglected to do the same check when outputting the corresponding end tags.
This commit is contained in:
parent
b9846b5a7f
commit
828e7bcb4c
1 changed files with 6 additions and 2 deletions
|
|
@ -42,11 +42,15 @@
|
|||
</article></li>
|
||||
{% endif %}
|
||||
{% if loop.last %}
|
||||
</ol><!-- /#posts-list -->
|
||||
{% if loop.length > 1 %}
|
||||
</ol><!-- /#posts-list -->
|
||||
{% endif %}
|
||||
{% if articles_page.has_previous() or loop.length > 1 %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
</section><!-- /#content -->
|
||||
{% if loop.length > 1 %}
|
||||
</section><!-- /#content -->
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue