import React from 'react' import { RouteHandler, Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import { config } from 'config' import BlogNav from '../BlogNav' import BlogSocial from '../BlogSocial' import './style.css' class SidebarLeft extends React.Component { render() { const {location, children} = this.props const isHome = location.pathname === prefixLink('/') let header = (
{ isHome ? (

{ config.siteAuthor }

) :

{ config.siteAuthor }

}

{ config.siteDescr }

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