fix: The previous and next pages carry baseurl (#292)

This commit is contained in:
jump-and-jump
2025-04-08 22:27:12 +08:00
committed by GitHub
parent 51cc65eba4
commit a19450ffb2
+2 -2
View File
@@ -51,7 +51,7 @@ const getPageUrl = (p: number) => {
---
<div class:list={[className, "flex flex-row gap-3 justify-center"]} style={style}>
<a href={url(page.url.prev || "")} aria-label={page.url.prev ? "Previous Page" : null}
<a href={page.url.prev || ""} aria-label={page.url.prev ? "Previous Page" : null}
class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.prev == undefined}
]}
@@ -73,7 +73,7 @@ const getPageUrl = (p: number) => {
>{p}</a>
})}
</div>
<a href={url(page.url.next || "")} aria-label={page.url.next ? "Next Page" : null}
<a href={page.url.next || ""} aria-label={page.url.next ? "Next Page" : null}
class:list={["btn-card overflow-hidden rounded-lg text-[var(--primary)] w-11 h-11",
{"disabled": page.url.next == undefined}
]}