flex/templates/period_archives.html

25 lines
600 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
{% block title %} – {{ _('Archives') }}{% endblock %}
{% block content %}
2022-07-09 00:19:52 +02:00
<article>
<header>
<h1 id="archives">{{ _('Archives') }}</h1>
</header>
<div>
<dl>
{% set previous_date = False %}
2020-04-20 23:36:36 +02:00
{% for article in dates %}
{% if article.locale_date != previous_date %}
{% set previous_date = article.locale_date %}
2020-04-20 23:36:36 +02:00
<dt>{{ article.locale_date }}</dt>
{% endif %}
2020-04-20 23:36:36 +02:00
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
</div>
</article>
{% endblock %}