Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import React from 'react' import Helmet from 'react-helmet' import useSiteMetdata from '../use-site-metadata' function Head(props) { const siteMetadata = useSiteMetdata() const title = props.title ? `${props.title} | ${siteMetadata.title}` : siteMetadata.title const description = props.description || siteMetadata.description return ( <Helmet> <title>{title}</title> <meta name="description" content={description} /> <meta property="og:title" content={title} /> <meta property="og:description" content={description} /> <meta property="og:image" content={siteMetadata.imageUrl} /> <meta property="twitter:card" content="summary_large_image" /> </Helmet> ) } export default Head |