mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 23:38:07 +01:00
fix: pagination links
This commit is contained in:
parent
dddacfe29d
commit
e7331551d5
@ -33,10 +33,10 @@ const Pagination = ({
|
|||||||
return (
|
return (
|
||||||
<div className={styles['pagination']}>
|
<div className={styles['pagination']}>
|
||||||
<div className={styles['pagination__prev']}>
|
<div className={styles['pagination__prev']}>
|
||||||
<Link rel="prev" to={prevPagePath} className={prevClassName}>{PAGINATION.PREV_PAGE}</Link>
|
<Link rel="prev" to={hasPrevPage ? prevPagePath : '/'} className={prevClassName}>{PAGINATION.PREV_PAGE}</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles['pagination__next']}>
|
<div className={styles['pagination__next']}>
|
||||||
<Link rel="next" to={nextPagePath} className={nextClassName}>{PAGINATION.NEXT_PAGE}</Link>
|
<Link rel="next" to={hasNextPage ? nextPagePath : '/'} className={nextClassName}>{PAGINATION.NEXT_PAGE}</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user