Skip to content

Commit

Permalink
Modified header with nav menus aligned with the new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezg committed Apr 4, 2024
1 parent 6e274b8 commit 2788fbe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@
</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">
{{!-- TODO: replace hard-coded reference to Basics page with dynamic filter that selects the component home::basics.adoc --}}
<a class="navbar-item" href="/home/basics.html">Basics</a>
<a class="navbar-item" href="{{relativize (resolveComponentReference site.components 'home' 'Basics')}}">Basics</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">Guides</a>
<div class="navbar-dropdown">
{{#each site.components }}
{{#if (or (eq this.asciidoc.attributes.type 'guide')
(and (eq this.asciidoc.attributes.type 'tutorial') (eq this.asciidoc.attributes.group 'advanced'))) }}
<a class="navbar-item" href="{{{relativize this.url}}}">{{this.title}}</a>
{{/if}}
{{#each (resolveComponentNavigation site.components 'home' 'Guides')}}
<a class="navbar-item" href="{{relativize this.url}}">{{this.content}}</a>
{{/each}}
</div>
</div>
Expand Down

0 comments on commit 2788fbe

Please sign in to comment.