Lots of changes to fix lots of bugs and add comments to blog
[sommitrealweird.git] / sommitrealweird / blog / templates / blog / single_entry_rst.html
1 {% extends "base.html" %}
2
3 {% load xhtml11rst %}
4
5 {% block content %}
6 <h1>{{ entry.title }}</h1>
7 <div class="blogentry">
8 {{ entry.content|restructuredtext }}
9 </div>
10 <p>Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} 
11     {% if entry.sections.count %}
12     in 
13     {% for section in entry.sections.all %}
14         {% if forloop.first %}
15             <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>{% if not forloop.last %}, {% endif %}
16         {% else %}
17             {% if forloop.last %}
18                 and <a href="{{ section.get_absolute_url }}">{{ section.title }}</a>
19             {% else %}
20                 <a href="{{ section.get_abolute_url }}">{{ section.title }}</a>
21             {% endif %}
22         {% endif %}
23     {% endfor %}
24     {% endif %}
25     <a href="{{ entry.get_absolute_url }}">permalink</a>
26 </p>
27 {% endblock %}