From 28330b9f559e7f62086da670ddb897f8c5ca5480 Mon Sep 17 00:00:00 2001 From: "Daniel S. Billing" Date: Thu, 7 Dec 2023 21:11:09 +0100 Subject: [PATCH] Some minor improvements to blog posts --- resources/views/blog/show.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/blog/show.blade.php b/resources/views/blog/show.blade.php index b028fbe..f7efffb 100644 --- a/resources/views/blog/show.blade.php +++ b/resources/views/blog/show.blade.php @@ -8,10 +8,12 @@ Back to the blog --}} -

{{ $post->title }}

+ -

- {{ now()->subMonth(1) > $post->published_at ? $post->published_at->isoFormat('D. MMMM YYYY') : $post->published_at->diffForHumans() }} · {{ read_time($post->body)}} · {{ App\Helpers\NumberHelper::nearestK(views($post)->count()) }} {{ Str::plural('view', views($post)->count()) }} +

{{ $post->title }}

+ +

+ {{ read_time($post->body)}} · {{ App\Helpers\NumberHelper::nearestK(views($post)->count()) }} {{ Str::plural('view', views($post)->count()) }} · {{ $post->likes_count }} {{ Str::plural('like', $post->likes_count) }} {{--@foreach ($post->tags as $tag) {{ $tag->name }} @endforeach--}}