zregvart commented on a change in pull request #195: [CAMEL 14581] 
Re-organizing sub-menus under "Projects" tab on the main-menu
URL: https://github.com/apache/camel-website/pull/195#discussion_r397098769
 
 

 ##########
 File path: antora-ui-camel/src/partials/header-content.hbs
 ##########
 @@ -1,22 +1,30 @@
 <header class="header">
   <nav class="navbar">
     <div class="navbar-brand">
-      <a class="nav-logo" href="{{siteRootPath}}"></a>
+      <a class="nav-logo" 
href="{{siteRootPath}}"><span>{{site.title}}</span></a>
       <div id="topbar-nav" class="navbar-menu">
         <div class="navbar-end">
           {{#withMenuData}}
             {{#each @items}}
                 {{#if children}}
                 <div class="navbar-item has-dropdown is-hoverable">
                 <a class="navbar-link navbar-topics" href="#">{{name}}</a>
+                {{else}}
+                <a class="navbar-item navbar-topics" 
href="{{../../siteRootPath}}{{url}}">{{name}}</a>
+                {{/if}}
+                {{#if children}}
                 <div class="navbar-dropdown">
                 {{#each children}}
+                  {{#hasPrefix url }}
                   <a class="navbar-item" href="{{url}}">{{name}}</a>
+                  {{else}}
+                  <a class="navbar-item" 
href="{{../../../siteRootPath}}{{url}}">{{name}}</a>
+                  {{/hasPrefix}}
                 {{/each}}
                 </div>
+                {{/if}}
+                {{#if children}}
                 </div>
-                {{else}}
-                <a class="navbar-item navbar-topics" 
href="{{url}}">{{name}}</a>
 
 Review comment:
   I don't think this was intentional

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to