mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 06:49:18 +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>
|
||||
<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