Skip to content

Commit 4347e54

Browse files
authored
🐛 Fix author name not found (#118)
1 parent ff00610 commit 4347e54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/views/components/admin/recent-post.blade.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88
<div class="absolute inset-x-0 bottom-0 w-full backdrop-blur-md bg-black/50 p-4">
99
<div class="flex justify-between">
10-
<h4 class="text-white text-sm leading-5">{{ $article->author->name }}</h4>
10+
<h4 class="text-white text-sm leading-5">{{ $article->user->name }}</h4>
1111
<time datetime="{{ $article->created_at->format('Y-m-d') }}" class="text-sm leading-5 text-slate-300 capitalize">
1212
{{ $article->created_at->isoFormat('LL') }}
1313
</time>
@@ -22,7 +22,9 @@
2222
</div>
2323
</div>
2424
<div>
25-
<h4 class="text-lg leading-6 font-semibold font-sans text-slate-900 line-clamp-2 group-hover:text-primary-500">{{ $article->title }}</h4>
25+
<h4 class="text-lg leading-6 font-semibold font-sans text-slate-900 line-clamp-2 group-hover:text-primary-500">
26+
{{ $article->title }}
27+
</h4>
2628
<p class="mt-3 font-normal text-slate-500 leading-6 line-clamp-2">
2729
{!! $article->excerpt(100) !!}
2830
</p>

0 commit comments

Comments
 (0)