-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot convert type hugolib.PagesGroup to Pages #1
Comments
@pappayain not sure how you are using it. I just tested it with latest 0.49 version of hugo and it works fine. To test it yourself follow this steps, create a test folder and do the following. Assuming hugo is installed and accessible.
navigate to http://localhost:1313 you should see the sample site. |
Yes, if I copy content folder of example site, then it works. But if I follow the quick start guide at https://gohugo.io/getting-started/quick-start/ and replace the theme with charaka-hugo-theme then it just fails. |
|
Use this "post" instead of "posts" and see if the error goes away. If it does then I will update the template. $hugo new post/my-first-post.md |
Check out the latest code and it should work now with "posts" |
Same issue with master and v0.49. I fixed it by just removing pagination, because I don't really need it. I really like the theme, thanks a bunch.
|
@pappayain, I'm able to re-create the issue with your steps and have put in a fix to solve this. If you are still looking to get it fixed then take the latest code. The issue was to do with pages being empty as its a new site and those pages were being fed into PageGroups which always errored. |
No response from the initial reporter closing as its fixed. |
|
$hugo
Building sites … ERROR 2018/10/02 20:07:56 Error while rendering "home" in "": template: index.html:5:14: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
The text was updated successfully, but these errors were encountered: