chore: move favicon code to PageMetadata
This commit is contained in:
parent
8adf771339
commit
6cebcb3454
|
@ -43,7 +43,10 @@ export const PageMetadata: React.FC<Props> = ({ title, description, image }) =>
|
||||||
<meta name='twitter:description' content={description} />
|
<meta name='twitter:description' content={description} />
|
||||||
{/* patch to force a cache invalidation of twitter's card bot */}
|
{/* patch to force a cache invalidation of twitter's card bot */}
|
||||||
<meta name='twitter:image' content={`${ogImage}/#`} />
|
<meta name='twitter:image' content={`${ogImage}/#`} />
|
||||||
<link rel='icon' href='/favicon.ico' />
|
{/* viewport */}
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
||||||
|
{/* favicon */}
|
||||||
|
<link rel='icon' type='image/x-icon' href='/favicon.ico' />
|
||||||
</Head>
|
</Head>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,11 +16,6 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||||
<ChakraProvider theme={theme}>
|
<ChakraProvider theme={theme}>
|
||||||
<MDXProvider components={MDXComponents}>
|
<MDXProvider components={MDXComponents}>
|
||||||
<Layout>
|
<Layout>
|
||||||
<Head>
|
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
|
||||||
<link rel='icon' type='image/x-icon' href='/favicon.ico' />
|
|
||||||
</Head>
|
|
||||||
|
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</Layout>
|
</Layout>
|
||||||
</MDXProvider>
|
</MDXProvider>
|
||||||
|
|
Loading…
Reference in New Issue