fixed biography section being displayed despite empty biography

This commit is contained in:
Mia Rose Winter 2024-02-07 21:15:19 +01:00
parent 5e49ae3c16
commit ac4bb12880
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -31,14 +31,15 @@
<hr class="my-3" /> <hr class="my-3" />
<section> @if (!string.IsNullOrWhiteSpace(User.Biography)) {
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Biography"]</h2> <section>
<div class="prose prose-sm lg:prose-base prose-neutral max-w-none"> <h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Biography"]</h2>
@((MarkupString) User.BiographyHtml) <div class="prose prose-sm lg:prose-base prose-neutral max-w-none">
</div> @((MarkupString) User.BiographyHtml)
</section> </div>
</section>
<hr class="my-3" /> <hr class="my-3" />
}
<section> <section>
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Articles"]</h2> <h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Articles"]</h2>