{% load wagtailcore_tags %} {% with details=page.specific.detail.specific %} {% if page.specific.open_round %}
Next deadline: {{ details.deadline|date:"M j, Y" }}
{% endif %} {# details may be None, so be more verbose in the handling of the title #} {% if page.title %} {% if details %} {% endif %} {{ page.title }} {% if details %} {% endif %} {% else %} {% if details %} {% endif %} {{ details.listing_title|default:details.title }} {% if details %} {% endif %} {% endif %} {% if details.listing_summary or details.introduction %}