projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dea0724
)
don't output breadcrumbs ul if page.breadcrumbs is not set
author
Dan Allen
<dan@opendevise.com>
Tue, 27 Mar 2018 07:17:31 +0000
(
01:17
-0600)
committer
Dan Allen
<dan@opendevise.com>
Tue, 27 Mar 2018 07:17:31 +0000
(
01:17
-0600)
src/partials/breadcrumbs.hbs
patch
|
blob
|
history
diff --git
a/src/partials/breadcrumbs.hbs
b/src/partials/breadcrumbs.hbs
index
0ad0788
..
a860d34
100644
(file)
--- a/
src/partials/breadcrumbs.hbs
+++ b/
src/partials/breadcrumbs.hbs
@@
-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>