{% for field in form %}
{% if not field.is_hidden %}
<tr
- {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {% if field.name = "honeypot" %} style="display:none;"{% endif %}>
<th>{{ field.label_tag }}
</th><td>
{% if field.errors %}<p class="error">{{ field.errors }}</p>{% endif %}
{% 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:16 }}{% 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" %}
+{% 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>