Added Author Name to ArticleCard component
This commit is contained in:
parent
ff73265a46
commit
a204191eaf
|
@ -10,6 +10,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h2 class="card-title line-clamp-1">@Article.Title</h2>
|
<h2 class="card-title line-clamp-1">@Article.Title</h2>
|
||||||
<small>
|
<small>
|
||||||
|
@Article.Author.Name
|
||||||
@Article.PublishDate.ToString("d")
|
@Article.PublishDate.ToString("d")
|
||||||
@if (Article.Status is not ArticleStatus.Published) {
|
@if (Article.Status is not ArticleStatus.Published) {
|
||||||
<span class="badge badge-sm badge-warning ml-2">@Article.Status.Humanize()</span>
|
<span class="badge badge-sm badge-warning ml-2">@Article.Status.Humanize()</span>
|
||||||
|
|
Loading…
Reference in a new issue