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

24 lines
674 B
HTML

{% extends "base.html" %}
{% block content_body %}
{% for p in pages if p.title == "Index" %}
{% set lr = cycler("row", "row-reverse") %}
{% if p.featured is defined %}
<div class="index-featured"></div>
{% endif %}
{% from 'includes/featured_image.html' import fi %}
{% for e in p.elements %}
<div class="index" style="flex-direction: {{ lr.next() }};">
{{ fi(e.pic, e.link, e.text, e.credit) }}
<p>
{{ e.text }}<br />
<span class="index-link">
<a href="{{ e.link }}">{{ e.more }}</a>
</span>
</p>
</div>
{% endfor %}
{% endfor %}
{% include "includes/subscribe.html" %}
{% include "includes/unsubscribe.html" %}
{% endblock content_body %}