Hi. I’ve set up my Wowchemy website using Netlify. This code is hosted in this repository: https://github.com/SanchayanDutta/starter-academic. Now, I’m trying to deploy the webpage using GitHub pages following the instructions mentioned in Hugo Blox Docs.
I’m getting stuck at the “Next, regenerate your website’s HTML code by running Hugo and uploading the public submodule to GitHub:” step. When I run the command “hugo” from my Ubuntu terminal, I get the following error:
Building sites … ERROR 2021/06/22 18:32:16 render of "section" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy@v0.0.0-20210606130713-db4dcf6541e5/layouts/_default/baseof.html:19:57": execute of template failed: template: section/event.html:19:57: executing "section/event.html" at <js>: can't evaluate field Build in type string
ERROR 2021/06/22 18:32:16 render of "section" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy@v0.0.0-20210606130713-db4dcf6541e5/layouts/_default/baseof.html:19:57": execute of template failed: template: section/post.html:19:57: executing "section/post.html" at <js>: can't evaluate field Build in type string
ERROR 2021/06/22 18:32:16 render of "page" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy@v0.0.0-20210606130713-db4dcf6541e5/layouts/_default/baseof.html:19:57": execute of template failed: template: publication/single.html:19:57: executing "publication/single.html" at <js>: can't evaluate field Build in type string
ERROR 2021/06/22 18:32:16 render of "page" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy@v0.0.0-20210606130713-db4dcf6541e5/layouts/_default/baseof.html:19:57": execute of template failed: template: publication/single.html:19:57: executing "publication/single.html" at <js>: can't evaluate field Build in type string
Total in 490 ms
Error: Error building site: failed to render pages: render of "home" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy@v0.0.0-20210606130713-db4dcf6541e5/layouts/_default/baseof.html:19:57": execute of template failed: template: index.html:19:57: executing "index.html" at <js>: can't evaluate field Build in type string
How do I fix this?
Note: My Hugo version is
Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: 2020-03-25T06:15:45Z