Actually add comments to blog, tidy up rst handling to make sure we get xhtml1.1...
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / blog_index.html
index f7f3ab0373d0a588f7734cfe1281e5ec6dda6db7..672780400c4bee6e527f23ae6c8c1a57aae8d7b2 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% load xhtml11rst %}
+{% load comments %}
 
 {% block extrahead %}
 <link rel="alternate" type="application/atom+xml" title="iDunno's Blog - Atom Feed" href="{{ BLOG_FEED_ROOT }}/blog/" />
@@ -25,7 +26,8 @@
                         {% endif %}
                     {% endif %}
                 {% endfor %}
-                <a href="{{ entry.get_absolute_url }}">permalink</a></p>
+                {% get_comment_count for entry as comment_count %}
+                <a href="{{ entry.get_absolute_url }}">permalink</a> | <a href="{{ entry.get_absolute_url }}#comments">Comments</a>: {{ comment_count }}</p>
         {% endfor %}
         {% if paginated and has_more_than_one_page %}
             <p class="paginator">Pages: