From 8efd54af2832c57b29f8d531f8ea4edee83156db Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Fri, 4 May 2018 15:45:25 +0200 Subject: [PATCH] laatste structuur element --- theme/wttf/templates/article.html | 1 + theme/wttf/templates/index.html | 6 +++++- theme/wttf/templates/tag.html | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/theme/wttf/templates/article.html b/theme/wttf/templates/article.html index ae46be5..307256e 100644 --- a/theme/wttf/templates/article.html +++ b/theme/wttf/templates/article.html @@ -29,4 +29,5 @@
{{ article.content }}
+ {% endblock %} diff --git a/theme/wttf/templates/index.html b/theme/wttf/templates/index.html index 73202d2..780e4fd 100644 --- a/theme/wttf/templates/index.html +++ b/theme/wttf/templates/index.html @@ -3,7 +3,6 @@ {% if articles %}
{% for article in articles_page.object_list %} - {# First item #} {% if loop.index <= 3 %} + {% if loop.index < 3 %} + {% if loop.last %} +
+ {% endif %} + {% endif %} {% if loop.index == 3 %}
diff --git a/theme/wttf/templates/tag.html b/theme/wttf/templates/tag.html index 65a99b5..c17cf1f 100644 --- a/theme/wttf/templates/tag.html +++ b/theme/wttf/templates/tag.html @@ -1,5 +1,2 @@ {% extends "index.html" %} -{% block content_title %} -

Articles in the {{ tag }} tag

-{% endblock %}