{% load wagtailimages_tags %} {% comment %} Hero text {% endcomment %} {% if page.hero_text and not page.hero_image %}

{{ page.hero_heading }}

{{ page.hero_text }}

{% comment %} Hero Image + text {% endcomment%} {% elif page.hero_text and page.hero_image %} {% image page.hero_image width-1000 as himage %}

{{ page.hero_heading }}

{{ page.hero_text }}

{% comment %} Hero Image only {% endcomment %} {% elif not page.hero_text and page.hero_image %} {% image page.hero_image width-1000 as himage %}
{% endif %}