{% extends "blog_base.html" %} {% block content %} {# Overwrite the content block from blog_base.html #} {% for entry in blog %} {# Iterate over the blog entries #}
{% ifnotequal page 0 %} {# We are not on the first page #} Previous page {% endifnotequal %} {% ifnotequal page pages %} {# We are not on the last page #} Next page {% endifnotequal %}
{% endblock %} {% block morecss %} {# Add some more stylesheets #} .blog_entry_title { color:#1F20AF; font-weight:bold; font-size:1.5em; margin-top:25px; } .blog_entry_small { font-size:0.8em; color:grey; } .blog_entry_text { padding-left:10px; } .morelink { display:block; text-align:right; font-size:0.7em; } {% endblock %}