37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
{% extends "page.html" %}
|
|
|
|
{% block content_all%}
|
|
|
|
{% block content_header %}
|
|
{{ super.super() }}
|
|
{% endblock content_header %}
|
|
|
|
{% block content_body %}
|
|
{% from 'includes/macros.html' import ci %}
|
|
{% set news = articles | selectattr("category", "==", "Neues") | list | sort(reverse=true, attribute="date") %}
|
|
{% for n in news %}
|
|
<article class="news">
|
|
<div class="wcard" style="flex-direction: {{ loop.cycle('row', 'row-reverse') }};">
|
|
<div class="news-item">
|
|
<h3><a href="{{ SITEURL }}/{{ n.url }}" title="{{ n.title }}">{{ n.title }}</a></h3> <p>{{ n.summary }}</p>
|
|
<p><a href="{{ n.url }}">Weiterlesen →</a></p>
|
|
</div>
|
|
<div class="wcard-title">
|
|
{% if n.featured_image %}
|
|
{% set i = n.featured_image[0] %}
|
|
{{ ci(i.pic, SITEURL + "/" + n.url, i.text, i.alt, i.credit, i.credit_link) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<footer>veröffentlicht am {{ n.date | strftime("%d.%m.%y") }}</footer>
|
|
</article>
|
|
{% endfor %}
|
|
{% endblock content_body %}
|
|
|
|
{% block content_footer %}
|
|
<footer class="content-footer">
|
|
<a href="/">← zur Startseite</a>
|
|
</footer>
|
|
{% endblock content_footer %}
|
|
|
|
{% endblock content_all%} |