diff --git a/src/pages/posts/[...page].astro b/src/pages/posts/[...page].astro index 9b39769..026673e 100644 --- a/src/pages/posts/[...page].astro +++ b/src/pages/posts/[...page].astro @@ -16,8 +16,6 @@ export const getStaticPaths = (async ({ paginate }) => { }) satisfies GetStaticPaths; const { page } = Astro.props; - -const backUrl = SITE.showBackButton ? `?from=${Astro.url.pathname}` : "/"; --- @@ -26,7 +24,7 @@ const backUrl = SITE.showBackButton ? `?from=${Astro.url.pathname}` : "/"; diff --git a/src/pages/tags/[tag]/[...page].astro b/src/pages/tags/[tag]/[...page].astro index d4f9f9f..fcb8a4a 100644 --- a/src/pages/tags/[tag]/[...page].astro +++ b/src/pages/tags/[tag]/[...page].astro @@ -29,8 +29,6 @@ export async function getStaticPaths({ paginate }: GetStaticPathsOptions) { const params = Astro.params; const { tag } = params; const { page, tagName } = Astro.props; - -const backUrl = SITE.showBackButton ? `?from=${Astro.url.pathname}` : "/"; --- @@ -44,7 +42,7 @@ const backUrl = SITE.showBackButton ? `?from=${Astro.url.pathname}` : "/";