Last active
November 25, 2018 02:34
-
-
Save robertcoopercode/7be075363ca4999b3b2e526f9be94699 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
... | |
const AboutPage = ({ data }) => { | |
const { markdownRemark: page, footerData, navbarData } = data; | |
const { | |
frontmatter: { | |
seo: { title: seoTitle, description: seoDescription, browserTitle }, | |
}, | |
} = page; | |
return ( | |
<Layout footerData={footerData} navbarData={navbarData}> | |
<Helmet> | |
<meta name="title" content={seoTitle} /> | |
<meta name="description" content={seoDescription} /> | |
<title>{browserTitle}</title> | |
</Helmet> | |
<AboutPageTemplate page={{ ...page, bodyIsMarkdown: false }} /> | |
</Layout> | |
); | |
}; | |
AboutPage.propTypes = { | |
data: PropTypes.object.isRequired, | |
}; | |
export default AboutPage; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment