Skip to content

Commit 5e2906a

Browse files
committed
actualizacion barra navegacion
1 parent 8c78fed commit 5e2906a

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

_i18n/en.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
tag:
22
tagline: Digital Humanities Laboratory of the IIBICRIT, CONICET
33
navigation:
4-
- {name: 'News', link: '/novedades'}
4+
- name: 'News'
5+
link: '/novedades'
6+
sublinks:
7+
- name: 'Recent'
8+
link: '/novedades/reciente/'
9+
- name: 'Archive'
10+
link: '/novedades/'
511
- {name: 'Explore', link: '/explora'}
612
- {name: 'Research', link: '/investigacion'}
713
- {name: 'Digital Library', link: '/biblioteca-digital'}

_i18n/es.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
tag:
22
tagline: Laboratorio de Humanidades Digitales del IIBICRIT de CONICET
33
navigation:
4-
- {name: 'Novedades', link: '/novedades'}
4+
- name: 'Novedades'
5+
link: '/novedades'
6+
sublinks:
7+
- name: 'Reciente'
8+
link: '/novedades/reciente/'
9+
- name: 'Archivo'
10+
link: '/novedades/'
511
- {name: 'Explora', link: '/explora'}
612
- {name: 'Investigación', link: '/investigacion'}
713
- {name: 'Biblioteca Digital', link: '/biblioteca-digital'}

_includes/header.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,22 @@
99
<nav class="header__links">
1010
<div class="container header__links-wrapper">
1111
{% for item in site.translations[site.lang].navigation %}
12+
{% if item.sublinks %}
13+
<div class="header__dropdown">
1214
<a class="header__link" href="{{ item.link | relative_url }}" itemprop="url">
1315
<span itemprop="name">{{ item.name }}</span>
1416
</a>
17+
<div class="header__dropdown-menu">
18+
{% for sub in item.sublinks %}
19+
<a class="header__sublink" href="{{ sub.link | relative_url }}">{{ sub.name }}</a>
20+
{% endfor %}
21+
</div>
22+
</div>
23+
{% else %}
24+
<a class="header__link" href="{{ item.link | relative_url }}" itemprop="url">
25+
<span itemprop="name">{{ item.name }}</span>
26+
</a>
27+
{% endif %}
1528
{% endfor %}
1629
{% for lang in site.languages %}
1730
{% if lang != site.lang %}

assets/css/main.css

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)