From 154e85d41b9f472b0e9b37f115603af58923c372 Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Fri, 4 May 2018 14:23:33 +0200 Subject: [PATCH] changed structure to header content list footer --- theme/wttf/templates/index.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/theme/wttf/templates/index.html b/theme/wttf/templates/index.html index 12702ef..e48c547 100644 --- a/theme/wttf/templates/index.html +++ b/theme/wttf/templates/index.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block content %} {% if articles %} -
+
{% for article in articles_page.object_list %} {# First item #} {% if loop.index <= 3 %} @@ -28,8 +28,9 @@
{{ article.content }}
- + {% if loop.index == 3 %} +

Other articles


@@ -38,7 +39,8 @@ {# other items #} {% else %} {% if loop.first %} -
+
+
    {% endif %}
  1. @@ -68,21 +70,20 @@

    {{ article.summary }}

    read more -
    +
  2. {% endif %} {% if loop.last %} {% if loop.length > 1 or articles_page.has_other_pages() %} - + {% if articles_page.has_other_pages() %} {% include 'pagination.html' %} {% endif %} -
+
{% endif %} {% endif %} {% endfor %} -
{% endif %} {% endblock content %}