flex/templates/archives.html

23 lines
606 B
HTML
Raw Normal View History

2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
{% 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 %}
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 %}
2015-07-19 02:04:01 +02:00
<dt>{{ article.locale_date }}</dt>
{% endif %}
2015-07-19 02:04:01 +02:00
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
</div>
</article>
{% endblock %}