Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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