fix: Cataloging problem on /post #23
|
@ -10,7 +10,8 @@
|
||||||
|
|
||||||
const disableLinkPrev = pageN == 1;
|
const disableLinkPrev = pageN == 1;
|
||||||
const disableLinkNext = pageN == maxPageN;
|
const disableLinkNext = pageN == maxPageN;
|
||||||
const prevLink = pageN == 1 ? "/post" : `/page/${pageN - 1}`;
|
const firstPageLink = "/post";
|
||||||
|
const prevLink = pageN <= 2 ? firstPageLink : `/page/${pageN - 1}`;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul id="catalog" class="content">
|
<ul id="catalog" class="content">
|
||||||
|
@ -27,7 +28,7 @@
|
||||||
<a
|
<a
|
||||||
class="nav-link icon"
|
class="nav-link icon"
|
||||||
class:disabled-link={disableLinkPrev}
|
class:disabled-link={disableLinkPrev}
|
||||||
href="/post"><DoubleArrowLeft /></a>
|
href={firstPageLink}><DoubleArrowLeft /></a>
|
||||||
<a
|
<a
|
||||||
class="nav-link icon"
|
class="nav-link icon"
|
||||||
class:disabled-link={disableLinkPrev}
|
class:disabled-link={disableLinkPrev}
|
||||||
|
|
Loading…
Reference in New Issue