# Multihost trouble

**URL:** <https://discourse.gohugo.io/t/multihost-trouble/50103>\
**Category:** support\
**Created:** [June 1, 2024, 7:42am UTC](https://discourse.gohugo.io/t/multihost-trouble/50103 "2024-06-01T07:42:51Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [June 3, 2024, 2:42pm UTC](https://discourse.gohugo.io/t/multihost-trouble/50103/10 "2024-06-03T14:42:27Z")

</div>

For the language switcher on the home page…

```plaintext
{{ range site.Sites }}
  {{ $lang_title := or .Language.LanguageName (.Language.Lang | strings.ToUpper) }}
  {{ if eq . $.Site }}
    {{ if $.Site.Params.show_current_lang }}
      <span class='btn-lang active'>{{ $lang_title }}</span>
    {{ end }}
  {{ else }}
    <a class='btn-lang' href='{{ .Home.Permalink }}'>{{ $lang_title }}</a>
  {{ end }}
{{ end }}

```

---

_[View the full topic](https://discourse.gohugo.io/t/multihost-trouble/50103)._
