diff --git a/themes/cwi/templates/index.html b/themes/cwi/templates/index.html new file mode 100644 index 0000000000000000000000000000000000000000..c8982476ca261848dff22e1dd0ac8a97cac9f0fc --- /dev/null +++ b/themes/cwi/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 %}