import React from 'react' import { RouteHandler, Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import { config } from 'config' import SiteNav from '../SiteNav' import SiteLinks from '../SiteLinks' import './style.css' class SiteSidebar 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 }
); } } SiteSidebar.propTypes = { children: React.PropTypes.any, location: React.PropTypes.object, } export default SiteSidebar