Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
style: MMP title hidden on home
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed May 30, 2024
1 parent 42627c4 commit 133138a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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)
---
<script>
class NavbarHamburger extends HTMLElement {
Expand All @@ -28,9 +30,8 @@ const { isHidden = true } = Astro.props
</script>

<header>
<h2><a class="hover:text-gray-600 decoration-0" href="/">{SITE_TITLE}</a></h2>
<h2><a class={pathname !== "/" ? `hover:text-gray-600 decoration-0` : "hidden"} href="/">{SITE_TITLE}</a></h2>
<nav>

<div class="hidden lg:flex">
{
LINKS.map((data) =>
Expand Down

0 comments on commit 133138a

Please sign in to comment.