import React from 'react' import { Link } from 'gatsby' import { rhythm, scale } from '../utils/typography' class Template extends React.Component { render() { const { location, children } = this.props let header let rootPath = `/` if ( typeof window.__PREFIX_PATHS__ !== `undefined` && window.__PREFIX_PATHS__ ) { rootPath = window.__PATH_PREFIX__ + `/` } if (location.pathname === rootPath) { header = (

Gatsby Starter Blog

) } else { header = (

Gatsby Starter Blog

) } return (
{header} {children}
) } } export default Template