@extends('layouts.frontend') @section('title', $post->meta_title ?: $post->title) @section('meta_description', $post->meta_description ?: Str::limit(strip_tags($post->content), 160)) @section('meta_keywords', $post->meta_keywords) {{-- Canonical URL --}} @push('styles') {{-- Add any specific styles for blog post, e.g., syntax highlighting --}} @endpush @push('meta_tags') {{-- Open Graph / Facebook --}} @if($post->featured_image) @endif @if($post->user) @endif {{-- Twitter --}} @if($post->featured_image) @endif @endpush @section('content')

{{ $post->title }}

Published on {{ $post->published_at->format('F j, Y') }} @if($post->user) by {{ $post->user->name }} @endif @if($post->categories->isNotEmpty()) | In @foreach($post->categories as $category) {{ $category->name }}{{ !$loop->last ? ',' : '' }} @endforeach @endif
@if($post->featured_image) {{ $post->title }} @endif
{!! $post->content !!}
{{-- TODO: Add tags, social sharing, comments section --}}
@endsection