From 6db5024071d7c1d093cbf699bad22a9819d7fab5 Mon Sep 17 00:00:00 2001 From: "Xql.dev" <205849173+KirobotDev@users.noreply.github.com> Date: Sat, 1 Aug 2026 03:54:22 +0700 Subject: [PATCH] Just Add style for footer is not end page --- src/layouts/BaseLayout.astro | 38 +++++++++++++++++++++--------------- src/pages/404.astro | 37 +++++++++++++++++++++++++++++++---- 2 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index fcc23d3..0286455 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -10,6 +10,7 @@ const { image, lang = "en", ogType = "website", + hideFooter = false, } = Astro.props; const site = Astro.site ?? new URL(Astro.url.origin); @@ -20,9 +21,11 @@ const metaDescription = const pageTitle = title.includes("Legcord") ? title : `${title} | Legcord`; let pathname = Astro.url.pathname; -if (pathname.length > 1 && pathname.endsWith("/")) pathname = pathname.slice(0, -1); +if (pathname.length > 1 && pathname.endsWith("/")) + pathname = pathname.slice(0, -1); const canonicalPath = canonicalProp ?? (pathname || "/"); -const canonicalURL = new URL(canonicalPath === "/" ? "/" : canonicalPath, site).href; +const canonicalURL = new URL(canonicalPath === "/" ? "/" : canonicalPath, site) + .href; const ogImagePath = image ?? "/logo.png"; const ogImageURL = new URL(ogImagePath, site).href; @@ -51,7 +54,10 @@ const ogImageURL = new URL(ogImagePath, site).href;
The page you are looking for does not exist or has been moved.