Fixing errors when running the blog.
This commit is contained in:
parent
1e4f1fa1cd
commit
d1b061d2fd
2 changed files with 4 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ class Template extends React.Component {
|
|||
}
|
||||
|
||||
Template.propTypes = {
|
||||
children: React.PropTypes.function,
|
||||
children: React.PropTypes.func,
|
||||
location: React.PropTypes.object,
|
||||
route: React.PropTypes.object,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,9 +19,10 @@ class BlogIndex extends React.Component {
|
|||
if (post.node.path !== "/404/") {
|
||||
const title = get(post, "node.frontmatter.title") || post.node.path
|
||||
return (
|
||||
<div>
|
||||
<div
|
||||
key={post.node.frontmatter.path}
|
||||
>
|
||||
<h3
|
||||
key={post.node.frontmatter.path}
|
||||
style={{
|
||||
marginBottom: rhythm(1 / 4),
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue