Skip to content

Commit

Permalink
docs: fixing side nav in about section (#1445)
Browse files Browse the repository at this point in the history
fix: only highlight about this website on about page
  • Loading branch information
brianferry authored Jan 19, 2024
1 parent 40ecfc0 commit 06e27d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_includes/component/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<summary class="heading">About</summary>
<ul class="sub-menu">
<li class="item">
<a class="link {{ 'active' if page.url.startsWith('/about/') }}"
<a class="link {{ 'active' if page.url === '/about/' }}"
href="{{ '/about/' | url }}">About this website</a>
</li>
{%- for link in collections.about -%}
Expand Down

0 comments on commit 06e27d9

Please sign in to comment.