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

.Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in a future release. Use hugo.IsMultilingual instead. #378

Open
natrius opened this issue Oct 7, 2024 · 3 comments

Comments

@natrius
Copy link

natrius commented Oct 7, 2024

When building a site with mainroad.

After a short search layouts/partials/widgets/languages.html
Line two

{{- if and .Site.IsMultiLingual (gt (len $translations) 0) }}
@wojciehm
Copy link

Have the same issue

@Tgs00
Copy link

Tgs00 commented Oct 13, 2024

Have the same issue

you can search layouts/partials/widgets/languages.html
find {{- if and .Site.IsMultiLingual (gt (len $translations) 0) }}
and then try to use hugo.IsMultilingual instead .Site.IsMultiLingual
i.e. {{- if and hugo.IsMultilingual (gt (len $translations) 0) }}
and run hugo on your site root path

@wojciehm
Copy link

What I wanted to write is actually I have more issues. Vimux kindly refuses to change theme "not to break everyone theme". Well, then I switch to other theme which doesn't have this issue and works with latest versions of hugo. Sad, but true.

anlar added a commit to anlar/hugo-theme-mainroad that referenced this issue Oct 29, 2024
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

No branches or pull requests

3 participants