diff options
| author | Dan Allen <dan@opendevise.com> | 2018-03-18 15:59:09 -0600 |
|---|---|---|
| committer | Dan Allen <dan@opendevise.com> | 2018-03-18 15:59:09 -0600 |
| commit | 10e6703690f4f0a83e900dfd8857d9ec9710efa8 (patch) | |
| tree | 03943c939957147fc84af2a3cfeeabe5435252af /src | |
| parent | 3a3f027cad40df563d1897daf4aee763613a4f7c (diff) | |
| download | alpine-antora-theme-10e6703690f4f0a83e900dfd8857d9ec9710efa8.tar.bz2 alpine-antora-theme-10e6703690f4f0a83e900dfd8857d9ec9710efa8.tar.xz | |
use correct component version in root navigation entry
- use page.componentVersion instead of page.component to retrieve URL for current component version
Diffstat (limited to 'src')
| -rw-r--r-- | src/partials/breadcrumbs.hbs | 2 | ||||
| -rw-r--r-- | src/partials/navigation-menu.hbs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/partials/breadcrumbs.hbs b/src/partials/breadcrumbs.hbs index 20329f8..0ad0788 100644 --- a/src/partials/breadcrumbs.hbs +++ b/src/partials/breadcrumbs.hbs @@ -1,6 +1,6 @@ <nav class="crumbs" role="navigation" aria-label="breadcrumbs"> <ul> - {{#with page.component}} + {{#with page.componentVersion}} {{#if (and ./title (not (or ./root (eq @root.page.breadcrumbs.0.content ./title))))}} <li class="crumb"><a href="{{{relativize @root.page.url ./url}}}">{{{./title}}}</a></li> {{/if}} diff --git a/src/partials/navigation-menu.hbs b/src/partials/navigation-menu.hbs index 02119fb..bd207b0 100644 --- a/src/partials/navigation-menu.hbs +++ b/src/partials/navigation-menu.hbs @@ -1,6 +1,6 @@ <div class="navigation-menu is-active" data-panel="menu"> <nav class="nav-menu"> - <h3 class="title"><a href="{{relativize page.url page.component.url}}">{{page.component.title}}</a></h3> + <h3 class="title"><a href="{{relativize page.url page.componentVersion.url}}">{{page.component.title}}</a></h3> {{> navigation-tree navigation=page.navigation}} </nav> </div> |
