mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Handle redirections in _config.yml
This commit is contained in:
parent
14e25c5a1f
commit
58ef9c6c56
28 changed files with 152 additions and 244 deletions
|
@ -1,17 +1,3 @@
|
|||
---
|
||||
menufor:
|
||||
- id: bitcoin-for-individuals
|
||||
- id: bitcoin-for-businesses
|
||||
- id: bitcoin-for-developers
|
||||
- id: bitcoin-for-enthusiasts
|
||||
menu:
|
||||
- id: how-it-works
|
||||
- id: vocabulary
|
||||
- id: resources
|
||||
- id: community
|
||||
- id: development
|
||||
- id: about
|
||||
---
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
|
@ -68,10 +54,7 @@ if(typeof(legacyIE)==='undefined'){
|
|||
<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>
|
||||
{% case page.lang %}
|
||||
{% when 'ar' or 'fa' %}
|
||||
<li{% if page.id == 'bitcoin-for-enthusiasts' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate bitcoin-for-enthusiasts url %}">{% translate menu-bitcoin-for-enthusiasts layout %}</a></li>
|
||||
<li{% if page.id == 'choose-your-wallet' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate choose-your-wallet url %}">{% translate menu-choose-your-wallet layout %}</a></li>
|
||||
{% when 'pl' or 'zh_TW' %}
|
||||
{% when 'ar' or 'fa' or 'pl' or 'zh_TW' %}
|
||||
<li{% if page.id == 'choose-your-wallet' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate choose-your-wallet url %}">{% translate menu-choose-your-wallet layout %}</a></li>
|
||||
{% else %}
|
||||
<li{% if page.id == 'getting-started' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate getting-started url %}">{% translate menu-getting-started layout %}</a></li>
|
||||
|
@ -94,15 +77,9 @@ if(typeof(legacyIE)==='undefined'){
|
|||
{% if page.lang == 'en' %}<li{% if page.id == 'press' %} class="active"{% endif %}><a href="/en/press">Press</a></li>{% endif %}
|
||||
</ul>
|
||||
</li>
|
||||
{% case page.lang %}
|
||||
{% when 'ar' or 'fa' %}
|
||||
{% else %}
|
||||
<li{% if page.id == 'innovation' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate innovation url %}">{% translate menu-innovation layout %}</a></li>
|
||||
{% endcase %}
|
||||
<li{% if page.id == 'support-bitcoin' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate support-bitcoin url %}">{% translate menu-support-bitcoin layout %}</a></li>
|
||||
{% case page.lang %}
|
||||
{% when 'ar' or 'fa' or 'it' or 'nl' or 'pl' or 'tr' or 'zh_CN' or 'zh_TW' %}
|
||||
<li{% if page.id == 'about' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate about url %}">{% translate menu-about layout %}</a></li>
|
||||
{% when 'id' %}
|
||||
{% else %}
|
||||
<li{% if page.id == 'faq' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate faq url %}">{% translate menu-faq layout %}</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue