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" />
|
||||||
|
|
||||||
|
@if (!string.IsNullOrWhiteSpace(User.Biography)) {
|
||||||
<section>
|
<section>
|
||||||
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Biography"]</h2>
|
<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">
|
<div class="prose prose-sm lg:prose-base prose-neutral max-w-none">
|
||||||
@((MarkupString) User.BiographyHtml)
|
@((MarkupString) User.BiographyHtml)
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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