don't output breadcrumbs ul if page.breadcrumbs is not set
authorDan Allen <dan@opendevise.com>
Tue, 27 Mar 2018 07:17:31 +0000 (01:17 -0600)
committerDan Allen <dan@opendevise.com>
Tue, 27 Mar 2018 07:17:31 +0000 (01:17 -0600)
src/partials/breadcrumbs.hbs

index 0ad0788..a860d34 100644 (file)
@@ -1,4 +1,5 @@
 <nav class="crumbs" role="navigation" aria-label="breadcrumbs">
+  {{#if page.breadcrumbs}}
   <ul>
     {{#with page.componentVersion}}
     {{#if (and ./title (not (or ./root (eq @root.page.breadcrumbs.0.content ./title))))}}
@@ -15,4 +16,5 @@
     </li>
     {{/each}}
   </ul>
+  {{/if}}
 </nav>