Skip to content

Instantly share code, notes, and snippets.

@dhanar98
Last active November 28, 2021 17:34
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 dhanar98/b4ac7c909dee41983d49866e4ad89d80 to your computer and use it in GitHub Desktop.
Save dhanar98/b4ac7c909dee41983d49866e4ad89d80 to your computer and use it in GitHub Desktop.
Next-Seo Default Snippet
import { NextSeo } from 'next-seo';
const HomeSeo = () => (
<>
<NextSeo
title="title"
description="Description about pages."
canonical="https://dhanar98.hashnode.dev/"
openGraph={{
url: 'https://dhanar98.hashnode.dev/',
title: 'Open Graph Title',
description: 'Open Graph Description',
site_name: 'Dhanar98',
}}
twitter={{
handle: '@dhanar98',
site: '@dhanar98',
cardType: 'summary_large_image',
}}
/>
</>
);
export default HomeSeo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment