{% extends "base.html" %}
{% block head %}
<title>{{ settings.SITENAME }}</title>
{% endblock %}
{% block content %}
    <div class="index archive">
    {% for item in items %}
        {% ifchanged item.week %}
        <h2 class="week">{{ item.year }} week {{ item.week }}</h2>
        {% endifchanged %}
        {% include "listitem.html" with item=item %}
    {% endfor %}
    {% if archive %}
    <div class="archive">
        <a href="{{ archive }}">previous weeks</a>
    </div>
    {% endif %}
    </div>
{% endblock %}