import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import { config } from 'config'; import SiteNav from '../SiteNav'; import SiteLinks from '../SiteLinks'; import './style.css'; import profilePic from '../../pages/photo.jpg'; class SiteSidebar extends React.Component { render() { const { location } = this.props; const isHome = location.pathname === prefixLink('/'); /* eslint-disable jsx-a11y/img-redundant-alt*/ const header = (
Profile picture of the author { isHome ? (

{config.siteAuthor}

) :

{config.siteAuthor}

}

{config.siteDescr}

); /* eslint-enable jsx-a11y/img-redundant-alt*/ return (
{header}
); } } SiteSidebar.propTypes = { location: React.PropTypes.object, }; export default SiteSidebar;