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: replace .Site.IsMultiLingual with hugo.IsMultilingual #886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

silvemerson
Copy link

The change from .Site.IsMultiLingual to hugo.IsMultilingual was made to ensure compatibility with newer versions of Hugo. The method .Site.IsMultiLingual was deprecated starting from Hugo v0.124.0, and it was officially removed in v0.140.0. As part of Hugo's ongoing effort to improve the platform, it is essential to update code to use the recommended alternatives before older methods are fully phased out.

hugo.IsMultilingual is the new, recommended approach to check if the site is multilingual, aligning with Hugo's updated API. This change helps future-proof the site and ensures it continues to function correctly with the latest Hugo versions. By adopting this change, we also avoid potential build issues when upgrading Hugo in the future.

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.

1 participant