diff --git a/theme/wttf/templates/index.html b/theme/wttf/templates/index.html index ab4bc34..4cd27fe 100644 --- a/theme/wttf/templates/index.html +++ b/theme/wttf/templates/index.html @@ -1,28 +1,81 @@ {% extends "base.html" %} {% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + {# First item #} + {% if loop.index <= 3 %} + + {% if loop.index == 3 %} +
+

Other articles

+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first %} +
    +
      + {% endif %} +
    1. + +
    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 %} +{% else %} +
    +

    Pages

    + {% for page in pages %} +
  1. {{ page.title }}
  2. + {% endfor %} +
    +{% endif %} +{% endblock content %} +
    {% block content_title %}

    All articles

    {% endblock %} -
      -{% for article in articles_page.object_list %} -
    1. -

      {{ article.title }}

      -
      - -
      By - {% for author in article.authors %} - {{ author }} - {% endfor %} -
      -
      -
      {{ article.summary }}
      -
    2. -{% endfor %} -
    -{% if articles_page.has_other_pages() %} - {% include 'pagination.html' %} -{% endif %} -
    -{% endblock content %}