{{!-- {{#with page.versions}} --}}
{{#if page.component}}
<div class="page-versions">
  <div class="backdrop"></div>
  <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>

  {{#with site.components.[0]}}
  <div class="version-menu">
    {{#each ./versions}}
    <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 ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">v{{./displayVersion}}</a>
    {{/each}}
  </div>
  {{/with}}
</div>
{{/if}}
{{!-- {{/with}} --}}
