flex/templates/archives.html

28 lines
635 B
HTML
Raw Permalink Normal View History

2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
2020-04-20 23:36:36 +02:00
{% block title %} – {{ _('Archives') }}{% endblock %}
2015-07-19 02:04:01 +02:00
{% block content %}
<article class="single">
2015-07-19 02:04:01 +02:00
<header>
<h1 id="archives">{{ _('Archives') }}</h1>
2015-07-19 02:04:01 +02:00
</header>
<div>
<dl>
{% set previous_date = False %}
2020-04-20 23:36:36 +02:00
2015-07-19 02:04:01 +02:00
{% for article in dates %}
2016-02-10 01:48:38 +01:00
{% 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>
2015-07-19 02:04:01 +02:00
{% endfor %}
</dl>
</div>
</article>
{% endblock %}