HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

page won't build after upgrading Hugo #1722

Closed manroygood closed 4 years ago

manroygood commented 4 years ago

I just upgraded hugo via homebrew

My_Website % hugo version Hugo Static Site Generator v0.71.1/extended darwin/amd64 BuildDate: unknown

Now when I try to build my homepage it quits with the following error. I have not edited my page since I last built it.

My_Website % hugo Building sites … ERROR 2020/05/27 23:13:06 render of "page" failed: "/Users/goodman/Documents/My_Website/themes/academic/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types ERROR 2020/05/27 23:13:06 render of "page" failed: "/Users/goodman/Documents/My_Website/themes/academic/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types ERROR 2020/05/27 23:13:06 render of "page" failed: "/Users/goodman/Documents/My_Website/themes/academic/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types ERROR 2020/05/27 23:13:06 render of "page" failed: "/Users/goodman/Documents/My_Website/themes/academic/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types Total in 840 ms Error: Error building site: failed to render pages: render of "page" failed: "/Users/goodman/Documents/My_Website/themes/academic/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types

gcushen commented 4 years ago
prateekgulati commented 3 years ago

https://github.com/gcushen/hugo-academic/commit/88d83a615c6bbdc6f280aecff3f7e993161d9a94

brunocarlin commented 3 years ago

88d83a6

This solved it!