Vimux / Mainroad

Responsive, simple, clean and content-focused Hugo theme based on the MH Magazine lite WordPress theme
https://mainroad-demo.netlify.app/
GNU General Public License v2.0
932 stars 465 forks source link

.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 1 month ago

natrius commented 1 month ago

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 commented 1 month ago

Have the same issue

Tgs00 commented 1 month ago

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 commented 1 month ago

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.