From 5ed41bb7954142e7b8e04beb63aea04a1eaebf93 Mon Sep 17 00:00:00 2001 From: Yaacov Date: Wed, 22 Jul 2026 16:40:26 +0300 Subject: [PATCH] Add Home to primary navigation --- src/layouts/Layout.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index b1e5b57..a817ec1 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -24,7 +24,8 @@ const brandIcon = theme === "light" ? "/scient-symbol.svg" : "/icon.png"; const currentPath = Astro.url.pathname; const primaryLinks = [ - { href: "/about", label: "About", active: currentPath === "/about" }, + { href: "/", label: "Home", active: currentPath === "/" }, + { href: "/about", label: "About", active: currentPath.startsWith("/about") }, { href: "/docs", label: "Docs", active: currentPath.startsWith("/docs") }, ] as const; ---