diff --git a/src/components/layout.js b/src/components/layout.js index 55a22d0..e0222fd 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -6,16 +6,9 @@ import { rhythm, scale } from '../utils/typography' class Template extends React.Component { render() { const { location, children } = this.props + const rootPath = `${__PATH_PREFIX__}/` let header - let rootPath = `/` - if ( - typeof window.__PREFIX_PATHS__ !== `undefined` && - window.__PREFIX_PATHS__ - ) { - rootPath = window.__PATH_PREFIX__ + `/` - } - if (location.pathname === rootPath) { header = (