about summary refs log tree commit diff stats
path: root/templates/language_switcher.html
blob: b82ddfc4116bc78d22803d49d386714d5bdfaaf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
{% if config.extra.language_switcher %}
  <nav>
    {%- for tr in config.extra.translations %}
      {%- if tr.code == lang %}
        <strong>{{ tr.name }}</strong>
      {%- else %}
        <a href="{{ get_url(path="/", lang=tr.code) }}">{{ tr.name }}</a>
      {%- endif %}
    {%- endfor %}
  </nav>
{% endif %}