I have a language.toml
with the following content:
[en]
weight = 1
contentDir = "content/en"
languageName = "English"
[languages.en.params]
flag = "πΊπΈ"
[de]
weight = 2
contentDir = "content/de"
languageName = "Deutsch"
[languages.de.params]
flag = "π¨π"
I want to display the flag
in the page using the following code:
...
<ul class="shadow">
{{ range $.Site.Home.AllTranslations }}
<li class="dropdown_link"><a href="{{ .Permalink | absLangURL }}" target="_self" rel="noopener noreferrer">{{ .Site.Language.Params.flag }} {{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>
...
But the flag
is not visible:
What do I miss or do I wrong in using the config files.