You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the date for a release notes post in Docsy generates an error when running the hugo command. I think this is likely to be a common use-case for projects that are planning release notes or blog posts for a future date prior to launch.
I think this issue qualifies as a bug, so I wanted to log it to save others troubleshooting until a fix is identified and implemented.
Steps to reproduce
Follow the steps to clone and run the docsy-example:
git clone --recurse-submodules --depth 1 https://github.com/google/docsy-example.git
cd docsy-example
hugo server
Change the date in the included release notes to be any date in the future:
date: 2020-03-20
If required, install any dependencies via npm.
Run the hugo command, which produces the following error for me:
Error: Error building site: failed to render pages: render of "section" failed: "<redacted>/docsy-example/themes/docsy/layouts/blog/list.html:7:11": execute of template failed: template: blog/list.html:7:11: executing "main" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
This error disappears if there are also other release notes with dates in the past. The problem only seem to occur if I set the date to the future for the first release note. I haven't tested this issue for regular blog posts.
The text was updated successfully, but these errors were encountered:
Setting the date for a release notes post in Docsy generates an error when running the
hugo
command. I think this is likely to be a common use-case for projects that are planning release notes or blog posts for a future date prior to launch.I think this issue qualifies as a bug, so I wanted to log it to save others troubleshooting until a fix is identified and implemented.
Steps to reproduce
Follow the steps to clone and run the docsy-example:
Open the following file for editing:
content/en/blog/releases/in-depth-monoliths-detailed-spec.md
Change the date in the included release notes to be any date in the future:
date: 2020-03-20
If required, install any dependencies via
npm
.Run the
hugo
command, which produces the following error for me:Error: Error building site: failed to render pages: render of "section" failed: "<redacted>/docsy-example/themes/docsy/layouts/blog/list.html:7:11": execute of template failed: template: blog/list.html:7:11: executing "main" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
This error disappears if there are also other release notes with dates in the past. The problem only seem to occur if I set the date to the future for the first release note. I haven't tested this issue for regular blog posts.
The text was updated successfully, but these errors were encountered: