t-r.de/theme/templates/index.html

31 lines
851 B
HTML

{% extends "page.html" %}
{% block title %}{{ SITENAME }}, {{ SITESUBTITLE }}{% endblock %}
{% block content_header %}
{% endblock content_header %}
{% block content_all %}
{% for p in pages if p.title == "Startseite" %}
{% if p.featured_news %}
{% set fn = p.featured_news %}
<section class="index-featured-news">
<h3><a href="{{ fn.link }}">+++ {{ fn.text}} +++</a></h3>
</section>
{% endif %}
{% set lr = cycler("row-reverse", "row") %}
{% from 'includes/macros.html' import fi %}
{% for i in p.index_cards %}
<section class="index" style="flex-direction: {{ lr.next() }};">
{{ fi( i.pic, i.link, i.alt, i.title, i.credit, i.credit_link) }}
<p><a class="index-link" href="{{ i.link }}">{{ i.alt }}</a></p>
</section>
{% endfor %}
{% endfor %}
{% include "includes/subscribe_form.html" %}
{% endblock content_all %}