rf-web/_includes/common/navigation.html

14 lines
494 B
HTML
Raw Normal View History

<nav>
<div class="menu">
{% for item in site.data.menu %}
{% if page.lang == 'en' %}
<a class="nav-link" href="{{ site.baseurl | append: item[page.lang].url }}">{{ item[page.lang].name }}</a>
{% else %}
<a class="nav-link" href="{{ site.baseurl }}/{{ page.lang | append: item[page.lang].url }}">{{ item[page.lang].name }}</a>
{% endif %}
{% endfor %}
</div>
{% include common/lang-selector.html en-text="/english" fr-text="/français" %}
</nav>