TL;DR
Deleting the cache file referenced in the error seems to make the error go away with (I believe) no ill effects.
My info:
$ hugo env
hugo v0.110.0+extended linux/amd64 BuildDate=unknown
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.19.5"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
I created the site using hugo new site name-of-site and using hugo as a module. Once complete, I copied minimal content items from the mostly docs repository. Specifically, I used their content/en/_index.md frontmatter that is using the cascade feature.
When I build or try to run this site locally I get the error about every 2 out of 3 times building/running it. The error:
$ hugo serve
Start building sites …
hugo v0.110.0+extended linux/amd64 BuildDate=unknown
Error: Error building site: failed to render pages: render of "section" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.6.0/layouts/blog/list.html:11:13": execute of template failed: template: blog/list.html:11:13: executing "main" at <.Paginate>: error calling Paginate: cannot convert type page.PagesGroup to Pages
Built in 641 ms
$
This looks very close to issue #56, but the referenced error file (below) has the fix from that closed issue)
Below is the file that the error is referring to (I added line numbers for reference):
I tried exploring and doing different things to see if I could isolate the problem. The only thing that seemed to work was to delete the file referenced in the error. After doing that, no more build errors, and it appears to have no effect on the output.
:shrug:
TL;DR Deleting the cache file referenced in the error seems to make the error go away with (I believe) no ill effects.
My info:
I created the site using
hugo new site name-of-site
and using hugo as a module. Once complete, I copied minimal content items from the mostly docs repository. Specifically, I used their content/en/_index.md frontmatter that is using the cascade feature.When I build or try to run this site locally I get the error about every 2 out of 3 times building/running it. The error:
This looks very close to issue #56, but the referenced error file (below) has the fix from that closed issue)
Below is the file that the error is referring to (I added line numbers for reference):
I tried exploring and doing different things to see if I could isolate the problem. The only thing that seemed to work was to delete the file referenced in the error. After doing that, no more build errors, and it appears to have no effect on the output. :shrug: