Refactor favicon links in Meta components
This commit is contained in:
@@ -14,13 +14,13 @@ export const BoardHeadOverride = () => {
|
|||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta key="favicon" name="apple-mobile-web-app-title" content={title} />
|
<meta name="apple-mobile-web-app-title" content={title} />
|
||||||
|
|
||||||
{faviconUrl && faviconUrl.length > 0 && (
|
{faviconUrl && faviconUrl.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<link rel="shortcut icon" href={faviconUrl} />
|
<link key="favicon" rel="shortcut icon" href={faviconUrl} />
|
||||||
|
|
||||||
<link rel="apple-touch-icon" href={faviconUrl} />
|
<link key="favicon-apple" rel="apple-touch-icon" href={faviconUrl} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Head>
|
</Head>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const CommonHead = () => {
|
|||||||
<link crossOrigin="use-credentials" rel="manifest" href="/site.webmanifest" />
|
<link crossOrigin="use-credentials" rel="manifest" href="/site.webmanifest" />
|
||||||
|
|
||||||
{/* configure apple splash screen & touch icon */}
|
{/* configure apple splash screen & touch icon */}
|
||||||
<link rel="apple-touch-icon" href="/imgs/favicon/favicon.svg" />
|
<link key="favicon-apple" rel="apple-touch-icon" href="/imgs/favicon/favicon.svg" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Homarr" />
|
<meta name="apple-mobile-web-app-title" content="Homarr" />
|
||||||
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
|||||||
Reference in New Issue
Block a user