shenoydotme / hugo-goa

Simple Minimalistic Theme for Hugo
https://shenoydotme.github.io/hugo-goa-demo/
MIT License
265 stars 129 forks source link

Compatibility with hugo 0.32.4 #36

Closed sdebruyn closed 5 years ago

sdebruyn commented 6 years ago

I'm using 0.32.4

Hugo Static Site Generator v0.32.4 darwin/amd64 BuildDate: 2018-01-11T23:53:36+01:00
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.9.2"

I get this error when I render a new site with just the about page from the demo site:

ERROR 2018/01/12 00:33:44 Error while rendering "home" in "": template: theme/index.html:9:3: executing "theme/index.html" at <partial "main_menu.h...>: error calling partial: template: theme/partials/main_menu.html:2:11: executing "theme/partials/main_menu.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided
paskal commented 6 years ago

Similar thing for me, when trying to run this theme against my blog source I get following:

Building sites … ERROR 2018/03/20 16:00:26 Error while rendering "page" in "": template: theme/_default/single.html:3:3: executing "theme/_default/single.html" at <partial "content.htm...>: error calling partial: template: theme/partials/content.html:33:19: executing "theme/partials/content.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 16:00:26 Error while rendering "page" in "post/": template: theme/_default/single.html:3:3: executing "theme/_default/single.html" at <partial "content.htm...>: error calling partial: template: theme/partials/content.html:33:19: executing "theme/partials/content.html" at <len .Params.tags>: error calling len: len of untyped nil
ERROR 2018/03/20 16:00:26 Error while rendering "home" in "": template: theme/index.html:9:3: executing "theme/index.html" at <partial "main_menu.h...>: error calling partial: template: theme/partials/main_menu.html:2:11: executing "theme/partials/main_menu.html" at <sort .Site.Menus.mai...>: error calling sort: sequence must be provided

The reason is likely some absent .Site. parameter but you can't tell it from error message, I guess input parameters handling could be improved.