mirror of
https://gitlab.com/veilid/veilid-dot-com.git
synced 2024-10-01 01:05:53 -04: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 -%} |