{# 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 + img/favicons.
Then favicon.ico should be copied to a directory called "public" in the application root and puppet does some magic to serve it up at the site root.
{% 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 %}
{% 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 %}