From 432285bda8a96f0e5bdff52d4d726ad2397b3ac8 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Sun, 23 Oct 2016 22:38:55 +0200 Subject: initial approach for new flug website --- theme/templates/index.html | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 theme/templates/index.html (limited to 'theme/templates/index.html') diff --git a/theme/templates/index.html b/theme/templates/index.html new file mode 100644 index 0000000..c898247 --- /dev/null +++ b/theme/templates/index.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + + {# First item #} + {% if loop.first and not articles_page.has_previous() %} + + {% if loop.length > 1 %} +
+

Other articles

+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first and articles_page.has_previous %} +
    +
      + {% endif %} +
    1. +
      +

      {{ article.title }}

      +
      + +
      + {% include 'article_infos.html' %} + {{ article.summary }} + read more + {% include 'comments.html' %} +
      +
    2. + {% endif %} + {% if loop.last %} + {% if loop.length > 1 %} +
    + {% endif %} + {% if articles_page.has_previous() or loop.length > 1 %} + {% include 'pagination.html' %} + {% endif %} + {% if loop.length > 1 %} +
    + {% endif %} + {% endif %} + {% endfor %} +{% else %} +
    +

    Pages

    + {% for page in PAGES %} +
  1. {{ page.title }}
  2. + {% endfor %} +
    +{% endif %} +{% endblock content %} -- cgit v1.2.3