From 0453dcf49e8c7ed6f8f0c9f3ffd02f8be2f84150 Mon Sep 17 00:00:00 2001 From: John Dunning Date: Wed, 17 Jan 2024 23:11:22 -0800 Subject: [PATCH] Add a max-width to the HeaderNav --- packages/astro/src/components/HeaderNav.astro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/components/HeaderNav.astro b/packages/astro/src/components/HeaderNav.astro index 96daa5f..861240c 100644 --- a/packages/astro/src/components/HeaderNav.astro +++ b/packages/astro/src/components/HeaderNav.astro @@ -10,12 +10,12 @@ const routes = [ ]; // because of annoying differences between dev and build modes, due to this // behavior (https://github.com/withastro/astro/issues/5630), always remove - // any trailing slash so currentPath can match the paths above + // any trailing slash so currentPage can match the pages above const fullPath = Astro.url.pathname.replace(/\/$/, ""); -const currentPath = fullPath.slice(fullPath.lastIndexOf("/") + 1); +const currentPage = fullPath.slice(fullPath.lastIndexOf("/") + 1); --- -