From abf580866624bfeec53d948894ba02fe4ee307fd Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Wed, 22 Jan 2014 13:20:50 -0700 Subject: Added Zurb Foundation 5.0.1 theme. --- foundation-default-colours/templates/index.html | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 foundation-default-colours/templates/index.html (limited to 'foundation-default-colours/templates/index.html') diff --git a/foundation-default-colours/templates/index.html b/foundation-default-colours/templates/index.html new file mode 100644 index 0000000..7c8a6ad --- /dev/null +++ b/foundation-default-colours/templates/index.html @@ -0,0 +1,47 @@ +{% 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 %} + -- cgit