Skip to content

Commit 85ef63c

Browse files
committed
add API to top navbar
1 parent cd6cb50 commit 85ef63c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/navigation/top-navigation.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
<li class="top-navigation__item {% if current_path and current_path == '/' %}active{% endif %}">
33
<a href="/">Features</a>
44
</li>
5-
<li class="top-navigation__item {% if current_path and current_path is starting_with('/documentation/') %}active{% endif %}">
5+
<li class="top-navigation__item {% if current_path and current_path is starting_with('/documentation/') and not current_path is starting_with('/documentation/api/') %}active{% endif %}">
66
<a href="/documentation/getting-started/">Docs</a>
77
</li>
8+
<li class="top-navigation__item {% if current_path and current_path is starting_with('/documentation/api/') %}active{% endif %}">
9+
<a href="/documentation/api/">API</a>
10+
</li>
811
<li class="top-navigation__item {% if current_path and current_path is starting_with('/tutorials/exercises/') %}active{% endif %}">
912
<a href="/tutorials/exercises/basic">Exercises</a>
1013
</li>

0 commit comments

Comments
 (0)