Skip to content

Commit 8da07dc

Browse files
committed
Show both stable and LTS docs links on homepage
Fixes: #305
1 parent 7a70ce5 commit 8da07dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

layouts/index.hbs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@
5050
<a href="https://github.com/nodejs/node/blob/{{ project.currentVersions.lts }}/CHANGELOG.md">{{ labels.lts }}</a>
5151
&#47; <a href="https://github.com/nodejs/node/blob/{{ project.currentVersions.stable }}/CHANGELOG.md">{{ labels.stable }}</a>
5252
</li>
53-
<li><a href="{{ site.docs.api.link }}">{{ labels.api }}</a></li>
53+
<li>
54+
{{#if project.currentVersions.stable}}
55+
{{ labels.api }}: <a href="https://nodejs.org/dist/{{ project.currentVersions.lts }}/docs/api/">{{ labels.lts }}</a>
56+
&#47; <a href="{{ site.docs.api.link }}">{{ labels.stable }}</a>
57+
{{else}}
58+
<a href="{{ site.docs.api.link }}">{{ labels.api }}</a>
59+
{{/if}}
60+
</li>
5461
</ul>
5562

5663
</div>

0 commit comments

Comments
 (0)