-
Notifications
You must be signed in to change notification settings - Fork 50
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
Pagination works only in the homepage [BUG] #910
Comments
Thanks for spotting this @anapaulagomes! This commit introduced an unwanted side effect. I will release a fix soon. |
The fix is addressed in release v0.23.12. |
Hi @markdumay! Thanks a lot for the fast reply. The change worked for the site I created for this issue example but not for my own website. I believe that it is because the sections configuration are different and not all uses the card-groups. Does it make sense? Below the configurations:
I appreciate your help. |
That's weird, as your configuration seems to use the default |
I'll do it over the week! Thanks a lot Mark. |
Hi @markdumay, I've checked the example I created with the configuration and the content from my website and the pagination worked. I still have to look further to investigate why is not working, so I think you can consider the issue fixed. Thank you so much for looking into this! |
After I updated the modules and deleted the vendor directory (?), it is working. Thanks lot! 🏆 |
Describe the bug
First of all, thanks for your help and for this great theme!
The
paginate
param only works in the homepage. When the user clicks on "More", it goes to a page with all posts with no pagination.I'm not sure if this is a bug or a configuration that I'm missing but even after changing the layout to cards and play with the params on the section, I couldn't get this to work.
To reproduce
Steps to reproduce the behavior:
content
directory a_index.md
file and create a directory calleddogs
with 10 posts inside (ideally withdraft=false
).hugo server
. You should see the home page and all posts as follow:*For the example in the screenshot, I've generated 25 posts.
Expected behavior
By default, the
paginate
param is set to 9. And this is respected in the front page.I expected that the http://localhost:1313/dogs/ page would display two pages ([1], [2]), one with 9 posts and another one with one post.
Host environment
Hugo environment
Copy the output of
hugo env
ornpm run env
here.Additional context
I'm terrible with frontend, so bear with me. :)
The text was updated successfully, but these errors were encountered: