chore: move favicon code to PageMetadata

This commit is contained in:
Nicolás Quiroz 2022-11-29 15:52:51 -03:00
parent 8adf771339
commit 6cebcb3454
2 changed files with 4 additions and 6 deletions

View File

@ -43,7 +43,10 @@ export const PageMetadata: React.FC<Props> = ({ title, description, image }) =>
<meta name='twitter:description' content={description} />
{/* patch to force a cache invalidation of twitter's card bot */}
<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>
);
};

View File

@ -16,11 +16,6 @@ export default function App({ Component, pageProps }: AppProps) {
<ChakraProvider theme={theme}>
<MDXProvider components={MDXComponents}>
<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} />
</Layout>
</MDXProvider>