Skip to content

Commit

Permalink
Fix nav routes
Browse files Browse the repository at this point in the history
  • Loading branch information
olanod committed Jul 12, 2024
1 parent a9d164a commit 3be8ce8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions _data/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ globals:
go-down: Scroll to Bottom
nav:
- link: About Us
route: about
route: /about
class: menu-item
- link: Services
route: services
route: /services
class: menu-item
- link: Use Cases
route: cases
route: /cases
class: menu-item
- link: Blog
route: blog
route: /blog
class: menu-item
- link: Go to the app
route: https://virto.app/
Expand Down
8 changes: 4 additions & 4 deletions _data/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ globals:
go-down: Ir al final
nav:
- link: Sobre Nosotros
route: about
route: /about
class: menu-item
- link: Servicios
route: services
route: /services
class: menu-item
- link: Casos de Uso
route: cases
route: /cases
class: menu-item
- link: Blog
route: blog
route: /blog
class: menu-item
- link: Ingresar a la app
route: https://virto.app/
Expand Down
4 changes: 2 additions & 2 deletions _includes/nav.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% include "virto_logo.svg" %}
</a>
{% for nav in site.data[site.data.lang].nav %}
<a class="{{ nav.class }} {% if page.data.route == '{{ nav.route }}'%}current{% endif %}" href={{ nav.route }} role="menuitem" aria-label={{ nav.link }}>
<a class="{{ nav.class }} {% if page.data.route == '{{ nav.route }}'%}current{% endif %}" href="{{ nav.route }}" role="menuitem" aria-label="{{ nav.link }}">
{{ nav.link }}
</a>
{% endfor %}
Expand All @@ -24,7 +24,7 @@
<nav id="menu-dropdown" aria-label="Secundaria">
<a id="close-menu" class="close-menu" aria-label="Cerrar menú"></a>
{% for nav in site.data[site.data.lang].nav %}
<a class="{{ nav.class }} {% if page.data.route == '{{ nav.route }}'%}current{% endif %}" href={{ nav.route }} role="menuitem" aria-label={{ nav.link }}>
<a class="{{ nav.class }} {% if page.data.route == '{{ nav.route }}'%}current{% endif %}" href="{{ nav.route }}" role="menuitem" aria-label="{{ nav.link }}">
{{ nav.link }}
</a>
{% endfor %}
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
lang := "es" # for english run `just *command* lang=en`
lang := "es" # for english run `just lang=en *command*`

# default
build-all:
lang=es just build
lang=en just build
just lang=es build
just lang=en build

build: clean
cobalt build --config _cobalt_{{ lang }}.yml
Expand Down

0 comments on commit 3be8ce8

Please sign in to comment.