Skip to content

Instantly share code, notes, and snippets.

@debjit
Last active April 28, 2022 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debjit/eabdd49f9846e3f33697101d05f3bcd0 to your computer and use it in GitHub Desktop.
Save debjit/eabdd49f9846e3f33697101d05f3bcd0 to your computer and use it in GitHub Desktop.
NextJS SEO _app.js template.
import Head from "next/head";
import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
return (
<Head>
<title key="title">Debjit Blog</title>
<meta name="author" key="author" content="debjit.in" />
<meta
name="keywords"
key="keywords"
content="Blog, content"
/>
<meta
name="viewport"
key="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="description"
key="description"
content="Welcome to Debjit blog."
/>
</Head>
<Component {...pageProps} />
);
}
export default MyApp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment