{% load static wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags %} {# TODO fallbacks if page is not defined e.g. for 404 page #} {% block title_prefix %}{{ TITLE_PREFIX }}{% endblock %}{% block title %}{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}{% endblock %}{% block title_suffix %}{{ TITLE_SUFFIX }}{% endblock %} {% if GOOGLE_TAG_MANAGER_ID %} {# To enable GTM code you need to specify GOOGLE_TAG_MANAGER_ID in production.py or in local.py #} {% endif %} {% comment %} Generate favicons by http://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 %} {% if GOOGLE_TAG_MANAGER_ID %} {# To enable GTM code you need to specify GOOGLE_TAG_MANAGER_ID in production.py or in local.py #} {% endif %} {% include "includes/sprites.html" %} {% wagtailuserbar %} {% if page.header_image %} {% image page.header_image fill-2560x410 as header_image %}
{% else %}
{% endif %}
Menu
{% primarynav %}
{% primarynav %}

{{ page.title }}

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