From 06aeefe5b9f9120b5594654cb52175b1066d25cd Mon Sep 17 00:00:00 2001 From: skami Date: Sat, 19 Feb 2011 12:56:18 +0100 Subject: Added pagination --- lightweight/static/css/main.css | 17 +++++++++++++++++ lightweight/templates/index.html | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) (limited to 'lightweight') diff --git a/lightweight/static/css/main.css b/lightweight/static/css/main.css index eed184e..6f9086d 100644 --- a/lightweight/static/css/main.css +++ b/lightweight/static/css/main.css @@ -184,6 +184,10 @@ div#page { width: 75%; border-right: 1px solid grey; } + section#content img { + max-width: 98%; + max-height: 98%; + } section#content article.post { margin: 10px; @@ -228,6 +232,19 @@ div#page { text-align: center; } + #content>nav.pagination { + width: 100%; + //font-weight: bolder; + font-size: 14px; + font-family: 'Goudy Bookletter 1911'; + border-top: 1px solid grey; + text-align: center; + } + nav.pagination a { + text-decoration: none; + font-weight: bolder; + } + aside#sidebar { float: right; width: 24%; 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