Use correct front matter variable to access date value of post data.

This commit is contained in:
Nadja Zollo 2016-09-28 17:26:26 +02:00
parent ebe14e8087
commit 3e659c1623

View File

@ -28,7 +28,7 @@ class SitePost extends React.Component {
<h1>{ post.title }</h1>
<div dangerouslySetInnerHTML={ { __html: post.body} } />
<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 className='footer'>