Skip to content

Commit 0de431f

Browse files
committed
hide version if display version is default instead of current
1 parent 788ffe7 commit 0de431f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/partials/article-404.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ If you typed the URL of this page manually, please double check that you entered
1515
{{#each site.components}}
1616
{ name: "{{{./name}}}", title: "{{{./title}}}", url: "{{{@root.site.path}}}{{{./url}}}", prefix: "{{{@root.site.path}}}/{{{./name}}}" },
1717
{{#each ./versions}}
18-
{{#unless (eq ./version 'master')}}
18+
{{#if ./version}}
1919
{ name: "{{{./name}}}", title: "{{{./title}}}", version: "{{{./version}}}", url: "{{{@root.site.path}}}{{{./url}}}", prefix: "{{{@root.site.path}}}/{{{./name}}}/{{{./version}}}" },
20-
{{/unless}}
20+
{{/if}}
2121
{{/each}}
2222
{{/each}}
2323
].reduce(function (accum, it) {

src/partials/nav-explore.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
{{#if page.component}}
33
<div class="context">
44
<span class="title">{{page.component.title}}</span>
5-
<span class="version">{{#unless (eq page.componentVersion.displayVersion 'current')}}{{page.componentVersion.displayVersion}}{{/unless}}</span>
5+
<span class="version">{{#unless (eq page.componentVersion.displayVersion 'default')}}{{page.componentVersion.displayVersion}}{{/unless}}</span>
66
</div>
77
{{/if}}
88
<ul class="components">
99
{{#each (rearrange site.components 'name' componentOrder)}}
1010
<li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
1111
<a class="title" href="{{{relativize ./url}}}">{{{./title}}}</a>
12-
{{#if (or ./versions.[1] (ne ./versions.[0].displayVersion 'current'))}}
12+
{{#if (or ./versions.[1] (ne ./versions.[0].displayVersion 'default'))}}
1313
<ul class="versions">
1414
{{#each ./versions}}
1515
<li class="version

0 commit comments

Comments
 (0)