@extends('site.layouts.app') @php use Illuminate\Support\Facades\Storage; $isRtl = app()->getLocale() === 'ar'; $rp = $isRtl ? 'site.ar.' : 'site.'; // v3.12.0 — L'arabe se lit de droite à gauche. Le layout pose déjà `dir` sur , // mais l'entête et le corps de l'article le portent AUSSI, explicitement : un article // reste lisible même sorti de son gabarit (aperçu, impression, flux). $dir = $isRtl ? 'rtl' : 'ltr'; $articleSchema = array_filter([ '@context' => 'https://schema.org', '@type' => 'Article', 'headline' => $post->localized('title'), 'description' => strip_tags((string) $post->localized('excerpt')), 'datePublished' => $post->published_at?->toIso8601String(), 'author' => $post->author ? ['@type' => 'Person', 'name' => $post->author->name] : null, 'publisher' => ['@type' => 'Organization', 'name' => \App\Support\Identite::marque()], 'mainEntityOfPage' => url()->current(), ]); @endphp @section('title', $post->localized('meta_title') ?: $post->localized('title').' — '.\App\Support\Identite::marque()) @section('description', $post->localized('meta_description') ?: $post->localized('excerpt')) @if ($post->cover_path) @section('og_image', url(Storage::disk('public')->url($post->cover_path))) @endif @section('content') @include('site._hero', [ 'eyebrow' => __('site.nav.blog'), 'title' => $post->localized('title'), ])
@if ($post->cover_path) {{ $post->localized('title') }} @endif
{{ $post->localizedHtml('body') }}

{{ __('site.cta.back_to_blog') }}

@if ($recent->isNotEmpty())
{{ __('site.nav.blog') }}

{{ __('site.blog.recent') }}

@foreach ($recent as $other) @include('site.blog._card', ['post' => $other, 'rp' => $rp]) @endforeach
@endif @endsection @push('jsonld') @endpush