Refactor favicon links in Meta components
This commit is contained in:
@@ -14,13 +14,13 @@ export const BoardHeadOverride = () => {
|
||||
return (
|
||||
<Head>
|
||||
<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 && (
|
||||
<>
|
||||
<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>
|
||||
|
||||
@@ -12,7 +12,7 @@ export const CommonHead = () => {
|
||||
<link crossOrigin="use-credentials" rel="manifest" href="/site.webmanifest" />
|
||||
|
||||
{/* 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-capable" content="yes" />
|
||||
|
||||
Reference in New Issue
Block a user