{% if post.id is defined and post.updatedAt is defined %}
{% set postIdentifier = post.id ~ ';' ~ post.updatedAt|date('d-m-Y-H-i-s') %}
{% else %}
{% if blogHomes is defined %}
{% set postIdentifier = 'bloghome_general' %}
{% elseif cform is defined %}
{% set postIdentifier = 'contact' %}
{% else %}
{% set postIdentifier = random(0, 1000) %}
{% endif %}
{% endif %}
{% set letstalkType = post.letstalkType is defined and post.letstalkType is not null and post.letstalkType is not empty and post.letstalkType != 'none' ? post.letstalkType : null %}
{% if letstalkType == 'random' %}
{% set letstalkType = random(['site', 'seo']) %}
{% endif %}
<!DOCTYPE html>
<html lang="fr" prefix="{% block og_prefix %}og:https://ogp.me/ns/article#{% endblock %}">
<head>
{% cache 'tarteaucitron_init' ttl(31536000) %}
{{ include('blocks/_tarteaucitron_init.html.twig') }}
{% endcache %}
<!-- Google Tag Manager -->
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
window.addEventListener('load', function () {
function loadGTM() {
var j = document.createElement('script');
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=GTM-TBHL2LQ';
document.head.appendChild(j);
}
if ('requestIdleCallback' in window) {
requestIdleCallback(loadGTM);
} else {
setTimeout(loadGTM, 3000);
}
});
</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8">
<link rel="canonical" href="{% block canonical_url %}{% cache 'canonical_url;' ~ postIdentifier ttl(31536000) %}{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}{% endcache %}{% endblock %}"/>
<title>
{%- block title_tag %}{% endblock -%}
</title>
<meta name="description" content="{% block description_tag %}{% endblock %}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="{{asset('/images/main/favicon.png') }}"/>
{# cache 'critical_css;' ~ postIdentifier ttl(31536000) %}
{% if app.request.attributes.get('_route') != 'show_portfolio' %}
<style>{{ inline_css('css/critical.css') }}</style>
{% else %}
<style>{{ inline_css('css/critical-portfolio.css') }}</style>
{% endif %}
{% endcache #}
<link rel="stylesheet" href="{{ asset('css/main.css?v=' ~ assets_version) }}">
<link rel="preload" href="{{ asset('css/fonts.css?v=' ~ assets_version) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="{{asset('tarteaucitron/tarteaucitron.js-master/css/tarteaucitron.css?v=' ~ assets_version) }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
{% block internal_stylesheet %}{% endblock %}
{% block external_stylesheet %}{% endblock %}
{% block robots %}{% endblock %}
<script id="schema-org" type="application/ld+json"></script>
{% include('blocks/_open_graph.html.twig')with {
title_tag : block('title_tag'),
description_tag: block('description_tag'),
canonical_url: block('canonical_url')
} %}
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TBHL2LQ"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="body-inner">
{% cache 'header;' ~ postIdentifier ttl(31536000) %}
{{ include('blocks/_header.html.twig') }}
{% endcache %}
<main>
{% block content %}{% endblock %}
{% block letstalk_banner %}{% endblock %}
</main>
{% cache 'footer;' ~ postIdentifier ttl(31536000) %}
{% include('blocks/_footer.html.twig') %}
{% endcache %}
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script type="text/javascript" src="{{ asset('js/main.min.js?v=' ~ assets_version) }}"></script>
</body>
</html>