1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

fix project nav for real

This commit is contained in:
Matthias Kretschmann 2018-04-22 20:19:59 +02:00
parent 026edb8504
commit 270a83af42
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -9,7 +9,7 @@ const ProjectNav = ({ previous, next }) => (
<nav className="project__nav full-width">
{previous && (
<div className="project__nav__item">
<Link className="project__nav__link prev" to={previous.slug}>
<Link className="project__nav__link prev" to={`/${previous.slug}`}>
<img
className="project__nav__image"
src={images[previous.img]}
@ -28,7 +28,7 @@ const ProjectNav = ({ previous, next }) => (
</Link>
{next && (
<div className="project__nav__item">
<Link className="project__nav__link next" to={next.slug}>
<Link className="project__nav__link next" to={`/${next.slug}`}>
<img
className="project__nav__image"
src={images[next.img]}