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:
Mario Lang 2014-02-12 12:42:27 +01:00
commit 828e7bcb4c

View file

@ -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 %}