mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
Add key to pageLinks within SiteIndex
* Key is required when creating a list of elements * Adding key removes react warning * Used title because it should be unique * Closes #25
This commit is contained in:
parent
0468cc151d
commit
27f9d45422
@ -23,7 +23,7 @@ class SiteIndex extends React.Component {
|
|||||||
const category = access(page, 'data.category')
|
const category = access(page, 'data.category')
|
||||||
|
|
||||||
pageLinks.push(
|
pageLinks.push(
|
||||||
<div className='blog-post'>
|
<div className='blog-post' key={ title }>
|
||||||
<time dateTime={ moment(datePublished).format('MMMM D, YYYY') }>
|
<time dateTime={ moment(datePublished).format('MMMM D, YYYY') }>
|
||||||
{ moment(datePublished).format('MMMM YYYY') }
|
{ moment(datePublished).format('MMMM YYYY') }
|
||||||
</time>
|
</time>
|
||||||
|
Loading…
Reference in New Issue
Block a user