further modifications for #4604 - support for site name in logo component

This commit is contained in:
sbwalker
2024-09-15 09:30:04 -04:00
parent 1c1c26948a
commit c74065ff26
5 changed files with 11 additions and 9 deletions

View File

@ -11,16 +11,16 @@
}
else
{
if (ShowName)
if (UseSiteNameAsFallback)
{
<span class="app-logo">
<a class="site-name" href="@PageState.Alias.Path">@PageState.Site.Name</a>
<a class="navbar-brand" href="@PageState.Alias.Path">@PageState.Site.Name</a>
</span>
}
}
@code {
[Parameter]
public bool ShowName { get; set; } = false;
public bool UseSiteNameAsFallback { get; set; } = false; // indicates if the site name should be displayed in scenarios where a site does not have a logo defined
}