diff options
| author | Dan Allen <dan@opendevise.com> | 2018-03-27 01:18:39 -0600 |
|---|---|---|
| committer | Dan Allen <dan@opendevise.com> | 2018-03-27 01:18:39 -0600 |
| commit | a340c3c7b2fc499637c9ee9a8398bbabf0dc458c (patch) | |
| tree | ea8c3ac364e2c18291af9653e780758cf66d225b /src/partials | |
| parent | 2c27edd418505801267293642573027a608f3de0 (diff) | |
| download | alpine-antora-theme-a340c3c7b2fc499637c9ee9a8398bbabf0dc458c.tar.bz2 alpine-antora-theme-a340c3c7b2fc499637c9ee9a8398bbabf0dc458c.tar.xz | |
auto-activate explore panel if page.component is not set; don't show current component info
Diffstat (limited to 'src/partials')
| -rw-r--r-- | src/partials/navigation-explore.hbs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/partials/navigation-explore.hbs b/src/partials/navigation-explore.hbs index 9b15841..45a5ce6 100644 --- a/src/partials/navigation-explore.hbs +++ b/src/partials/navigation-explore.hbs @@ -1,8 +1,10 @@ -<div class="navigation-explore" data-panel="explore"> +<div class="navigation-explore{{#unless page.navigation}} is-active{{/unless}}" data-panel="explore"> + {{#if page.component}} <div class="current"> <span class="title">{{page.component.title}}</span> <span class="version">{{page.version}}</span> </div> + {{/if}} <ul class="components"> {{#each site.components}} <li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}"> |
