Update blog templates in an effort to make them XHTML1.1 compliant
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / blog_index.html
index 8e947484cce48345444dd20b4c9daf0e10e74535..a7ed4f1295cd30eca2b8ceb99b816bb7a25367b9 100644 (file)
@@ -5,7 +5,9 @@
     {% 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 +22,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> |
@@ -39,6 +41,7 @@
             {% if has_next %}
                 | <a href="?page={{ next }}">Next</a>
             {% endif %}
+            </p>
         {% endif %}
     {% else %}
         <p>We have no blog entries - that sucks!</p>