🚨 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工具快速创建精美网站!
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
New versions of Hugo often have breaking changes and so it's recommended not to update Hugo for production sites until the community have tested compatibility, such as when new versions of Academic are released.
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