mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Small cleanup in base layout
This commit is contained in:
parent
8bb069f515
commit
09a9412bd7
1 changed files with 7 additions and 1 deletions
|
@ -52,8 +52,10 @@ menu:
|
|||
</ul>
|
||||
<a id="logo" href="/{{ page.lang }}/"><img src="/img/logotop.svg" alt="Bitcoin"></a>
|
||||
<a href="#" id="menumobile" onclick="mobileshow(event);"></a>
|
||||
|
||||
{% case page.lang %}
|
||||
{% when 'ar' or 'de' or 'es' or 'fa' or 'it' or 'nl' or 'ru' %}
|
||||
|
||||
<ul id="menufor">
|
||||
{% for link in page.menufor %}{% assign id = link.id%}{% capture url %}/{{ page.lang }}/{% translate {{id}} url %}{% endcapture %}
|
||||
<li{% if page.id == id %} class="active"{% endif %}><a href="{{ url }}">{% translate menu-{{id}} layout %}</a></li>
|
||||
|
@ -64,7 +66,9 @@ menu:
|
|||
<li{% if page.id == id %} class="active"{% endif %}><a href="{{ url }}">{% translate menu-{{id}} layout %}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<ul id="menusimple">
|
||||
<li><a href="#" onclick="mobilehover(event);">{% translate menu-intro layout %}</a>
|
||||
<ul>
|
||||
|
@ -81,14 +85,16 @@ menu:
|
|||
<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 == 'development' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate development url %}">{% translate menu-development layout %}</a></li>
|
||||
{% case page.lang %}{% when 'ar' or 'de' or 'es' or 'fa' or 'it' or 'nl' or 'ru' %}{% else %}<li{% if page.id == 'events' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate events url %}">{% translate menu-events layout %}</a></li>{% endcase %}
|
||||
{% case page.lang %}{% when 'ar' or 'de' or 'es' or 'fa' or 'fr' or 'it' or 'nl' or 'pl' or 'ru' or 'tr' or 'zh_TW' %}{% else %}<li{% if page.id == 'press' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate press url %}">{% translate menu-press layout %}</a></li>{% endcase %}
|
||||
{% if page.lang == 'en' %}<li{% if page.id == 'press' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate press url %}">{% translate menu-press layout %}</a></li>{% endif %}
|
||||
</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 == 'foundation' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate foundation url %}">{% translate menu-foundation layout %}</a></li>
|
||||
<li{% if page.id == 'about' %} class="active"{% endif %}><a href="/{{ page.lang }}/{% translate about url %}">{% translate menu-about layout %}</a></li>
|
||||
</ul>
|
||||
|
||||
{% endcase %}
|
||||
|
||||
</div></div>
|
||||
<div id="body">
|
||||
<div id="content"{% if page.mode == "wide" %} class="wide"{% endif %}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue