diff --git a/src/components/Header.astro b/src/components/Header.astro index 219e2fa..31c1a8e 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -3,6 +3,8 @@ import HeaderLink from "./HeaderLink.astro" import { SITE_TITLE, LINKS } from "../consts" const { isHidden = true } = Astro.props +const pathname = Astro.url.pathname +const path = pathname.match(/^\/$/) ? pathname : pathname.slice(0, -1) ---
-

{SITE_TITLE}

+

{SITE_TITLE}