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