lukeorth / poison

Professional Hugo theme for dev bloggers. Based on Mdo's classic Hyde theme.
https://poison.lukeorth.com
GNU General Public License v3.0
209 stars 101 forks source link

Failed to build page on the latest Hugo? #174

Closed dotfrankruan closed 5 months ago

dotfrankruan commented 6 months ago

Hugo version:

hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended linux/amd64 BuildDate=2024-03-20T11:40:10Z VendorInfo=brew

Error log (partial, the unprovided ones are basically identical):

ERROR render of "page" failed: "/home/frank/Documents/blog/themes/poison/layouts/_default/baseof.html:1:3": execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "head/head.html" .>: error calling partial: "/home/frank/Documents/blog/themes/poison/layouts/partials/head/head.html:16:7": execute of template failed: template: partials/head/head.html:16:7: executing "partials/head/head.html" at <partial "head/meta.html" .>: error calling partial: "/home/frank/Documents/blog/themes/poison/layouts/partials/head/meta.html:106:17": execute of template failed: template: partials/head/meta.html:106:17: executing "partials/head/meta.html" at <.Paginate>: error calling Paginate: pagination not supported for this page: kind: "page", path: "/posts/xx", file: "/home/frank/Documents/blog/content/posts/xxxxx.md"

It's working on Hugo v0.115.1, but not now.

ctmbl commented 6 months ago

Isn't it a duplicate of https://github.com/lukeorth/poison/issues/169 ?

Are you using the latest version of poison, in particular later than: https://github.com/lukeorth/poison/pull/171 ?

dotfrankruan commented 5 months ago

Isn't it a duplicate of #169 ?

Are you using the latest version of poison, in particular later than: #171 ?

Oh, I added poison as submodule, and it seems that for no reason, git keeps fetching the older version, now it's working, thanks :)