{% load wagtailcore_tags wagtailimages_tags %} {% if page.image %}
{% picture page.image format-{avif,webp,jpeg} fill-{800x650,1920x600} sizes="100vw" class="hero-image" alt="" %}

{{ page.title }}

{% else %}

{{ page.title }}

{% endif %}