@extends('public.layout') @php if (!function_exists('calculateReadingTime')) { function calculateReadingTime($body) { if (!$body) { return 2; } $text = strip_tags($body); $words = str_word_count($text); $minutes = ceil($words / 200); return max(1, $minutes); } } // Garantir que seoData existe e tem valores padrão if (!isset($seoData)) { $seoData = []; } @endphp @section('seo') @php // Passar dados de SEO para o layout // O layout já acessa $seoData diretamente @endphp @endsection @section('content') {{-- Links CSS específicos da página capa2 --}} {{-- Banner no topo da página --}}
{{ Str::limit($mainArticle->headline ?? ($mainArticle->excerpt ?? ''), 150) }}
@endif{{ Str::limit($article->headline ?? ($article->excerpt ?? ''), 150) }}
@endif{{ Str::limit($largePost->headline ?? ($largePost->excerpt ?? ''), 150) }}
@endif{{ Str::limit($article->headline ?? ($article->excerpt ?? ''), 150) }}
@endif{{ Str::limit($fr7Main->headline ?? ($fr7Main->excerpt ?? ''), 150) }}
@endif{{ Str::limit($article->headline ?? ($article->excerpt ?? ''), 150) }}
@endif