mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
Use correct front matter variable to access date value of post data.
This commit is contained in:
parent
ebe14e8087
commit
3e659c1623
@ -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