further updates to menu nav

This commit is contained in:
Benjamin Jones 2020-11-22 21:11:58 +01:00
parent c5b3489f11
commit 5714d22f91
2 changed files with 8 additions and 13 deletions

View File

@ -2,8 +2,10 @@ main:
- conference: - conference:
en: en:
name: 2020 name: 2020
url: "/rf2020/"
fr: fr:
name: 2020 name: 2020
url: "fr/rf2020/"
items: items:
- program: - program:
en: en:
@ -19,20 +21,13 @@ main:
fr: fr:
name: intervenant·e·x name: intervenant·e·x
url: /rf2020/participants url: /rf2020/participants
- participants: - credits:
en: en:
name: gallery name: credits
url: "/rf2020/gallery" url: "/rf2020/credits"
fr: fr:
name: gallery name: intervenant·e·x
url: /rf2020/gallery url: /rf2020/credits
- participants:
en:
name: watch
url: "/rf2020/watch"
fr:
name: watch
url: /rf2020/watch
- about: - about:
en: en:
name: about name: about

View File

@ -16,7 +16,7 @@
{% for item in menu %} {% for item in menu %}
{% if item.items %} {% if item.items %}
<div class="nav-group nofocus" tabindex="0"> <div class="nav-group nofocus" tabindex="0">
<a class="nav-link colour-{{ item.colour | default: 'black' }} {{ item.case }}">{{ item[page.lang].name }}</a> <a href="{{ site.baseurl | append: item[page.lang].url }}" class="nav-link colour-{{ item.colour | default: 'black' }} {{ item.case }}">{{ item[page.lang].name }}</a>
{% for sublink in item.items %} {% for sublink in item.items %}
{% if page.lang == 'en' %} {% if page.lang == 'en' %}
<a class="sub-nav-link colour-{{ sublink.colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a> <a class="sub-nav-link colour-{{ sublink.colour | default: 'black' }} {{ sublink.case }}" href="{{ site.baseurl | append: sublink[page.lang].url }}">{{ sublink[page.lang].name }}</a>