Moved pagination below last blog post.

This commit is contained in:
Stephan 2021-03-21 16:53:00 +01:00
parent d12abd3480
commit 57ab745701
1 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@
</section>
{% for blog_post in this.pagination.items %}
{{ render_blog_post(blog_post, from_index=true, section_class=loop.cycle('-odd', '-even')) }}
{% if loop.index == loop.length %}
{{ render_pagination(this.pagination, loop.length is odd) }}
{% endif %}
{% endfor %}
<section>
{{ render_pagination(this.pagination, true) }}
</section>
{% endblock %}