diff --git a/src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminBranding.cshtml b/src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminBranding.cshtml index 2db89a9816c..e6808c33c9c 100644 --- a/src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminBranding.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Admin/Views/AdminBranding.cshtml @@ -1,6 +1,7 @@ @inject IOptions AdminOptions - - + + +
@Site.SiteName diff --git a/src/docs/reference/modules/Admin/README.md b/src/docs/reference/modules/Admin/README.md index db9bd1eab26..189c75b0861 100644 --- a/src/docs/reference/modules/Admin/README.md +++ b/src/docs/reference/modules/Admin/README.md @@ -17,7 +17,7 @@ If you want to specify another prefix in the urls to access the admin section, y By default, OrchardCore logo and site name are displayed in the top navbar. -You can change it by overriding 'AdminBranding' shape, either from a [custom admin theme](../../../guides/create-admin-theme/README.md) or using Admin Templates feature. +You can change it by overriding 'AdminBranding' shape, either from a [custom admin theme](../../../guides/create-admin-theme/README.md) or using Admin Templates feature. You can also use this shape to define admin favicon. Here are samples using logo and favicon from media module. @@ -26,20 +26,27 @@ Here are samples using logo and favicon from media module. ``` liquid {% assign favicon_url = 'favicon.ico' | asset_url %} - {% link rel:'shortcut icon', type:'image/x-icon', src:favicon_url %} + {% zone "HeadMeta" %} + {% link rel:'shortcut icon', type:'image/x-icon', src:favicon_url %} + {% endzone %} {% a area: 'OrchardCore.Admin', controller: 'Admin' , action: 'Index', class: 'ta-navbar-brand' %} - {{ Site.SiteName }} - {{ Site.SiteName }} +
+ {{ Site.SiteName }} + {{ Site.SiteName }} +
{% enda %} ``` === "Razor" ``` html - - + + +
- @Site.SiteName - @Site.SiteName +
+ @Site.SiteName + @Site.SiteName +
``` \ No newline at end of file