mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 14:29:36 +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>
|
||||
<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'>
|
||||
|
Loading…
Reference in New Issue
Block a user