diff --git a/config.toml b/config.toml index 5f857c14d76f91d2c1f4dfb36b2d25321094822f..7397c16111f42c9db464a54f7756e9fbf95c9ec9 100644 --- a/config.toml +++ b/config.toml @@ -16,6 +16,7 @@ highlight_code = true highlight_theme = "base16-ocean-light" [extra] +flag = "🇫🇷" [extra.translations.en] base_url = "http://duniter.trentesaux.fr/" diff --git a/templates/nav.html b/templates/nav.html index e87dead4ac5f2a0c04c2841e968cde2a5b5a703e..8db01adcb74771ae7523243f5b665282e168e227 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -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>