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

24 lines
678 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 c in p.index_cards %}
<div class="index" style="flex-direction: {{ lr.next() }};">
{{ fi( c.pic, c.link, c.text, c.credit) }}
<p>
{{ c.text }}<br />
<span class="index-link">
<a href="{{ c.link }}">{{ c.more }}</a>
</span>
</p>
</div>
{% endfor %}
{% endfor %}
{% include "includes/subscribe.html" %}
{% include "includes/unsubscribe.html" %}
{% endblock content_body %}