-
-
Save amandeepmittal/3397ae8d62ee4abf9f7fb1bb85b13e7a 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
const Template = ({ data }) => { | |
const title = data.markdownRemark.frontmatter.title; | |
const date = data.markdownRemark.frontmatter.date; | |
const html = data.markdownRemark.html; | |
return ( | |
<div> | |
<h1>{title}</h1> | |
<div> | |
<em>{date}</em> | |
</div> | |
<br /> | |
<div className="blogpost" dangerouslySetInnerHTML={{ __html: html }} /> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment