fix errors in templates

This commit is contained in:
bkfox 2016-07-25 01:16:32 +02:00
parent 52814c1c5b
commit 62380c054d
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,9 @@
{% else %}
{# detail view #}
<div class="content">
{% if page.cover %}
<img class="cover" src="{{ page.cover.file.url }}">
{% endif %}
<div class="body">
{{ page.body|richtext}}
</div>
@ -54,7 +56,7 @@
{% include "cms/snippets/list_item.html" %}
{% endwith %}
{% else %}
{{ page.owner }}
{{ page.owner|default:'' }}
{% endif %}
</div>
<time datetime="{{ page.specific.date }}">

View File

@ -10,7 +10,7 @@
{% include "cms/snippets/list.html" %}
{% if url %}
<nav><a href="{{ url }}">{{ self.url_text }}</nav>
<nav><a href="{{ url }}">{{ self.url_text }}</a></nav>
{% endif %}
{% endblock %}