diff --git a/themes/notmyidea-custom/templates/index.html b/themes/notmyidea-custom/templates/index.html index 14e9c14..3ec3009 100644 --- a/themes/notmyidea-custom/templates/index.html +++ b/themes/notmyidea-custom/templates/index.html @@ -4,49 +4,32 @@ {% 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 %} -
    -
      - {% endif %} -
    1. -
      -

      {{ article.title }}

      -
      - -
      - {% include 'article_infos.html' %} - {{ article.summary }} - read more - {% include 'comments.html' %} -
      -
    2. + {% if loop.first %} +
      +
        {% endif %} - {% if loop.last %} - {% if loop.length > 1 or articles_page.has_other_pages() %} -
      - {% if articles_page.has_other_pages() %} - {% include 'pagination.html' %} - {% endif %} -
      +
    3. +
      +

      {{ article.title }}

      +
      + +
      + {% include 'article_infos.html' %} + {{ article.summary }} + read more + {% include 'comments.html' %} +
      +
    4. + {% 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 %}