diff --git a/resources/views/posts/show.blade.php b/resources/views/posts/show.blade.php index 2475789..de3cb9e 100644 --- a/resources/views/posts/show.blade.php +++ b/resources/views/posts/show.blade.php @@ -2,48 +2,184 @@ @extends('layouts.app') @section('title', $post->title) -@section('description', 'Heimerdinger.LoL: ' . $post->description) - -@section('og_image', $post->thumbnail) +@section('description', $post->description) +@if($post->thumbnail) + @section('og_image', $post->thumbnail) +@endif @push('meta_tags') - + + {{-- Schema.org for SEO --}} + @endpush @section('content') - Back - to - posts -
- - - {{ $post->title }} Thumbnail - -
-

- “{{ $post->title }}”

-

- “{{ $post->description }}” -

+
+ -

- {{ $post->contents }} -

+
+
+
+ {{ Carbon::parse($post->date)->format('F d, Y') }} + + {{ ceil(str_word_count(strip_tags($post->contents)) / 200) }} min read +
-

- Tagged with: - {{ isset($post->tags) ? implode(', ', $post->tags) : 'League of Legends' }} -

+

+ {{ $post->title }} +

+ + @if($post->description) +

+ {{ $post->description }} +

+ @endif + + @if($post->thumbnail) +
+ {{ $post->title }} +
+ @endif +
+ +
+ {!! $post->contents !!} +
+ + @if(isset($post->tags) && count($post->tags) > 0) +
+

Topics

+
+ @foreach($post->tags as $tag) + + #{{ $tag }} + + @endforeach +
+
+ @endif + +
+
+
+ H +
+
+
+

Heimerdinger.LoL

+

Your ultimate source for League of Legends news, guides, and tools. Bringing you the smartest updates from the Rift.

+
+
+
+ +
+
+ +
+ @if($previous) + + ← Previous Post +

{{ $previous->title }}

+
+ @else +
+ @endif + + @if($next) + + Next Post → +

{{ $next->title }}

+
+ @endif +
+ + @if($related && $related->count() > 0) +

Read Next

+ + @endif + +
-
-@endsection \ No newline at end of file + +@endsection