From 4eaa2a3da58e70108f46224f3625194616fa1404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Fri, 5 Oct 2012 15:16:00 +0200 Subject: [PATCH] don't display the category more than one time in a raw --- theme/templates/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/theme/templates/index.html b/theme/templates/index.html index 2c7a0e2..bfad386 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -4,10 +4,14 @@ {% if articles %}
    + {% set category = None %} {% for article in articles_page.object_list %}
  1. - {{ article.category }} + {% if article.category.name != category %} + {{ article.category }} + {% set category = article.category.name %} + {% endif %}

    {{ article.title }}