hugo-porto / theme

The hugo-porto is a personal portfolio theme for Hugo
MIT License
5 stars 3 forks source link

render of "taxonomy" failed when changing default logo #13

Open irLinja opened 3 weeks ago

irLinja commented 3 weeks ago

Render fails when I assign any value to the logo key in data/navbar.toml. Even if it is the default "img/logo.svg".

hugo: collected modules in 715 ms
Start building sites … 
hugo v0.133.0-c9777473d1369f812d727a6c07dc57ad7be7bf62+extended linux/amd64 BuildDate=2024-08-17T19:57:41Z VendorInfo=gohugoio
ERROR render of "taxonomy" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-porto/theme@v0.1.7/layouts/_default/baseof.html:10:9": execute of template failed: template: _default/list.html:10:9: executing "_default/list.html" at <partial "navbar.html" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-porto/theme@v0.1.7/layouts/partials/navbar.html:42:24": execute of template failed: template: partials/navbar.html:42:24: executing "partials/navbar.html" at <$logo.RelPermalink>: nil pointer evaluating resource.Resource.RelPermalink
irLinja commented 3 weeks ago

I've tried to debug the issue. I could see that $logo is null, as indicated in the error, but I couldn't figure out why.