Skip to content

Commit

Permalink
Merge pull request #2077 from kuzzmi/fix/devdocs-menu-link
Browse files Browse the repository at this point in the history
Fixes an issue with not showing a link to dev docs
  • Loading branch information
Will Binns committed Jan 16, 2018
2 parents 4268d95 + 1213b3f commit 6303e1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions _includes/layout/base/head-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<li{% if page.id == 'community' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate community url %}">{% translate menu-community layout %}</a></li>
{% comment %}
After the developer-documentation page is translated, add the language
to the array below
to the condition below
{% endcomment %}
{% assign langs = [ 'en', 'uk' ] %}
{% if langs contains page.lang %}
{% if
page.lang == 'en' or
page.lang == 'uk'
%}
<li{% if page.id == 'developer-documentation' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate developer-documentation url %}">{% translate menu-developer-documentation layout %}</a></li>
{% endif %}
<li{% if page.id == 'vocabulary' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate vocabulary url %}">{% translate menu-vocabulary layout %}</a></li>
Expand Down

0 comments on commit 6303e1a

Please sign in to comment.