diff --git a/src/components/atoms/Pagination.astro b/src/components/atoms/Pagination.astro index 1604c2d..f0b4026 100644 --- a/src/components/atoms/Pagination.astro +++ b/src/components/atoms/Pagination.astro @@ -1,5 +1,6 @@ --- import { Icon } from 'astro-icon'; +import { getPermalink } from '~/utils/permalinks'; const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } = Astro.props; --- @@ -8,7 +9,7 @@ const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } =
@@ -18,7 +19,7 @@ const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } =
{ case 'post': return createPath(basePathname, POST_BASE, _slug); + case 'raw': + return createPath(basePathname, trimSlash(slug)); + case 'page': default: return createPath(basePathname, _slug);