Skip to content

Commit

Permalink
added condition to include nav item only if url is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
umar8hassan committed Sep 24, 2024
1 parent dd17acd commit 2b6d6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course-v2/layouts/partials/nav_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
)
)
-}}
{{ else }}
{{ else if $url }}
<a class="text-dark nav-link"
data-uuid="{{ .menuItem.Identifier }}"
href="{{ $url }}">
Expand Down

0 comments on commit 2b6d6b1

Please sign in to comment.