diff --git a/src/components/Layout.js b/src/components/Layout.js new file mode 100644 index 0000000..370484e --- /dev/null +++ b/src/components/Layout.js @@ -0,0 +1,71 @@ +import React from 'react' +import { Link } from 'gatsby' + +import { rhythm, scale } from '../utils/typography' + +class Layout extends React.Component { + render() { + const { location, children } = this.props + const rootPath = `${__PATH_PREFIX__}/` + let header + + if (location.pathname === rootPath) { + header = ( +