mirror of
https://gitlab.com/veilid/veilid-dot-com.git
synced 2024-09-08 18:13:35 +00:00
8 lines
300 B
Twig
8 lines
300 B
Twig
{#- Language switcher -#}
|
|
{%- if page.translations|default({})|length >= 1 -%}
|
|
{%- for p in page.translations -%}
|
|
{%- if p.language is defined -%}
|
|
<a href="{{ url(p) }}">{{ site.language.name(p.language) }}</a>{% if not loop.last %}, {% endif %}
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
{%- endif -%} |