2017-03-08 17:30:14 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Link } from 'react-router';
|
|
|
|
import { prefixLink } from 'gatsby-helpers';
|
|
|
|
import './style.css';
|
2016-03-11 23:28:19 +01:00
|
|
|
|
2016-06-03 13:05:50 +02:00
|
|
|
class SiteNav extends React.Component {
|
2017-03-08 17:30:14 +01:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<nav className="blog-nav">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<Link to={prefixLink('/')} activeClassName="current" onlyActiveOnIndex> Articles
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Link to={prefixLink('/about/')} activeClassName="current"> About me
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<Link to={prefixLink('/contact/')} activeClassName="current"> Contact me
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
);
|
|
|
|
}
|
2016-03-11 23:28:19 +01:00
|
|
|
}
|
|
|
|
|
2017-03-08 17:30:14 +01:00
|
|
|
export default SiteNav;
|