{% load wagtailsettings_tags static navigation_tags wagtailcore_tags wagtailimages_tags wagtailuserbar %} {# Section Google #} {% if settings.base.PortoSettings.is_production %} {% if settings.base.SEOSettings.google_tag_manager %} {% else %} {% endif %} {% if settings.base.SEOSettings.google_adsense_account %} {% else %} {% endif %} {% endif %} {% block title %} {% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %} {% endblock %} {% block title_suffix %} {% wagtail_site as current_site %} {% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %} {% endblock %} {# Basic #} {# SEO #} {% if settings.base.SEOSettings.author %} {% else %} {% endif %} {% if page.search_description %} {% else %} {% if settings.base.SEOSettings.meta_description %} {% else %} {% endif %} {% endif %} {% if settings.base.SEOSettings.og_meta %} {% for tag in settings.base.SEOSettings.og_meta %} {% endfor %} {% else %} {# Fallback statique si aucun OG meta n'est défini dans les settings #} {% if page.search_description %} {% else %} {% endif %} {% if settings.base.PortoSettings.opengraph %} {% image settings.base.PortoSettings.opengraph width-1920 as opengraph %} {% else %} {% endif %} {% endif %} {% if settings.base.PortoSettings.favicon %} {% image settings.base.PortoSettings.favicon width-32 as favicon %} {% else %} {% endif %} {% if settings.base.PortoSettings.apple_touch_icon %} {% image settings.base.PortoSettings.apple_touch_icon width-192 height-192 as apple_touch_icon %} {% else %} {% endif %} {% block extra_css %} {# Override this in templates to add extra css #} {% endblock %} {% if settings.base.PortoSettings.style == 'lamallettepedagogique' %} {# href="{% static 'css/skins/lamallettepedagogique.css' %}"> #} {% elif settings.base.PortoSettings.style == 'lenouvelentrepreneur' %} {% elif settings.base.PortoSettings.style == 'avanta' %} {% else %} {% endif %} {% if settings.base.PortoSettings.is_production %} {% if settings.base.PortoSettings.google_tag_manager %} {% endif %} {% else %} {% endif %} {% wagtailuserbar %}
{% include 'includes/header.html' %} {% block content %}{% endblock %} {% include 'includes/footer.html' %}
{# Global javascript #} {% block extra_js %} {# Override this in templates to add extra javascript #} {% endblock %}