flex/templates/archives.html

23 lines
556 B
HTML
Raw Normal View History

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