This commit is contained in:
parent
cc876072c5
commit
66f702059c
|
@ -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>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
export let showReadingTime: boolean = true;
|
||||
export let post: Post;
|
||||
|
||||
const href = `/${post.path}`;
|
||||
const href = `/${post.path}/`;
|
||||
</script>
|
||||
|
||||
<a {href}>
|
||||
|
|
Loading…
Reference in a new issue