fix template block syntax
[django-migdal.git] / migdal / templates / migdal / entry / entry_detail.html
index c19b49b..5d7da3c 100644 (file)
@@ -3,11 +3,11 @@
 {% load fnp_common migdal_tags fnp_share %}
 
 
-{% block "titleextra" %}{{ entry.title }} :: {% endblock %}
-{% block "ogtitle" %}{{ entry.title }}{% endblock %}
-{% block "ogtype" %}article{% endblock %}
-{% block "ogdescription"%}{{ entry.lead|striptags|truncatewords:10 }}{% endblock %}
-{% block "ogimage" %}{% spaceless %}
+{% block titleextra %}{{ entry.title }} :: {% endblock %}
+{% block ogtitle %}{{ entry.title }}{% endblock %}
+{% block ogtype %}article{% endblock %}
+{% block ogdescription %}{{ entry.lead|striptags|truncatewords:16 }}{% endblock %}
+{% block ogimage %}{% spaceless %}
 {% if entry.image %}
     {{ entry.image.url|build_absolute_uri:request }}
 {% else %}
 {% endif %}
 {% endspaceless %}{% endblock %}
 
+{% block headextra %}
+    {% if entry.canonical_url %}<link rel="canonical" href="{{ entry.canonical_url }}"/>{% endif %}
+{% endblock %}
 
-{% block "body" %}
+
+{% block body %}
 
 {% if not entry.published %}
     <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
 {% entry_begin entry 1 %}
 <div class="body">
 {{ entry.body }}
+
+{% for inline_html in entry.inline_html %}
+<div class="inline_html">
+    {{ inline_html|safe }}
+</div>
+{% endfor %}
+
 </div>
 
 <div style="clear: both;"></div>