{% extends 'layouts/layouts_front/base_front.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet preload" as="style" media="screen" href="{{ asset('css/actualite.css') }}">
<link rel="stylesheet preload" as="style" media="screen" href="{{ asset('css/page.css') }}">
{% endblock %}
{% set titleAff = "" %}
{% if actualite is defined %}
{% set titleAff = actualite.actTitre~" - " %}
{% endif %}
{% set titleAff = titleAff~""~page.seoTitle|default(page.ptitreonglet)|default(page.ptitre) %}
{% set titleAff = titleAff|slice(0,34)~" | "~nomDuSite %}
{% set metaDescr = page.seoDescription %}
{% if actualite is defined %}
{% set metaDescr = actualite.actTitre~" - " %}
{% endif %}
{% if catEnCours is defined %}
{% for cat in categories %}
{% if cat.id == catEnCours %}
{% if app.request.locale == 'fr' %}
{% set metaDescr = "Dans la catégorie d'actualité "~cat.actCatIntitule~" : "~actualite.actTitre~" sur le site des "~nomDuSite %}
{% else %}
{% set metaDescr = "In the "~cat.actCatIntitule~" news category : "~actualite.actTitre~" on the "~nomDuSite~" website" %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% block metaDescription %}{{ metaDescr }}{% endblock %}
{% block metaDescriptionOg %}{{ metaDescr }}{% endblock %}
{% block keywords %}{{ page.seoKeywords }}{% endblock %}
{% block title %}{{ titleAff }}{% endblock %}
{% block titleOg %}{{ titleAff }}{% endblock %}
{% block content %}
{{ include('front/front_news/header.html.twig') }}
{{ include('front/front_news/nav_ariane.html.twig') }}
{% set type = bloc.bloc_type_texte_image|default(0) %}
<div class="container blockactus" itemscope itemtype="http://schema.org/BlogPosting"
itemref="author_box review_box">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-11">
<div class="d-flex justify-content-center flex-column align-items-center mb-3">
{% if actualite.actTitre %}
<h2 itemprop="name" class="titreActus">
<span>{{ actualite.actTitre }}</span>
</h2>
{% endif %}
<time itemprop="datePublished"
datetime="{{ actualite.actDatePublication|date('Y-m-d') }}" class="dateActus">
{{ actualite.actDatePublication|date("d-m-Y") }}
</time>
</div>
</div>
</div>
</div>
{{ actualite_content|raw }}
{% endblock %}
{% block javascripts %}
{% endblock %}