From 18c34855cb91b27319c4d152aa6d7ca05b15d346 Mon Sep 17 00:00:00 2001 From: Charles Teh Date: Tue, 21 Nov 2023 11:22:00 +0800 Subject: [PATCH] Update (layout) --- resources/views/front/welcome.blade.php | 50 +++++++++++++++---------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/resources/views/front/welcome.blade.php b/resources/views/front/welcome.blade.php index 9948fb4..107540a 100644 --- a/resources/views/front/welcome.blade.php +++ b/resources/views/front/welcome.blade.php @@ -21,7 +21,7 @@ @if ($featured_posts->count() > 0)
-

Featured News

+

Featured News

@@ -63,34 +63,46 @@ class="text-secondary">{{ $post->published_at->diffForHumans() }}
@foreach ($latest_posts as $post) -
+
-
-
-
-
- {{ $post->title }} -
+
-
-
+
+ +
-

+

{{ $post->title }} + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden;">{{ $post->title }}

-
{{ $post->published_at->diffForHumans() }} + +
+ @foreach ($post->keywords as $keyword) + @if ($keyword == $post->main_keyword) +

{{ $keyword }}

+ @else +

{{ $keyword }}

+ @endif + @endforeach +
+
+ @if($post->category) + {{ $post->category->name }} + + @endif + + {{ $post->published_at->diffForHumans() }} - {{ markdown_min_read($post->body) }} + {{ markdown_min_read($post->body) }}