Fix: revert to using initialSettings in head

pull/2334/head
shamoon 1 year ago
parent 17b9b7e523
commit e28faf6b98

@ -362,12 +362,12 @@ function Home({ initialSettings }) {
return ( return (
<> <>
<Head> <Head>
<title>{settings.title || "Homepage"}</title> <title>{initialSettings.title || "Homepage"}</title>
{settings.base && <base href={settings.base} />} {initialSettings.base && <base href={initialSettings.base} />}
{settings.favicon ? ( {initialSettings.favicon ? (
<> <>
<link rel="apple-touch-icon" sizes="180x180" href={settings.favicon} /> <link rel="icon" href={initialSettings.favicon} />
<link rel="icon" href={settings.favicon} /> <link rel="apple-touch-icon" sizes="180x180" href={initialSettings.favicon} />
</> </>
) : ( ) : (
<> <>
@ -377,8 +377,11 @@ function Home({ initialSettings }) {
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=4" /> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=4" />
</> </>
)} )}
<meta name="msapplication-TileColor" content={themes[settings.color || "slate"][settings.theme || "dark"]} /> <meta
<meta name="theme-color" content={themes[settings.color || "slate"][settings.theme || "dark"]} /> name="msapplication-TileColor"
content={themes[initialSettings.color || "slate"][initialSettings.theme || "dark"]}
/>
<meta name="theme-color" content={themes[initialSettings.color || "slate"][initialSettings.theme || "dark"]} />
</Head> </Head>
<link rel="preload" href="/api/config/custom.css" as="fetch" crossOrigin="anonymous" /> <link rel="preload" href="/api/config/custom.css" as="fetch" crossOrigin="anonymous" />

Loading…
Cancel
Save