veilid-dot-com/themes/veilid/layouts/partials/alternates-languages.html.twig
2023-08-15 15:25:21 -04:00

6 lines
328 B
Twig

{%- if page.translations|default({})|length >= 1 -%}
{%- for alternate in page.translations ~%}
<link rel="alternate" hreflang="{{ alternate.language }}" href="{{ url(alternate, {canonical: true}) }}">
{%- endfor ~%}
<link rel="alternate" hreflang="x-default" href="{{ url(page, {canonical: true}) }}">
{%- endif -%}