Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR to add _document.js #118

Open
kylepott opened this issue Aug 16, 2024 · 0 comments
Open

PR to add _document.js #118

kylepott opened this issue Aug 16, 2024 · 0 comments

Comments

@kylepott
Copy link

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>
  );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant