Skip to content

Commit

Permalink
fix(menu): overview href is generated twice
Browse files Browse the repository at this point in the history
fix #575
  • Loading branch information
vogloblinsky committed May 27, 2018
1 parent 621e865 commit 5479515
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/templates/partials/menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,18 @@ customElements.define('compodoc-menu', class extends HTMLElement {
<ul class="links">
{{#if readme}}
<li class="link">
<a {{#compare context "===" 'readme'}} href="overview.html" {{/compare}}
{{#compare context "===" 'overview'}} href="overview.html" {{/compare}}
{{#compare context "!==" 'overview'}} href="overview.html" {{/compare}}
{{#compare context "!==" 'readme'}} href="overview.html" {{/compare}}
data-type="chapter-link">
<a href="overview.html" data-type="chapter-link">
<span class="fa fa-fw fa-th"></span>Overview
</a>
</li>
<li class="link">
<a href="index.html" data-type="chapter-link"><span class="fa fa-file-text-o"></span>README</a>
<a href="index.html" data-type="chapter-link">
<span class="fa fa-file-text-o"></span>README
</a>
</li>
{{else}}
<li class="link">
<a href="index.html"
data-type="chapter-link">
<a href="index.html" data-type="chapter-link">
<span class="fa fa-fw fa-th" ></span>Overview
</a>
</li>
Expand Down Expand Up @@ -359,12 +356,12 @@ customElements.define('compodoc-menu', class extends HTMLElement {
Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
{{#if theme }}
{{#compare theme "indexof" 'readthedocs,vagrant,postmark'}}
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise-inverted.svg" class="img-responsive" data-type="compodoc-logo">
<img data-src="images/compodoc-vectorise-inverted.svg" class="img-responsive" data-type="compodoc-logo">
{{else}}
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
<img data-src="images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
{{/compare}}
{{else}}
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
<img data-src="images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
{{/if}}
</a>
</li>
Expand Down

0 comments on commit 5479515

Please sign in to comment.