Merge pull request #54 from markcatley/master

Fixing errors when running the blog.
This commit is contained in:
Kyle Mathews 2017-09-03 16:21:43 -07:00 committed by GitHub
commit 769381a6e7
2 changed files with 4 additions and 3 deletions

View file

@ -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,
}

View file

@ -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),
}}