diff --git a/src/components/layout.js b/src/components/layout.js index 370484e..01f7f4c 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -5,7 +5,7 @@ import { rhythm, scale } from '../utils/typography' class Layout extends React.Component { render() { - const { location, children } = this.props + const { location, title, children } = this.props const rootPath = `${__PATH_PREFIX__}/` let header @@ -26,7 +26,7 @@ class Layout extends React.Component { }} to={'/'} > - Gatsby Starter Blog + {title} ) @@ -47,7 +47,7 @@ class Layout extends React.Component { }} to={'/'} > - Gatsby Starter Blog + {title} ) diff --git a/src/pages/index.js b/src/pages/index.js index fb52679..94a0cc8 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -17,7 +17,7 @@ class BlogIndex extends React.Component { const posts = get(this, 'props.data.allMarkdownRemark.edges') return ( - + +