StaticMania / roxo-hugo

MIT License
182 stars 196 forks source link

Bug after installation #38

Open creyD opened 7 months ago

creyD commented 7 months ago

I am getting this error message after doing the installation of the theme as it is described on the page. After the last step I simply add theme=roxo-hugo in my hugo.toml and the error appears. Without it the site just says "Page not found". It is a clean hugo install and this is showing up when I do hugo server.

ERROR render of "page" failed: "PATH/webpage_name/themes/roxo-hugo/layouts/_default/baseof.html:5:12": execute of template failed: template: blog/single.html:5:12: executing "blog/single.html" at <partial "header.html" .>: error calling partial: "PATH/webpage_name/themes/roxo-hugo/layouts/partials/header.html:20:19": execute of template failed: template: partials/header.html:20:19: executing "partials/header.html" at <len $menu>: error calling len: reflect: call of reflect.Value.Type on zero Value
ERROR render of "page" failed: "PATH/webpage_name/themes/roxo-hugo/layouts/_default/baseof.html:5:12": execute of template failed: template: portfolio/single.html:5:12: executing "portfolio/single.html" at <partial "header.html" .>: error calling partial: "PATH/webpage_name/themes/roxo-hugo/layouts/partials/header.html:20:19": execute of template failed: template: partials/header.html:20:19: executing "partials/header.html" at <len $menu>: error calling len: reflect: call of reflect.Value.Type on zero Value
Built in 32 ms
Error: error building site: render: failed to render pages: render of "page" failed: "PATH/webpage_name/themes/roxo-hugo/layouts/_default/baseof.html:5:12": execute of template failed: template: blog/single.html:5:12: executing "blog/single.html" at <partial "header.html" .>: error calling partial: "PATH/webpage_name/themes/roxo-hugo/layouts/partials/header.html:20:19": execute of template failed: template: partials/header.html:20:19: executing "partials/header.html" at <len $menu>: error calling len: reflect: call of reflect.Value.Type on zero Value
matteomarjanovic commented 7 months ago

I solved that by copying the content of exampleSite/config.toml in hugo.toml file.