biaslab / hugo-academic-group

An academic group website theme for Hugo.
MIT License
52 stars 18 forks source link

Building fails with Error: Error building site: failed to render pages: render of "home" failed: #48

Closed jsoishi closed 4 years ago

jsoishi commented 4 years ago

Using hugo version 0.58.0, the example site for hugo-academic-group fails with

a23448:/home/../test [20:22]$ hugo server --watch Total in 12 ms Error: Error building site: failed to render pages: render of "home" failed: "/home/joishi/tmp/test/themes/hugo-academic-group/layouts/index.html:1:18": execute of template failed: template: index.html:10:3: executing "index.html" at <partial "index/publications.html" .>: error calling partial: "/home/joishi/tmp/test/themes/hugo-academic-group/layouts/partials/index/publications.html:1:18": execute of template failed: template: partials/index/publications.html:12:23: executing "partials/index/publications.html" at <partial "publication_li_detailed" .>: error calling partial: "/home/joishi/tmp/test/themes/hugo-academic-group/layouts/partials/publication_li_detailed.html:1:18": execute of template failed: template: partials/publication_li_detailed.html:26:19: executing "partials/publication_li_detailed.html" at <partial "authors" .Params.authors>: error calling partial: "/home/joishi/tmp/test/themes/hugo-academic-group/layouts/partials/authors.html:1:18": execute of template failed: template: partials/authors.html:1:18: executing "partials/authors.html" at <len .>: error calling len: len of untyped nil I am having this issue with a site of mine that previously worked. However, I was able to reproduce the same error by following exactly the instructions here for creating the sample hugo-academic-theme site using hugo v.0.58.0 on Ubuntu linux.

ivan-bocharov commented 4 years ago

Hi @jsoishi, thanks for bringing this to our attention.

As it turned out, Hugo developers made a breaking change to the way .home.Pages variable work (see here). I have pushed a fix to the master branch a couple of minutes ago. If the problem persists, please let us know.

jsoishi commented 4 years ago

hi @ivan-bocharov , thanks so much for the quick fix! Yes, this works perfectly for me now.

thanks again!