podcast-webseite/templates/blog.html
2019-05-25 21:57:41 +02:00

37 lines
1.2 KiB
HTML

{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% from "macros/pagination.html" import render_pagination %}
{% 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>
<p>{{ this.description }}</p>
</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">
{% for child in this.pagination.items %}
{{ render_blog_post(child, from_index=true) }}
{% endfor %}
<center>
{{ render_pagination(this.pagination) }}
<center>
</section>
</div>
</div>
{% endblock %}
{% 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 %}