Commit 1f8e9127 authored by 박민석's avatar 박민석

rollback

parent cc157e13
Pipeline #21049 passed with stages
in 3 minutes and 55 seconds
<div class="nav-container"{{#if page.component}} data-component="{{page.component.name}}" data-version="{{page.version}}"{{/if}}> <div class="nav-container"{{#if page.component}} data-component="{{page.component.name}}" data-version="{{page.version}}"{{/if}}>
<aside class="nav"> <aside class="nav">
<div class="panels"> <div class="panels">
{{> page-versions}} {{!-- {{> page-versions}} --}}
{{> nav-menu}} {{> nav-menu}}
{{> nav-explore}} {{> nav-explore}}
</div> </div>
......
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
<h2 class="title"><a href="{{{relativize ./url}}}">{{page.component.title}}</a></h2> <h2 class="title"><a href="{{{relativize ./url}}}">{{page.component.title}}</a></h2>
<button class="version-menu-toggle" title="Show other versions of page">{{#if (or page.componentVersion.version (ne page.componentVersion.displayVersion 'default'))}}v{{page.componentVersion.displayVersion}}{{/if}}</button> <button class="version-menu-toggle" title="Show other versions of page">{{#if (or page.componentVersion.version (ne page.componentVersion.displayVersion 'default'))}}v{{page.componentVersion.displayVersion}}{{/if}}</button>
{{#each site.components}} {{#with site.components.[0]}}
{{#if (or ./versions.[1] ./versions.[0].version (ne ./versions.[0].displayVersion 'default'))}}
<div class="version-menu"> <div class="version-menu">
{{#each ./versions}} {{#each ./versions}}
<a class="version <a class="version
{{!-- {{~#if (eq ./version @root.page.version)}} is-current{{/if~}} --}}
{{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}} {{~#if (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latest)}} is-latest{{/if}}" href="{{{relativize ./url}}}">v{{this.displayVersion}}</a> {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">v{{./displayVersion}}</a>
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/with}}
{{/each}}
</div> </div>
{{/if}} {{/if}}
{{!-- {{/with}} --}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment