real fix to blog title
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / single_entry_rst.html
index 5681e14e28a3475b1603ccc342b934220b3df269..2fa2af2a9bca92a1c25c30f96454ade1de8d2a28 100644 (file)
@@ -2,7 +2,30 @@
 
 {% load markup %}
 
+{% block title %}
+{{ entry.title }}
+{% endblock %}
+
 {% block content %}
-<h1>{{ title }}</h1>
-{{ content|restructuredtext }}
+<h1>{{ entry.title }}</h1>
+<div class="blogentry">
+{{ entry.content|restructuredtext }}
+</div>
+<p>Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} 
+    {% if entry.sections.count %}
+    in 
+    {% for section in entry.sections.all %}
+        {% if forloop.first %}
+            <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>{% if not forloop.last %}, {% endif %}
+        {% else %}
+            {% if forloop.last %}
+                and <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>
+            {% else %}
+                <a href="{{ section.get_abolute_url }}">{{ section.title }}</a>
+            {% endif %}
+        {% endif %}
+    {% endfor %}
+    {% endif %}
+    <a href="{{ entry.get_absolute_url }}">permalink</a>
+</p>
 {% endblock %}