Hey! I found a simple language switcher and was even able to integrate it for “my” theme, but found that it does not apply the style from style.css. I had to add < style> < /style> to the switch code, which is not very convenient. The switch code looks like this:
<div>
<ul class="language-list">
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>
</div>
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.
opened themes/etch/layouts/partials/header.html and added the code from the first post to the very top. Well, I created a couple of pages with contact.md and contact.pl.md
I am not trying to be difficult. Please help me to help you. If you do not have a public git repository, perhaps you can zip up your entire project directory and post it somewhere.
The purpose of sharing your project code is to make is easy for someone else (me, for example) to reproduce the behavior locally.