chore: move favicon code to PageMetadata

pull/26459/head^2
Nicolás Quiroz 2 years ago
parent 8adf771339
commit 6cebcb3454
  1. 5
      src/components/UI/PageMetadata.tsx
  2. 5
      src/pages/_app.tsx

@ -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>
);
};

@ -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>

Loading…
Cancel
Save