{% load static cache wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags cookieconsent_tags %} {% wagtail_site as current_site %} {# TODO fallbacks if page is not defined e.g. for 404 page #} {% block title_prefix %}{% if current_site.site_name %}{{ current_site.site_name }} | {% endif %}{% endblock %}{% block title %}{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}{% endblock %}{% block title_suffix %}{{ TITLE_SUFFIX }}{% endblock %} {% block feedlinks %}{% endblock %} {% comment %} Generate favicons by https://realfavicongenerator.net using the following path: settings.STATIC_URL + images/favicons. Override favicons by adding them to public/images/favicons. {% endcomment %} {% if page.social_image %} {% image page.social_image width-320 as social_img %} {% else %} {% endif %} {% if page.social_image %} {% else %} {% endif %} {% block extra_css %}{% endblock %} {% if COOKIES_ACCEPTED and MATOMO_URL and MATOMO_SITEID %} {# we are only expecting strings, so make sure we escape the values #} {% endif %} {% include "includes/sprites.html" %} {% wagtailuserbar %} {% include 'includes/messages.html' %} {% block header %} {% if page.header_image %} {% image page.header_image fill-2560x410 as header_image %} {% elif page.get_parent.specific.header_image %} {% image page.get_parent.specific.header_image fill-2560x410 as header_image %} {% endif %}
{% block apply_button %} {% include "includes/apply_button.html" %} {% endblock %}
{% if settings.utils.SystemMessagesSettings.site_logo_default %} {% image settings.utils.SystemMessagesSettings.site_logo_default width-215 as logo_default %} {% if settings.utils.SystemMessagesSettings.site_logo_mobile %} {% image settings.utils.SystemMessagesSettings.site_logo_mobile width-60 as logo_mobile %} {% else %} {% endif %} {% else %} {% endif %}
{% cache 3600 navigation__primary current_site %} {% primarynav %} {% endcache %}
{% cache 3600 navigation__primary current_site %} {% primarynav %} {% endcache %}
{% include "utils/includes/login_button.html" %}
{% block breadcrumbs %} {% include "navigation/breadcrumbs.html" %} {% endblock %}

{% block page_title %}{{ page.title }}{% endblock %}

{% endblock %}
{% block content %}{% endblock %}
{% cookie_banner %} {% block extra_js %}{% endblock %}