react-portfolio-template icon indicating copy to clipboard operation
react-portfolio-template copied to clipboard

PR to add _document.js

Open kylepott opened this issue 1 year ago • 0 comments

I tried to open a PR for this, but recommend adding /pages/_document.js with the following content. The purpose is to assist with accessibility by adding lang= to the HTML tag and also add meta name and description to help with SEO.

import { Html, Head, Main, NextScript } from 'next/document';

export default function Document() {
  return (
    <Html lang="en">  {/*Update your language to assist with accessibility*/}
      <Head>
        <meta name="description" content="" /> {/*Fill in a description of meta data to help with SEO*/}
        <meta charSet="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="icon" href="/favicon.ico" />
        {/* Add any additional meta tags or links here */}
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}

kylepott avatar Aug 16 '24 15:08 kylepott