Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix language menu in multihost setting #221

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Conversation

dholbach
Copy link
Contributor

@dholbach dholbach commented Mar 2, 2025

#196 added the flexibility to index.html to be used in subdirectories.

Unfortunately this broke the language menu in multihost settings. Both functionalities are made to work now by checking the hugo.IsMultihost condition.

This makes the code somewhat harder to read, but at least ensures that the regression is fixed.

Fixes: #214

	zjedi#196 added the flexibility to index.html to be used in subdirectories.

	Unfortunately this broke the language menu in multihost settings.
	Both functionalities are made to work now by checking the
	`hugo.IsMultihost` condition.

	This makes the code somewhat harder to read, but at least ensures
	that the regression is fixed.

	Fixes: zjedi#214

Signed-off-by: Daniel Holbach <[email protected]>
@dholbach
Copy link
Contributor Author

dholbach commented Mar 2, 2025

cc @chatziko

@dholbach
Copy link
Contributor Author

dholbach commented Mar 27, 2025

Ping?

@zjedi zjedi merged commit 811e1f2 into zjedi:master Mar 27, 2025
7 checks passed
@dholbach dholbach deleted the fix-214 branch March 28, 2025 05:32
@dholbach
Copy link
Contributor Author

Thanks!

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.

Language menu broken in multi-host setting
2 participants