Skip to content

Commit f6f4913

Browse files
authored
update logic to check for root pages (#864)
1 parent a85a636 commit f6f4913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partials/toolbar/breadcrumbs.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<li class="flex align-center li">
2323
<p>{{{./content}}}{{#if (and (not (is-null @root.page.version)) (not (is-one-of @root.page.version 'default' 'latest' 'master' '~')) (or (eq ./url @root.page.breadcrumbs.0.url) (and (ends-with ./url "index.html"))))}} <span class="breadcrumbs-item-version">({{ @root.page.version }})</span>{{/if}}</p>
2424
</li>
25-
{{else if (ne ./url @root.page.breadcrumbs.0.url)}}
25+
{{else if (not ./root)}}
2626
<li class="flex align-center li"><a class="link" href="{{{relativize ./url}}}">{{{./content}}}</a></li>
2727
{{/if}}
2828
{{/if}}

0 commit comments

Comments
 (0)