Update navigation

- Simplify nav header
 - Use index for main Dev Doc page (instead of separate page)
This commit is contained in:
thephez 2017-12-07 15:53:18 -05:00
parent cdbe28f410
commit 58400dd4eb
7 changed files with 45 additions and 27 deletions

View file

@ -30,7 +30,7 @@ http://opensource.org/licenses/MIT.
{% when "dash" %}<a href="/{{page.lang}}/">{% translate dash vocabulary %}</a>
{% when "dev docs" %}<a href="/en/developer-documentation">Developer Documentation</a>
{% when "dev docs" %}<a href="/en/">Developer Documentation</a>
{% when "glossary" %}<a href="/en/developer-glossary">Glossary</a>
{% else %}{% die "Breadcrumb not found in _includes/layout/breadcrumbs.html" %}
{% endcase %}

View file

@ -4,15 +4,23 @@ http://opensource.org/licenses/MIT.
{% endcomment %}
<ul id="menusimple" class="menusimple menumain" onclick="mobileMenuHover(event);" ontouchstart="mobileMenuHover(event);">
<li><a>{% translate menu-intro layout %}</a>
<li{% if page.id == 'bitcoin-for-developers' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate bitcoin-for-developers url %}">{% translate menu-bitcoin-for-developers layout %}</a></li>
<!--{% if page.lang == 'en' %}<li{% if page.id == 'developer-documentation' %} class="active"{% endif %}><a href="/en/developer-documentation">Documentation</a></li>{% endif %}-->
<li><a>{% translate menu-documentation layout %}</a>
<ul>
<!--
<li{% if page.id == 'bitcoin-for-individuals' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate bitcoin-for-individuals url %}">{% translate menu-bitcoin-for-individuals layout %}</a></li>
<li{% if page.id == 'bitcoin-for-businesses' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate bitcoin-for-businesses url %}">{% translate menu-bitcoin-for-businesses layout %}</a></li>
-->
<li{% if page.id == 'bitcoin-for-developers' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate bitcoin-for-developers url %}">{% translate menu-bitcoin-for-developers layout %}</a></li>
<li{% if page.id == 'getting-started' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate getting-started url %}">{% translate menu-getting-started layout %}</a></li>
-->
{% if page.lang == 'en' %}<li{% if page.id == 'developer-guide' %} class="active"{% endif %}><a href="/en/developer-guide">Guide</a></li>{% endif %}
{% if page.lang == 'en' %}<li{% if page.id == 'developer-reference' %} class="active"{% endif %}><a href="/en/developer-reference">Reference</a></li>{% endif %}
{% if page.lang == 'en' %}<li{% if page.id == 'developer-glossary' %} class="active"{% endif %}><a href="/en/developer-glossary">Glossary</a></li>{% endif %}
<!--
<li{% if page.id == 'getting-started' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate getting-started url %}">{% translate menu-getting-started layout %}</a></li>
<li{% if page.id == 'how-it-works' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate how-it-works url %}">{% translate menu-how-it-works layout %}</a></li>
<li{% if page.id == 'you-need-to-know' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate you-need-to-know url %}">{% translate menu-you-need-to-know layout %}</a></li>
-->
@ -25,7 +33,7 @@ http://opensource.org/licenses/MIT.
<li{% if page.id == 'community' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate community url %}">{% translate menu-community layout %}</a></li>
-->
<li{% if page.id == 'community' %} class="active"{% endif %}><a href="https://www.dash.org/community/">{% translate menu-community layout %}</a></li>
{% if page.lang == 'en' %}<li{% if page.id == 'developer-documentation' %} class="active"{% endif %}><a href="/en/developer-documentation">Documentation</a></li>{% endif %}
<!-- {% if page.lang == 'en' %}<li{% if page.id == 'developer-documentation' %} class="active"{% endif %}><a href="/en/developer-documentation">Documentation</a></li>{% endif %} -->
<li{% if page.id == 'vocabulary' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate vocabulary url %}">{% translate menu-vocabulary layout %}</a></li>
<!--
<li{% if page.id == 'events' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate events url %}">{% translate menu-events layout %}</a></li>
@ -37,7 +45,7 @@ http://opensource.org/licenses/MIT.
-->
</ul>
</li>
<li{% if page.id == 'innovation' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate innovation url %}">{% translate menu-innovation layout %}</a></li>
<!-- <li{% if page.id == 'innovation' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate innovation url %}">{% translate menu-innovation layout %}</a></li> -->
<!--
<li><a>{% translate menu-participate layout %}</a>
<ul>