Merge pull request #14 from zollillo/issue-13

Fixes issue #13. Use correct front matter variable to access date value of post data.
This commit is contained in:
Alexander S 2016-09-28 20:15:37 +03:00 committed by GitHub
commit fe4a4b1d8f

View File

@ -28,7 +28,7 @@ class SitePost extends React.Component {
<h1>{ post.title }</h1> <h1>{ post.title }</h1>
<div dangerouslySetInnerHTML={ { __html: post.body} } /> <div dangerouslySetInnerHTML={ { __html: post.body} } />
<div className='date-published'> <div className='date-published'>
<em>Published { moment(post.datePublished).format('D MMM YYYY') }</em> <em>Published { moment(post.date).format('D MMM YYYY') }</em>
</div> </div>
</div> </div>
<div className='footer'> <div className='footer'>