{% load wagtailcore_tags %} {% with details=page.specific.detail.specific %}

{# details may be None, so be more verbose in the handling of the title #} {% if page.title %} {{ page.title }} {% else %} {{ details.listing_title|default:details.title }} {% endif %}

{% if details.listing_summary or details.introduction %}
{{ details.listing_summary|default:details.introduction|truncatechars_html:155 }}
{% endif %} {% if details %} More info... {% endif %} Apply
{% endwith %}