webseite/templates/blog.html

18 lines
621 B
HTML
Raw Normal View History

2021-02-21 17:03:49 +01:00
{% extends "header_slim.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% from "macros/pagination.html" import render_pagination %}
{% block body %}
<div class="content__box">
<div class="content__inner_box">
<h1>{{ this.title }}</h1>
</div>
</div>
{% 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 %}
{% endblock %}