flex/templates/archives.html

23 lines
605 B
HTML
Raw Normal View History

2015-07-19 02:04:01 +02:00
{% extends "base.html" %}
{% block title %} – {% trans %}Archives{% endtrans %}{% endblock %}
2015-07-19 02:04:01 +02:00
{% block content %}
<article>
<header>
<h1>{% trans %}Archives{% endtrans %}</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 %}