summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Allen <dan@opendevise.com>2018-12-07 00:15:25 +0000
committerDan Allen <dan@opendevise.com>2018-12-07 00:15:25 +0000
commit7f82c4480295c7179dfd42a0a5e6692714f5a96b (patch)
treedcc0f918026817ffffe4857c4335aa2bd7b39e9a
parent0cf80b9586022d155c9bfd858438424fb8741796 (diff)
parent85bd7302c516f62274ee0bdac85ebffb464132be (diff)
downloadalpine-antora-theme-7f82c4480295c7179dfd42a0a5e6692714f5a96b.tar.bz2
alpine-antora-theme-7f82c4480295c7179dfd42a0a5e6692714f5a96b.tar.xz
merge !59
resolves #66 show displayVersion instead of version for page / component
-rw-r--r--src/partials/navigation-explore.hbs4
-rw-r--r--src/partials/page-versions.hbs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/partials/navigation-explore.hbs b/src/partials/navigation-explore.hbs
index 7db70db..7a6d7ba 100644
--- a/src/partials/navigation-explore.hbs
+++ b/src/partials/navigation-explore.hbs
@@ -2,7 +2,7 @@
{{#if page.component}}
<div class="context">
<span class="title">{{page.component.title}}</span>
- <span class="version">{{page.version}}</span>
+ <span class="version">{{page.componentVersion.displayVersion}}</span>
</div>
{{/if}}
<ul class="components">
@@ -14,7 +14,7 @@
<li class="version
{{~#if (and (eq ../this @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latestVersion)}} is-latest{{/if}}">
- <a href="{{{relativize @root.page.url ./url}}}">{{./version}}</a>
+ <a href="{{{relativize @root.page.url ./url}}}">{{./displayVersion}}</a>
</li>
{{/each}}
</ul>
diff --git a/src/partials/page-versions.hbs b/src/partials/page-versions.hbs
index 9439f83..51f6842 100644
--- a/src/partials/page-versions.hbs
+++ b/src/partials/page-versions.hbs
@@ -1,11 +1,11 @@
{{#if page.versions}}
<div class="page-versions">
- <button class="versions-menu-toggle" title="Show other versions of page">{{page.version}}</button>
+ <button class="versions-menu-toggle" title="Show other versions of page">{{page.componentVersion.displayVersion}}</button>
<div class="versions-menu">
{{#each page.versions}}
<a class="version
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
- {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url ./url}}}">{{./version}}</a>
+ {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url ./url}}}">{{./displayVersion}}</a>
{{/each}}
</div>
</div>