Skip to content
Snippets Groups Projects
Commit 87e1983a authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

[theme] automate langage menu

from config file variables
parent 47f7b805
No related branches found
No related tags found
1 merge request!9Multilang
......@@ -16,6 +16,7 @@ highlight_code = true
highlight_theme = "base16-ocean-light"
[extra]
flag = "🇫🇷"
[extra.translations.en]
base_url = "http://duniter.trentesaux.fr/"
......
......@@ -16,9 +16,11 @@
{# --- langage dropdown --- -#}
<div class="w3-dropdown-hover w3-dropdown-click w3-right">
<button class="w3-button" style="font-size: 1.6em; padding: 0 10px;">🇫🇷</button>
<button class="w3-button" style="font-size: 1.6em; padding: 0 10px;">{{config.extra.flag}}</button>
<div class="w3-dropdown-content w3-bar-block w3-light-grey" style="min-width: 29px;">
<a href="https://duniter.org/" title="English website" style="font-size: 1.6em; padding: 0 10px;">🇬🇧</a>
{%- for ltag,lcfg in config.extra.translations %}
<a href="{{lcfg.base_url}}" title="{{ltag}} website" style="font-size: 1.6em; padding: 0 10px;">{{lcfg.flag}}</a>
{%- endfor %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment