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.