small fixes
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / blog_index.html
index e43cc647ac523eea114abaeacc4678e49c8b2159..fa2ea726038314bf9ef7d35ca55d56084b3e5148 100644 (file)
@@ -1,11 +1,17 @@
 {% extends "base.html" %}
 {% load markup %}
 
+{% block title %}
+{{ entry.title|escape }}
+{% endblock %}
+
 {% block content %}
     {% if entries %}
         {% for entry in entries %}
             <h1>{{ entry.title|escape }}</h1>
+            <div class="blogentry">
             {{ entry.content|restructuredtext }}
+            </div>
             <p>Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} in 
                 {% for section in entry.sections.all %}
                     {% if forloop.first %}
@@ -20,7 +26,7 @@
                 {% endfor %}
                 <a href="{{ entry.get_absolute_url }}">permalink</a></p>
         {% endfor %}
-        {% if paginated %}
+        {% if paginated and has_more_than_one_page %}
             <p class="paginator">Pages: 
             {% if has_prev %}
                 <a href="?page={{ prev }}">Previous</a> |