From 06aeefe5b9f9120b5594654cb52175b1066d25cd Mon Sep 17 00:00:00 2001 From: skami Date: Sat, 19 Feb 2011 12:56:18 +0100 Subject: Added pagination --- lightweight/templates/index.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'lightweight/templates/index.html') diff --git a/lightweight/templates/index.html b/lightweight/templates/index.html index d5879bd..9f8c568 100644 --- a/lightweight/templates/index.html +++ b/lightweight/templates/index.html @@ -3,7 +3,7 @@ {% block content %} {% if articles %} - {% for article in articles %} + {% for article in (articles_page.object_list if articles_page else articles) %}

{{ article.title }}

{%include 'meta.html'%} @@ -14,5 +14,22 @@
{% endfor %} + + {% if articles_page %} + + {% endif%} + {% endif %} {% endblock %} -- cgit