Hi, I’m having problems with compiling my site. I’ve been getting warnings about TranslationBaseName ever since I made my site multilingual but only recently has it become impossible to compile the site anymore.
The errors I’m getting are:
ERROR render of "taxonomy" failed: "/home/user//website/hugo-site/themes/lugo/layouts/_default/baseof.html:29:28": execute of template failed: template: _default/list.html:29:28: executing "_default/list.html" at <partial "nav.html" .>: error calling partial: "/home/user/website/hugo-site/themes/lugo/layouts/partials/nav.html:4:24": execute of template failed: template: partials/nav.html:4:24: executing "partials/nav.html" at <.File.TranslationBaseName>: error calling TranslationBaseName: runtime error: invalid memory address or nil pointer dereference
ERROR render of "term" failed: "/home/user/website/hugo-site/themes/lugo/layouts/_default/baseof.html:29:28": execute of template failed: template: _default/list.html:29:28: executing "_default/list.html" at <partial "nav.html" .>: error calling partial: "/home/user/website/hugo-site/themes/lugo/layouts/partials/nav.html:4:24": execute of template failed: template: partials/nav.html:4:24: executing "partials/nav.html" at <.File.TranslationBaseName>: error calling TranslationBaseName: runtime error: invalid memory address or nil pointer dereference
Built in 27 ms
Error: error building site: render: failed to render pages: render of "home" failed: "/home/user/website/hugo-site/themes/lugo/layouts/_default/baseof.html:29:28": execute of template failed: template: index.html:29:28: executing "index.html" – File is nil; wrap it in if or with: {{ with partial "nav.html" .>: error calling partial: "/home/user/website/hugo-site/themes/lugo/layouts/partials/nav.html:4:24": execute
of template failed: template: partials/nav.html:4:24: executing "partials/nav.html" at <.File }}{{ .TranslationBaseName }}{{ end }}
I’ve tried different modifications of the nav.html partial, which seems to be causing the issue, but nothing helped. I also tried wrapping the problematic line in with but I’m not a programmer so it was just guesswork and didn’t help.
I discovered that commenting out all language-related options in site’s config allows the site to compile but at the cost of not having a navbar.
Could you please have a look at it and help me figure out how to modify the nav.html file or any other file that’s possibly causing this problem?
Here’s the minimal version of the site: GitHub - Mati20187/hugo-issue
Thank you in advance!