From 61c6ec81b8e302d059393fb3a7d413d2be3189af Mon Sep 17 00:00:00 2001 From: satnaing Date: Sat, 8 Mar 2025 17:38:30 +0700 Subject: [PATCH] fix: remove unused back url in the card url --- src/pages/posts/[...page].astro | 4 +--- src/pages/tags/[tag]/[...page].astro | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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}` : "/";
    { page.data.map(({ data, id }) => ( - + )) }