From d1b061d2fd9f5165ea124daf426e0292f5dee838 Mon Sep 17 00:00:00 2001 From: Mark Catley Date: Mon, 4 Sep 2017 09:56:00 +1200 Subject: [PATCH] Fixing errors when running the blog. --- src/layouts/index.js | 2 +- src/pages/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/index.js b/src/layouts/index.js index 3f960eb..a91dc38 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -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, } diff --git a/src/pages/index.js b/src/pages/index.js index 794f56a..1a6f115 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -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 ( -
+