Skip to content

Commit

Permalink
highlight active menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
colegoldsmith committed Apr 29, 2024
1 parent dfe08c5 commit 9167bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/global-nav.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{#each ./items}}
<li>
<a
class="!no-underline w-full py-1 px-3 block hover:bg-level1 transition-colors"
class="!no-underline w-full py-1 px-3 block hover:bg-level1 transition-colors {{#if (global-nav-active this)}}bg-level1 font-semibold{{/if}}"
href="{{#if (eq urlType 'internal')}}{{{relativize url}}}{{else}}{{{url}}}{{/if}}"
{{#if (eq ./urlType 'external')}}target="_blank"{{/if}}>
{{{title}}}
Expand Down

0 comments on commit 9167bc7

Please sign in to comment.