I’m getting an error in my header.html file which is kind of odd:
WARN deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in a future release. Use hugo.IsMultilingual instead.
I did update my Hugo installation to the latest version
(hugo v0.131.0-bfbee17932ff24009008aa94cdd75c0c41f59279+extended)
but when I change the parts in my header.html from .Site.IsMultilingual to hugo.IsMultilingual
I’m getting this error:
ERROR render of “section” failed: execute of template failed: template: partials/header.html:25:9: executing “header” at : can’t evaluate field IsMultiLingual in type interface {}
I’ve left it in because this currently works (with the deprecation warning), I can change and commit it, but then my local dev-installation is basically broken. Shall I commit the change?
Change it locally and try to fix “basically broken” or come with the error messages if you get stuck
p.s. it’s a bad idea to tell you have changed and provide an unchanged code. In that case just create a new branch (or even repo) always a good idea to do such upgrades on a branch anyway
It’s dawning on me: This is the WSL2-Terminal I’m using, which in turn, I guess, uses the Hugo installation from WSL2 (which I’ve just switched from).
The reasons for all my yelling is that I can’t get into some kind of workflow at all.
It’s just awkward - now publishing via the deploy script won’t work under windows…