diff --git a/src/lib/components/PostList.svelte b/src/lib/components/PostList.svelte index 1c4968e..d2de152 100644 --- a/src/lib/components/PostList.svelte +++ b/src/lib/components/PostList.svelte @@ -10,7 +10,8 @@ const disableLinkPrev = pageN == 1; const disableLinkNext = pageN == maxPageN; - const prevLink = pageN == 1 ? "/post" : `/page/${pageN - 1}`; + const firstPageLink = "/post"; + const prevLink = pageN <= 2 ? firstPageLink : `/page/${pageN - 1}`;