{% extends "patterns/base.html" %} {% load static wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags %} {% block meta_tags %} {% if GOOGLE_TAG_MANAGER_ID and not request.in_preview_panel %} {% endif %} {# favicons #} {% block branding_favicon %} {% endblock %} {% comment %} Generate favicons by http://realfavicongenerator.net and select the option to serve files up from the root of the site. Place all the files generated by realfavicon generator in the "public" folder in the application root, and they will be served up from the root of the site by whitenoise. {% endcomment %} {% comment %} Twitter summary card - see https://dev.twitter.com/cards/types/summary and https://dev.twitter.com/cards/getting-started {% endcomment %} {% wagtail_site as current_site %} {% social_media_settings as social_media_settings %} {% if page.social_image or page.feed_image or page.hero_image %} {% if page.social_image %} {% image page.social_image width-1000 as social_img %} {% elif page.feed_image %} {% image page.feed_image width-1000 as social_img %} {% elif page.hero_image %} {% image page.hero_image width-1000 as social_img %} {% endif %} {# This will give a full path to the image when on staging or production because S3 storage is used. If testing locally, make sure you use the default localhost:8000 url. Testing via :3000 will give peculiar results. #} {% if social_img.alt %} {% endif %} {% else %} {% comment %} An example of how to add a default image to use for social sharing in case one is not provided on the page. Note that you need to explicitly add the root url here as the static path will not include it {% endcomment %} {% endif %} {# facebook opengraph tags #} {% if social_media_settings.facebook_app_id %} {% endif %} {% if page %} {% endif %} {% if page.social_image or page.feed_image or page.hero_image %} {% if page.social_image %} {% image page.social_image fill-1200x630 as social_img %} {% elif page.feed_image %} {% image page.feed_image fill-1200x630 as social_img %} {% elif page.hero_image %} {% image page.hero_image fill-1200x630 as social_img %} {% endif %} {# This will give a full path to the image when on staging or production because S3 storage is used. If testing locally, make sure you use the default localhost:8000 url. Testing via :3000 will give peculiar results. #} {% else %} {% comment %} An example of how to add a default image to use for social sharing in case one is not provided on the page. Note that you need to explicitly add the root url here as the static path will not include it {% endcomment %} {% endif %} {% endblock meta_tags %} {% block body_top %} {% if GOOGLE_TAG_MANAGER_ID and not request.in_preview_panel %} {# To enable GTM code you need to specify GOOGLE_TAG_MANAGER_ID in Django settings #} {% endif %} {% endblock body_top %} {% block header %} {% include "patterns/atoms/skip-link/skip-link.html" %} {% include "patterns/organisms/header/header.html" with show_primary_nav=True %} {% include "patterns/atoms/menu-button/menu-button.html" %} {% include "patterns/molecules/navigation/mobile-nav.html" %} {% endblock header %} {% block footer %} {% include "patterns/organisms/footer/footer.html" %} {% endblock footer %}