webseite/templates/blog.html

38 lines
1.2 KiB
HTML
Raw Normal View History

2018-02-25 00:06:19 +01:00
{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% from "macros/pagination.html" import render_pagination %}
2019-02-12 17:45:44 +01:00
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
<!-- Main Blog -->
<div id="main" class="wrapper style1">
<div class="container">
<header class="major">
<h2>{{ this.title }}</h2>
2019-02-12 23:52:50 +01:00
<p>{{ this.description }}</p>
2019-02-12 17:45:44 +01:00
</header>
<center>
<a href="{{ this.link|url }}" class="button primary fit" >{{ this.spruch }}
<i class="fas fa-rss iconshift-right-8" ></i>
</a>
</center>
<section id="content">
2018-02-25 00:06:19 +01:00
{% for child in this.pagination.items %}
{{ render_blog_post(child, from_index=true) }}
{% endfor %}
2019-02-12 17:45:44 +01:00
<center>
2018-02-25 00:06:19 +01:00
{{ render_pagination(this.pagination) }}
2019-02-12 17:45:44 +01:00
<center>
</section>
</div>
</div>
2018-02-25 00:06:19 +01:00
{% endblock %}
2019-02-12 23:52:50 +01:00
{% block expand_description %}
<meta name="description" content="{%
if this.description %}{{ this.description }}{% else %}{%
if bag('translate', this.alt, 'description') %}{{ bag('translate', this.alt, 'description') }}{%
else %}{{ bag('translate', 'de', 'description') }}{% endif %}
{% endif %}" />
{% endblock %}