diff --git a/theme/wttf/templates/index.html b/theme/wttf/templates/index.html index 4cd27fe..eee9323 100644 --- a/theme/wttf/templates/index.html +++ b/theme/wttf/templates/index.html @@ -1,75 +1,92 @@ {% 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. -
      -
      -

      - {{ article.title }} -

      - -
      + {% 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. +
          +
          +

          + {{ article.title }} +

          +
          + A + + about + + published on + +
          +
          -
          -

          {{ 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 %} +
        +

        {{ 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 %} {% else %}

    Pages

    - {% for page in pages %} -
  1. {{ page.title }}
  2. - {% endfor %} + {% for page in pages %} +
  3. {{ page.title }}
  4. + {% endfor %}
    {% endif %} {% endblock content %} diff --git a/theme/wttf/templates/tag.html b/theme/wttf/templates/tag.html index e69de29..65a99b5 100644 --- a/theme/wttf/templates/tag.html +++ b/theme/wttf/templates/tag.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +

    Articles in the {{ tag }} tag

    +{% endblock %} +