mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 06:49:18 +01:00
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:
commit
fe4a4b1d8f
@ -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'>
|
||||||
|
Loading…
Reference in New Issue
Block a user