2020-09-23 15:03:45 +00:00
|
|
|
{% if page.menu-variant %}
|
|
|
|
{% assign menu = site.data.menu-variants[page.menu-variant] %}
|
|
|
|
{% elsif include.menu %}
|
2020-09-05 14:12:50 +00:00
|
|
|
{% assign menu = include.menu %}
|
|
|
|
{% else %}
|
2020-09-23 15:03:45 +00:00
|
|
|
{% assign menu = site.data.menu-variants.main %}
|
2020-09-05 14:12:50 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2020-04-25 08:49:47 +00:00
|
|
|
|
2020-08-17 20:11:19 +00:00
|
|
|
<nav class="menu page-content">
|
2020-09-09 11:05:53 +00:00
|
|
|
{% if include.clock or page.with-clock %}
|
2020-09-08 14:46:22 +00:00
|
|
|
{% include common/clock.html %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-09-05 14:12:50 +00:00
|
|
|
{% for item in menu %}
|
2020-08-16 09:52:49 +00:00
|
|
|
{% if item.items %}
|
2022-05-27 16:20:53 +00:00
|
|
|
<div class="nav-group" tabindex="0">
|
|
|
|
<a href="{{ item[page.lang].url | default: '#'}}" class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}">{{ item[page.lang].name }}</a>
|
|
|
|
{% if item.items %}
|
|
|
|
<div class="sub-nav-group">
|
|
|
|
{% for sublink in item.items %}
|
|
|
|
{% if page.lang == 'en' %}
|
|
|
|
<a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="sub-nav-link colour-{{ sublink[page.lang].colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl }}/{{ page.lang | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-08-16 09:52:49 +00:00
|
|
|
</div>
|
2020-04-25 08:49:47 +00:00
|
|
|
{% else %}
|
2020-08-16 09:52:49 +00:00
|
|
|
{% if page.lang == 'en' %}
|
|
|
|
<div class="nav-group">
|
2022-05-27 16:20:53 +00:00
|
|
|
<a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{{ site.baseurl | append: item[page.lang].url }}">{{ item[page.lang].name }}</a>
|
2020-08-16 09:52:49 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="nav-group">
|
2022-05-27 16:20:53 +00:00
|
|
|
<a class="nav-link colour-{{ item[page.lang].colour | default: 'black' }} {{ item.case }}" href="{{ site.baseurl }}/{{ page.lang | append: item[page.lang].url }}">{{ item[page.lang].name }}</a>
|
2020-08-16 09:52:49 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-04-25 08:49:47 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% include common/lang-selector.html en-text="/english" fr-text="/français" %}
|
|
|
|
</nav>
|