rms-support-letter.github.io/_includes/translations.html

13 lines
471 B
HTML
Raw Normal View History

2021-03-26 15:27:15 +01:00
<div class="translations">
<p>Translations:</p>
<a class="translation" href='/'>🇺🇸</a>
2021-03-26 18:43:51 +01:00
{% for translation in site.translations %}
2021-03-26 18:03:18 +01:00
<a class="translation" href="{{ translation.url }}">
{%- assign langcode = translation.locale | split: "_" | last | downcase -%}
{%- assign c1 = langcode | slice: 0, 1 -%}
{%- assign c2 = langcode | slice: 1, 1 -%}
{{- site.data.emoji[c1] -}}{{- site.data.emoji[c2] -}}
</a>
2021-03-26 18:43:51 +01:00
{% endfor %}
2021-03-26 17:09:43 +01:00
</div>