site_opytex/theme/templates/period_archives.html

23 lines
592 B
HTML
Raw Permalink Normal View History

2019-07-18 10:43:36 +00:00
{% extends "base.html" %}
{% block title %} – {{ _('Archives') }}{% endblock %}
{% block content %}
<article class="single">
<header>
<h1>{{ _('Archives') }}</h1>
</header>
<div>
<dl>
{% set previous_date = False %}
{% for article in dates %}
{% if article.locale_date != previous_date %}
{% set previous_date = article.locale_date %}
<dt>{{ article.locale_date }}</dt>
{% endif %}
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
</div>
</article>
{% endblock %}