{% load static wagtailuserbar wagtailcore_tags wagtailsettings_tags wagtailimages_tags coderedcms_tags %} {% get_settings %} {% block tracking %} {% if settings.coderedcms.AnalyticsSettings.ga_tracking_id %} {% endif %} {% endblock %} {# HTML SEO #} {% block html_seo_base %} {% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %}{% block title_suffix %}{% if not self.seo_title %} - {{request.site.site_name}}{% endif %}{% endblock %} {% endblock %} {% block html_seo_extra %}{% endblock %} {# Open Graph SEO #} {% if settings.coderedcms.SeoSettings.og_meta %} {% block og_seo_base %} {% endblock %} {% block og_seo_extra %}{% endblock %} {% endif %} {# Twitter SEO #} {% if settings.coderedcms.SeoSettings.twitter_meta %} {% block twitter_seo_base %} {% if settings.coderedcms.SocialMediaSettings.twitter %} {% endif %} {% endblock %} {% block twitter_seo_extra %}{% endblock %} {% endif %} {% block frontend_assets %} {% if settings.coderedcms.LayoutSettings.frontend_theme %} {% else %} {% endif %} {% endblock %} {% block coderedcms_assets %} {% endblock %} {% block custom_assets %} {% endblock %} {% block favicon %} {% if settings.coderedcms.LayoutSettings.favicon %} {# See https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/ #} {% image settings.coderedcms.LayoutSettings.favicon fill-120x120 format-png as favicon_iphone %} {% image settings.coderedcms.LayoutSettings.favicon fill-180x180 format-png as favicon_iphone_plus %} {% image settings.coderedcms.LayoutSettings.favicon fill-152x152 format-png as favicon_ipad %} {% image settings.coderedcms.LayoutSettings.favicon fill-167x167 format-png as favicon_ipad_pro %} {% endif %} {% endblock %} {% block extra_head %}{% endblock %} {% wagtailuserbar %} {% block ada_skip %} {% if settings.coderedcms.ADASettings.skip_navigation %} Skip Navigation {% endif %} {% endblock %} {% block navbar %}{% endblock %}
{% block content %} {% block content_pre_body %}{% endblock %} {% block content_body %} {% include_block page.body with settings=settings %} {% endblock %} {% block content_post_body %}{% endblock %} {% endblock %} {% block index_content %} {% if page.index_show_subpages %} {% include "coderedcms/includes/pagination.html" with items=index_paginated %} {% endif %} {% endblock %}
{% block content_walls %} {% for content_wall in content_walls %} {% include_block content_wall with settings=settings %} {% endfor %} {% endblock %}
{% block footer %}{% endblock %} {% block required_scripts %} {% endblock %} {% block frontend_scripts %} {% endblock %} {% block coderedcms_scripts %} {% endblock %} {% block custom_scripts %} {% endblock %} {# Structured data JSON-LD #} {% if settings.coderedcms.SeoSettings.struct_meta %} {% block struct_seo_base %} {% if self.struct_org_type %} {% endif %} {% endblock %} {% block struct_seo_extra %}{% endblock %} {% endif %}