Skip to content

Commit 93b9ac9

Browse files
authored
resolves #22 use navtitle for text of discrete breadcrumb (PR #23)
1 parent 9a47d48 commit 93b9ac9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/partials/breadcrumbs.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
{{/with}}
99
{{#each page.breadcrumbs}}
1010
<li>
11-
{{~#if (and ./discrete (endsWith ./content ' Documentation'))~}}
12-
<a href="{{{relativize ./url}}}">Introduction</a>
11+
{{~#if ./discrete~}}
12+
{{!-- TODO: remove the exception for discrete once the UI model uses the navtitle for discrete/orphan pages --}}
13+
<a href="{{{relativize ./url}}}" class="discrete">{{#with (resolvePage @root.page.relativeSrcPath model=false)}}{{{./asciidoc.navtitle}}}{{/with}}</a>
1314
{{~else if (and ./url (eq ./urlType 'internal'))~}}
1415
<a href="{{{relativize ./url}}}">{{{./content}}}</a>
1516
{{~else~}}

0 commit comments

Comments
 (0)