gatsby-starter-lumen
gatsby-starter-lumen copied to clipboard
Pagination for the blog doesn't calculate number of posts correctly
Describe the bug
The postsquery
retrieves both posts and pages so when you count them and use that count for pagination you end up with extra empty pages at the end. (you will see that "next" is available, it will show an empty page if you click it)
To Reproduce Steps to reproduce the behavior:
- Clone the repo / npm install / etc
- Create a few fake pages:
- npm start
- Open the homepage and just click "next"
- See error
Expected behavior Pages should be ignored in the postsQuery
Screenshots See above
Additional context I will make a PR correcting this but the CODE_OF_CONDUCT implores me to create an issue ;)