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/components/layout.js b/src/components/layout.js deleted file mode 100644 index 01f7f4c..0000000 --- a/src/components/layout.js +++ /dev/null @@ -1,71 +0,0 @@ -import React from 'react' -import { Link } from 'gatsby' - -import { rhythm, scale } from '../utils/typography' - -class Layout extends React.Component { - render() { - const { location, title, children } = this.props - const rootPath = `${__PATH_PREFIX__}/` - let header - - if (location.pathname === rootPath) { - header = ( -