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:
parent
026edb8504
commit
270a83af42
@ -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]}
|
||||
|
Loading…
Reference in New Issue
Block a user