webseite/templates/blog.html

33 lines
1013 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 %}
2021-02-24 23:44:49 +01:00
{%- block title -%}{{ this.title }}{%- endblock -%}
{%- block meta_description -%}
{%- if this.meta_description is defined and this.meta_description != "" -%}
{{ this.meta_description }}
{%- else -%}
Werkkooperative der Technikfreundinnen eG
{%- endif -%}
{%- endblock -%}
2021-02-21 17:03:49 +01:00
{% block body %}
<div class="content__box">
<div class="content__inner_box">
<h1>{{ this.title }}</h1>
</div>
</div>
2021-03-08 10:43:00 +01:00
<section class="content -odd -columns">
<div class="content__box">
<div class="content__inner_box">
{{ this.body }}
</div>
</div>
</section>
2021-02-21 17:03:49 +01:00
{% for blog_post in this.pagination.items %}
{{ render_blog_post(blog_post, from_index=true, section_class=loop.cycle('-odd', '-even')) }}
{% endfor %}
2021-03-21 16:53:00 +01:00
<section>
{{ render_pagination(this.pagination, true) }}
</section>
2021-02-21 17:03:49 +01:00
{% endblock %}