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" />
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue