Skip to content

Commit

Permalink
add support for menu groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jjackzhn committed Oct 17, 2024
1 parent 4ee1f83 commit 07858d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/custom-navbar.yml.epp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ nav_bar:
- title: <%= $menu %>
links:
<% $contents.each |$item| { -%>
<% if $item[title] { -%>
- title: <%= $item[title] %>
icon: <%= $item[icon] %>
url: <%= $item[url] %>
new_tab: true
<% } -%>
<% elseif $item[group] { -%>
- group: "<%= $item[group] %>"
<% } -%>
<% else { -%>
- "<%= $item %>"
<% } -%>
<% } -%>
<% } -%>

- my interactive sessions
Expand Down

0 comments on commit 07858d1

Please sign in to comment.