import React from 'react' import { Link } from 'react-router' import { Container } from 'react-responsive-grid' import { prefixLink } from 'gatsby-helpers' import { rhythm, fontSizeToMS } from 'utils/typography' import { config } from 'config' class Template extends React.Component { render () { const { location, children } = this.props let header if (location.pathname === prefixLink('/')) { header = (

{config.blogTitle}

) } else { header = (

{config.blogTitle}

) } return ( {header} {children} ) } } Template.propTypes = { children: React.PropTypes.any, location: React.PropTypes.object, route: React.PropTypes.object, } export default Template