Fix broken links
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Kaan Barmore-Genç 2024-07-08 17:34:24 -05:00
parent cc876072c5
commit 66f702059c
2 changed files with 4 additions and 4 deletions

View file

@ -40,14 +40,14 @@
<Button disabled={data.page < 3} href={'/posts/'}
><ArrowLineLeft aria-label="first page" /></Button
>
<Button disabled={data.page === 1} href={data.page === 2 ? '/posts/' : `/posts/${data.page - 1}`}
<Button disabled={data.page === 1} href={data.page === 2 ? '/posts/' : `/posts/${data.page - 1}/`}
><ArrowLeft aria-label="previous page" /></Button
>
<span class="current-page">{data.page}</span>
<Button disabled={!data.hasMore} href="/posts/{data.page + 1}"
<Button disabled={!data.hasMore} href="/posts/{data.page + 1}/"
><ArrowRight aria-label="next page" /></Button
>
<Button disabled={data.page > data.pageCount - 2} href="/posts/{data.pageCount}"
<Button disabled={data.page > data.pageCount - 2} href="/posts/{data.pageCount}/"
><ArrowLineRight aria-label="last page" /></Button
>
</div>

View file

@ -6,7 +6,7 @@
export let showReadingTime: boolean = true;
export let post: Post;
const href = `/${post.path}`;
const href = `/${post.path}/`;
</script>
<a {href}>