From 133138ad321cc0d28280ab5da39d332091d7d0ef Mon Sep 17 00:00:00 2001 From: Heather Yu <35639529+hetd54@users.noreply.github.com> Date: Thu, 30 May 2024 11:38:16 -0400 Subject: [PATCH] style: MMP title hidden on home --- src/components/Header.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}