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

Adding a publication via `hugo new` causes page render failure #2530

Closed Time0o closed 2 years ago

Time0o commented 2 years ago

On the current master branch of starter-hugo-academic, when adding a new publication with hugo --kind publication publication/my_publication, the following error pops up in my browser:

Rebuild failed:

Failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:16:5: executing "main" at <partial "page_header.html" .>: error calling partial: execute of template failed: template: partials/page_header.html:98:7: executing "partials/page_header.html" at <partial "page_metadata" (dict "page" $page "is_list" 0 "share" true)>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5@v5.0.0-20210830150813-8b6612e7631c/layouts/partials/page_metadata.html:20:83": execute of template failed: template: partials/page_metadata.html:20:83: executing "partials/page_metadata.html" at <"January, 2006">: wrong type for value; expected string; got int

I'm using hugo v0.89.4-AB01BA6E linux/amd64 BuildDate=2021-11-17T08:24:09Z VendorInfo=gohugoio.

gcushen commented 2 years ago

Please use the support channels for questions about Hugo 0.89 instead of filing your question as a bug report here.

Hugo v0.89 isn't a supported version (supported Hugo versions can be found in the release notes for your Wowchemy version and here: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/wowchemy/config.yaml#L33), but if you really want to use the very latest Hugo version, check out the breaking changes that Hugo introduced to the Hugo CLI: https://gohugo.io/news/0.89.0-relnotes/