Merge pull request #54 from markcatley/master
Fixing errors when running the blog.
This commit is contained in:
commit
769381a6e7
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
key={post.node.frontmatter.path}
|
||||||
|
>
|
||||||
<h3
|
<h3
|
||||||
key={post.node.frontmatter.path}
|
|
||||||
style={{
|
style={{
|
||||||
marginBottom: rhythm(1 / 4),
|
marginBottom: rhythm(1 / 4),
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue