Skip to content

Commit

Permalink
Refactor favicon links in Meta components
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnart committed May 15, 2024
1 parent 051f439 commit 5043b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/layout/Meta/BoardHeadOverride.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Meta/CommonHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 5043b9c

Please sign in to comment.