relocate favicon rendering

This commit is contained in:
sbwalker
2023-05-16 07:41:50 -04:00
parent dbe7324c7f
commit 3b214a0105
4 changed files with 14 additions and 12 deletions

View File

@ -7,9 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<component type="typeof(Oqtane.Head)" render-mode="@((RenderMode)Enum.Parse(typeof(RenderMode), Model.RenderMode, true))" />
<base href="~/" />
<link id="app-favicon" rel="shortcut icon" type="image/x-icon" href="@Model.FavIcon" />
@if (!string.IsNullOrEmpty(Model.PWAScript))
{
<link id="app-manifest" rel="manifest" />
@ -20,6 +18,7 @@
@Html.Raw(Model.HeadResources)
<link id="app-stylesheet-page" rel="stylesheet" href="css/empty.css" disabled />
<link id="app-stylesheet-module" rel="stylesheet" href="css/empty.css" disabled />
<component type="typeof(Oqtane.Head)" render-mode="@((RenderMode)Enum.Parse(typeof(RenderMode), Model.RenderMode, true))" />
</head>
<body>
@if (string.IsNullOrEmpty(Model.Message))

View File

@ -65,7 +65,6 @@ namespace Oqtane.Pages
public string RemoteIPAddress = "";
public string HeadResources = "";
public string BodyResources = "";
public string FavIcon = "favicon.ico";
public string PWAScript = "";
public string ReconnectScript = "";
public string Message = "";
@ -123,10 +122,6 @@ namespace Oqtane.Pages
{
RenderMode = site.RenderMode;
}
if (site.FaviconFileId != null)
{
FavIcon = Utilities.FileUrl(alias, site.FaviconFileId.Value);
}
if (Runtime == "Server")
{
ReconnectScript = CreateReconnectScript();