Skip to content

Commit

Permalink
Render AppName in page title
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Mar 13, 2024
1 parent 09be568 commit 5478f6d
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
@using Blazorise
@using Microsoft.Extensions.Options
@using Microsoft.AspNetCore.Components.Web
@using Volo.Abp.Ui.Branding

@inject IOptions<PageHeaderOptions> Options
@inject IBrandingProvider BrandingProvider

<Row Class="entry-row">
<PageTitle>@PageLayout.Title</PageTitle>

@if (PageLayout.Title.IsNullOrEmpty())
{
<PageTitle>@BrandingProvider.AppName</PageTitle>
}
else
{
<PageTitle>@PageLayout.Title | @BrandingProvider.AppName</PageTitle>
}

@if(Options.Value.RenderPageTitle)
{
<Column ColumnSize="ColumnSize.IsAuto">
Expand Down

0 comments on commit 5478f6d

Please sign in to comment.