@extends('layouts.app') @php $seoTitle = $post->meta_title ?: $post->title; $seoDescription = $post->meta_description ?: $post->excerpt; @endphp @section('title', $seoTitle) @section('meta_description', $seoDescription) @php $ogSize = $post->featured_image ? @getimagesize(storage_path('app/public/'.$post->featured_image)) : null; @endphp @if ($post->featured_image) @section('og_image', asset('storage/'.$post->featured_image)) @if ($ogSize) @section('og_image_width', (string) $ogSize[0]) @section('og_image_height', (string) $ogSize[1]) @endif @endif @section('content')
@include('partials.breadcrumbs', ['navClass' => 'text-sm text-ink-soft', 'crumbs' => [ ['name' => __('app.nav.home'), 'url' => lroute('home')], ['name' => __('app.nav.blog'), 'url' => lroute('blog')], ['name' => $post->title], ]])

{{ $post->title }}

@if ($post->author) {{ $post->author->name }} @endif
@if ($post->featured_image) {{ $post->title }} @endif
{!! Str::markdown((string) $post->body, ['html_input' => 'escape', 'allow_unsafe_links' => false]) !!}
@if ($relatedPosts->isNotEmpty()) @endif
@endsection