{% extends "base.html" %} {% block content %} {# show summaries of the latest articles #} {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}

{{ article.title }}

Written by {{ article.author }} {% if article.category %}in {{ article.category}} {% endif %}on {{ article.locale_date }}.{% if article.tags|count > 0 %} Tags: {% for tag in article.tags %}{{ tag }}, {% endfor %}{% endif %}
{{ article.content if FOUNDATION_FRONT_PAGE_FULL_ARTICLES else article.summary }} {% if not FOUNDATION_FRONT_PAGE_FULL_ARTICLES %} {# add a 'Continue reading' link if we're displaying summaries #}

Continue reading »

{% endif %}

{% endfor %} {%endif%} {# deal with pagination #} {% if articles_page and articles_paginator.num_pages > 1 %}
    {% if articles_page.has_previous() %} {% set num = articles_page.previous_page_number() %}
  • ← Previous
  • {% else %}
  • ← Previous
  • {% endif %} {% for num in range( 1, 1 + articles_paginator.num_pages ) %}
  • {{ num }}
  • {% endfor %} {% if articles_page.has_next() %}
  • Next →
  • {% else %}
  • → Next
  • {% endif %}
{% endif %} {% endblock %}