import React from 'react'; import { RouteHandler, Link } from 'react-router'; import { Container, Grid, Breakpoint, Span } from 'react-responsive-grid'; import Typography from 'typography'; import { link } from 'gatsby-helpers'; let typography = new Typography(); let rhythm = typography.rhythm, fontSizeToMS = typography.fontSizeToMS; import '../css/styles.css'; export default class extends React.Component { render() { let header; if (this.props.state.path === link('/')) { header = (

{this.props.config.blogTitle}

); } else { header = (

{this.props.config.blogTitle}

); } return ( {header} ); } }