fix: Cataloging problem on /post #23

Merged
aniva merged 6 commits from post/page into main 2024-10-18 11:17:32 -07:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 401db3787e - Show all commits

View File

@ -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}