Created
February 5, 2021 13:56
-
-
Save ozantunca/ec4e7d7ec7ca2e793a7141362cca0555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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