Fixing errors when running the blog.

This commit is contained in:
Mark Catley 2017-09-04 09:56:00 +12:00
parent 1e4f1fa1cd
commit d1b061d2fd
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),
}} }}