This commit is contained in:
2023-11-20 02:42:54 +08:00
parent b929cae31e
commit 36f0588ef8
3 changed files with 25 additions and 4 deletions

View File

@@ -9,7 +9,20 @@
<article class="blog-post
">
<h1 class="fw-bold font-family-roboto-condensed mb-3">{{ $post->title }}</h1>
<div class="mb-2">
<h1 class="fw-bold font-family-roboto-condensed mb-1">{{ $post->title }}</h1>
<div>
@foreach ($post->keywords as $keyword)
@if($keyword == $post->main_keyword)
<span class="badge text-bg-dark me-1">{{ $keyword }}</span>
@else
<span class="badge text-bg-light border me-1">{{ $keyword }}</span>
@endif
@endforeach
</div>
</div>
<div class="mb-2 text-secondary">
<small>{{ $post->published_at->format('jS F Y') }}</small>