further modifications for #4604 - support for site name in logo component
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user