fixed biography section being displayed despite empty biography
This commit is contained in:
parent
5e49ae3c16
commit
ac4bb12880
|
@ -31,14 +31,15 @@
|
|||
|
||||
<hr class="my-3" />
|
||||
|
||||
<section>
|
||||
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Biography"]</h2>
|
||||
<div class="prose prose-sm lg:prose-base prose-neutral max-w-none">
|
||||
@((MarkupString) User.BiographyHtml)
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<hr class="my-3" />
|
||||
@if (!string.IsNullOrWhiteSpace(User.Biography)) {
|
||||
<section>
|
||||
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Biography"]</h2>
|
||||
<div class="prose prose-sm lg:prose-base prose-neutral max-w-none">
|
||||
@((MarkupString) User.BiographyHtml)
|
||||
</div>
|
||||
</section>
|
||||
<hr class="my-3" />
|
||||
}
|
||||
|
||||
<section>
|
||||
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Articles"]</h2>
|
||||
|
|
Loading…
Reference in a new issue