Mainroad icon indicating copy to clipboard operation
Mainroad copied to clipboard

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

Open natrius opened this issue 1 year ago • 7 comments

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) }}

natrius avatar Oct 07 '24 14:10 natrius

Have the same issue

wojciehm avatar Oct 11 '24 13:10 wojciehm

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

Tgs00 avatar Oct 13 '24 07:10 Tgs00

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.

wojciehm avatar Oct 13 '24 09:10 wojciehm

@Vimux , What's the status of this? This and #382 is stopping me from using this theme. I've been trying to copy/paste fixes for this, but it's a pain. If this isn't anticipated to be fixed any time soon, I'll look elsewhere.

tim-3bc7s8 avatar Jan 05 '25 02:01 tim-3bc7s8

@Vimux , What's the status of this? This and #382 is stopping me from using this theme. I've been trying to copy/paste fixes for this, but it's a pain. If this isn't anticipated to be fixed any time soon, I'll look elsewhere.

this is fixed on a fork i'm maintaining: https://github.com/mansoorbarri/roadster

mansoorbarri avatar Jan 05 '25 15:01 mansoorbarri

@mansoorbarri I switched over to your "roadster" theme, which works great. Thanks for maintaining that!

kebekus avatar Jul 01 '25 13:07 kebekus

@mansoorbarri I switched over to your "roadster" theme, which works great. Thanks for maintaining that!

thank you! happy to help.

mansoorbarri avatar Jul 01 '25 17:07 mansoorbarri