diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 11637a1..be5f8b2 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -9,7 +9,14 @@ export interface Props { links: Array; } -const { links } = Astro.props; +let { links } = Astro.props; + +if (Astro.url.pathname !== "/") { + links = [{ + url: "/", + icon: "home", + }].concat(links); +} ---