Skip to content

Instantly share code, notes, and snippets.

@ozantunca
Created February 5, 2021 13:56
Show Gist options
  • Save ozantunca/ec4e7d7ec7ca2e793a7141362cca0555 to your computer and use it in GitHub Desktop.
Save ozantunca/ec4e7d7ec7ca2e793a7141362cca0555 to your computer and use it in GitHub Desktop.
import React, { FC } from 'react';
import { GatsbySeo } from 'gatsby-plugin-next-seo';
const Layout: FC = ({ children }) => (
<>
<GatsbySeo
title='Using More of Config'
description='This example uses more of the available config options.'
openGraph={{
url: 'https://www.example.com/somepage',
title: 'Open Graph Title',
description: 'Open Graph Description',
images: [
{
url: 'https://www.example.ie/og-image-01.jpg',
width: 800,
height: 600,
alt: 'Og Image Alt',
},
],
site_name: 'SiteName',
}}
twitter={{
handle: '@handle',
site: '@site',
cardType: 'summary_large_image',
}}
/>
<div>{children}</div>
</>
);
export default Layout;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment