fix missing </ol> and </section> tags

This commit is contained in:
Bruno Binet 2012-03-30 14:20:55 +02:00
commit 64e12b1809

View file

@ -19,7 +19,7 @@
<section id="content" class="body"> <section id="content" class="body">
<h1>Other articles</h1> <h1>Other articles</h1>
<hr /> <hr />
<ol id="posts-list" class="hfeed"> <ol id="posts-list" class="hfeed">
{% endif %} {% endif %}
{# other items #} {# other items #}
{% else %} {% else %}
@ -44,17 +44,17 @@
or not articles_page.has_previous() and loop.length > 1) %} or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %} {% include 'pagination.html' %}
{% endif %} {% endif %}
{% endfor %} {% if loop.last %}
{% if loop.length > 1 or articles_page.has_previous() %} </ol><!-- /#posts-list -->
</ol><!-- /#posts-list --> </section><!-- /#content -->
</section><!-- /#content --> {% endif %}
{% endif %} {% endfor %}
{% else %} {% else %}
<section id="content" class="body"> <section id="content" class="body">
<h2>Pages</h2> <h2>Pages</h2>
{% for page in PAGES %} {% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %} {% endfor %}
</section> </section>
{% endif %} {% endif %}
{% endblock content %} {% endblock content %}