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 = { Template.propTypes = {
children: React.PropTypes.function, children: React.PropTypes.func,
location: React.PropTypes.object, location: React.PropTypes.object,
route: React.PropTypes.object, route: React.PropTypes.object,
} }

View file

@ -19,9 +19,10 @@ class BlogIndex extends React.Component {
if (post.node.path !== "/404/") { if (post.node.path !== "/404/") {
const title = get(post, "node.frontmatter.title") || post.node.path const title = get(post, "node.frontmatter.title") || post.node.path
return ( return (
<div> <div
<h3
key={post.node.frontmatter.path} key={post.node.frontmatter.path}
>
<h3
style={{ style={{
marginBottom: rhythm(1 / 4), marginBottom: rhythm(1 / 4),
}} }}