fix #4606 - allow logo to show site name as fallback (credit @JanOlsmar)

This commit is contained in:
sbwalker
2024-09-13 16:13:01 -04:00
parent d954e3ffb7
commit 1c1c26948a
4 changed files with 24 additions and 3 deletions

View File

@ -8,4 +8,19 @@
<img class="img-fluid" src="@Utilities.FileUrl(PageState.Alias, PageState.Site.LogoFileId.Value)" alt="@PageState.Site.Name" />
</a>
</span>
}
}
else
{
if (ShowName)
{
<span class="app-logo">
<a class="site-name" href="@PageState.Alias.Path">@PageState.Site.Name</a>
</span>
}
}
@code {
[Parameter]
public bool ShowName { get; set; } = false;
}