Fix blog homepage: Hindsight Cloud section always shows top 3 posts#770
Merged
Conversation
postsPerPage: 10 caused the Hindsight Cloud section to miss recent posts when they were outside the first 10 results. Setting to 'ALL' ensures the custom BlogListPage component can always filter the correct top 3 Cloud posts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces Docusaurus built-in pagination (which broke with postsPerPage: ALL) with URL query param based pagination (?page=N). Cloud section always shows the 3 most recent posts; Hindsight section paginates 9 posts per page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
postsPerPagefrom10to'ALL'indocusaurus.config.tsProblem
The custom
BlogListPagecomponent filtersitems(the paginated post list) into Cloud and Hindsight sections. WithpostsPerPage: 10,itemsonly contained the 10 most recent posts across both sections. If the 3 most recent Hindsight Cloud posts were older than the 10 most recent overall, they would be missing from the Cloud section entirely.Fix
postsPerPage: 'ALL'ensures all posts are available initems, so the Cloud section can always find and display the 3 most recenthindsight-cloud-tagged posts regardless of publication date.Since
BlogListPageis fully custom and already handles its own layout, the built-in pagination is unused — this change has no visible impact other than fixing the missing posts.🤖 Generated with Claude Code