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