gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.62k stars 7.52k forks source link

Unknown regression in 0.45: "too many arguments to .Site.GetPage" #4984

Closed ConorIA closed 6 years ago

ConorIA commented 6 years ago

I've had unexpected results when using Hugo v0.45 (installed by blogdown) to build my site. The end result is a 404 page where the homepage should be.

Build log: https://gitlab.com/ConorIA/conr_ca/-/jobs/83565588

Relevant error:

Building sites … ERROR 2018/07/23 02:31:04 Error while rendering "page" in "post/": template: _default/single.html:11:7: executing "_default/single.html" at <partial "article_met...>: error calling partial: template: partials/article_metadata.html:48:18: executing "partials/article_metadata.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm categories R]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}

This is a regression for v0.44, which doesn't encounter the issue (see here, after forcing v0.44 from GitHub: https://gitlab.com/ConorIA/conr_ca/-/jobs/83567922)

There isn't much to go on in terms of debugging, unfortunately. All the code used for the site is in that repo, if it helps.

onedrawingperday commented 6 years ago

This is not a regression. Please see the release notes for 0.45

And please use https://discourse.gohugo.io for support. This is the bugs issue tracker.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.