Skip to content

Commit 64fc570

Browse files
committed
Add adopters to navbar
1 parent 9666773 commit 64fc570

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

_includes/header-navigation.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,23 @@
3232
{% endif %}
3333
<a href="{{site.baseurl}}/releases/" class="{% if page.url contains '/release/' %}active{% endif %}">Releases</a>
3434
</li>
35-
{% if page.url contains "community" %}
35+
{% assign is_community = false %}
36+
{% if page.url contains "community" %}{% assign is_community = true %}{% endif %}
37+
{% assign is_adopters = false %}
38+
{% if page.url contains "community/users" %}{% assign is_adopters = true %}{% endif %}
39+
{% if is_community and is_adopters == false %}
3640
<li class="active">
3741
{% else %}
3842
<li>
3943
{% endif %}
40-
<a href="{{site.baseurl}}/community/" class="{% if page.url contains '/community/' %}active{% endif %}">Community</a>
44+
<a href="{{site.baseurl}}/community/" class="{% if is_community and is_adopters == false %}active{% endif %}">Community</a>
45+
</li>
46+
{% if is_community and is_adopters %}
47+
<li class="active">
48+
{% else %}
49+
<li>
50+
{% endif %}
51+
<a href="{{site.baseurl}}/community/users" class="{% if is_community and is_adopters %}active{% endif %}">Adopters</a>
4152
</li>
4253
{% if page.url contains "blog" %}
4354
<li class="active">

0 commit comments

Comments
 (0)