include week in archive view

This commit is contained in:
j 2023-08-16 17:58:28 +02:00
commit 5c4cc4e7b2
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,9 @@
{% extends "base.html" %}
{% block content %}
{% for item in items %}
{% ifchanged item.week %}
<h2>{{ item.year }} week {{ item.week }}</h2>
{% endifchanged %}
{% include "listitem.html" with item=item %}
{% endfor %}
{% endblock %}