Skip to content

Commit

Permalink
Added current page to navigation bar links
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascumsille committed Apr 30, 2024
1 parent 977fbf2 commit eb03798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/web/base/main_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
[% BLOCK navitem ~%]
<li [% liattrs | safe %]>
[%~ IF c.req.uri.path == uri AND NOT always_url ~%]
<span [% attrs | safe %]>[% label %]</span>
<span [% attrs | safe %]>[% label %]
<span class="screen-reader-only">(current page)</span>
</span>
[%~ ELSE ~%]
<a href="[% uri %][% suffix IF suffix %]" [% attrs | safe %]>[% label %]</a>
[%~ END ~%]
Expand Down

0 comments on commit eb03798

Please sign in to comment.