Reformat blog links a bit
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / blog_index.html
index e43cc647ac523eea114abaeacc4678e49c8b2159..8a38afb8744e24eb136091e41cefc13735e3dd6f 100644 (file)
@@ -1,11 +1,19 @@
 {% extends "base.html" %}
-{% load markup %}
+{% load xhtml11rst %}
+{% load comments %}
+
+{% block extrahead %}
+<link rel="alternate" type="application/atom+xml" title="iDunno's Blog - Atom Feed" href="{{ BLOG_FEED_ROOT }}/blog/" />
+<link rel="alternate" type="application/rss+xml" title="iDunno's Blog - RSS Feed" href="{{ BLOG_FEED_ROOT }}/blog/rss/" />
+{% 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 %}
                         {% 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 %}
+        {% if paginated and has_more_than_one_page %}
             <p class="paginator">Pages: 
             {% if has_prev %}
                 <a href="?page={{ prev }}">Previous</a> |