Skip to content

Commit

Permalink
added /cookbook/
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdbrady committed Apr 28, 2024
1 parent d55fb67 commit 39b998e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HeaderLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { href, class: className, ...props } = Astro.props;
const { pathname } = Astro.url;
const subpath = pathname.match(/[^\/]+/g);
const isActive = href === pathname || href === '/' + subpath?.[0];
const isActive = href === pathname || href === '/cookbook/' + subpath?.[0];
---

<a href={href} class:list={[className, { active: isActive }]} {...props}>
Expand Down

0 comments on commit 39b998e

Please sign in to comment.