Skip to content

Commit 5479515

Browse files
committed
fix(menu): overview href is generated twice
fix #575
1 parent 621e865 commit 5479515

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/templates/partials/menu.hbs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,18 @@ customElements.define('compodoc-menu', class extends HTMLElement {
2323
<ul class="links">
2424
{{#if readme}}
2525
<li class="link">
26-
<a {{#compare context "===" 'readme'}} href="overview.html" {{/compare}}
27-
{{#compare context "===" 'overview'}} href="overview.html" {{/compare}}
28-
{{#compare context "!==" 'overview'}} href="overview.html" {{/compare}}
29-
{{#compare context "!==" 'readme'}} href="overview.html" {{/compare}}
30-
data-type="chapter-link">
26+
<a href="overview.html" data-type="chapter-link">
3127
<span class="fa fa-fw fa-th"></span>Overview
3228
</a>
3329
</li>
3430
<li class="link">
35-
<a href="index.html" data-type="chapter-link"><span class="fa fa-file-text-o"></span>README</a>
31+
<a href="index.html" data-type="chapter-link">
32+
<span class="fa fa-file-text-o"></span>README
33+
</a>
3634
</li>
3735
{{else}}
3836
<li class="link">
39-
<a href="index.html"
40-
data-type="chapter-link">
37+
<a href="index.html" data-type="chapter-link">
4138
<span class="fa fa-fw fa-th" ></span>Overview
4239
</a>
4340
</li>
@@ -359,12 +356,12 @@ customElements.define('compodoc-menu', class extends HTMLElement {
359356
Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
360357
{{#if theme }}
361358
{{#compare theme "indexof" 'readthedocs,vagrant,postmark'}}
362-
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise-inverted.svg" class="img-responsive" data-type="compodoc-logo">
359+
<img data-src="images/compodoc-vectorise-inverted.svg" class="img-responsive" data-type="compodoc-logo">
363360
{{else}}
364-
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
361+
<img data-src="images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
365362
{{/compare}}
366363
{{else}}
367-
<img data-src="{{relativeURL data.depth }}images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
364+
<img data-src="images/compodoc-vectorise.svg" class="img-responsive" data-type="compodoc-logo">
368365
{{/if}}
369366
</a>
370367
</li>

0 commit comments

Comments
 (0)