Skip to content

Conversation

@comprofix
Copy link

@comprofix comprofix commented Sep 3, 2025

Thanks for converting this to Hugo. I came across an issue when using the starter package and trying to remove multilanguage, the menu on the side bar kept displaying.

I found that the hugo.IsMultilingual was not present in the language-selector.html and sidebar.html, so hugo.IsMultilingual was always set to true.

I update the files to include the changes so it hides the dropdown menu and icon correctly.

  • Update layouts/partials/language-selector.html to add hugo.IsMultilingual for multilanguage support to hide drop down menu
  • Update layours/partials/sidebar.html to add hugo.IsMultilingual to hide language icon.

- Update layouts/partials/language-selector.html to add
  hugo.IsMultilingual for multilanguage support to hide drop down menu
- Update layours/partials/sidebar.html to add hugo.IsMultilingual to
  hide language icon.
@mircea-pavel-anton
Copy link

@geekifan I also ran into this and was about to open an issue. Any chance we can get this added in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants