use title of component version instead of component in nav menu
authorDan Allen <dan@opendevise.com>
Thu, 9 Apr 2020 09:56:29 +0000 (03:56 -0600)
committerDan Allen <dan@opendevise.com>
Thu, 9 Apr 2020 21:57:29 +0000 (21:57 +0000)
src/partials/nav-menu.hbs

index 912dd0f..59be5f2 100644 (file)
@@ -1,7 +1,9 @@
 {{#with page.navigation}}
 <div class="nav-panel-menu is-active" data-panel="menu">
   <nav class="nav-menu">
-    <h3 class="title"><a href="{{relativize @root.page.componentVersion.url}}">{{@root.page.component.title}}</a></h3>
+    {{#with @root.page.componentVersion}}
+    <h3 class="title"><a href="{{relativize ./url}}">{{./title}}</a></h3>
+    {{/with}}
 {{> nav-tree navigation=this}}
   </nav>
 </div>