Repository navigation
feat: display more class central courses - #1502
Merged
Merged
Conversation
scissorsneedfoodtoo
marked this pull request as ready for review
October 23, 2026 05:15
raisedadead
approved these changes
Oct 23, 2026
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.
Checklist:
Update index.md)This PR reworks the sidebar so we now use one or more sidebar segments, each of which is made up of a Class Central sponsored courses block followed by injected Google ads. We use reading time returned from Hashnode during the build to calculate how many sidebar segments to include, so longer posts will show more Class Central blocks in the sidebar along the length of the post.
The caching service was updated with freeCodeCamp/class-central-sync#36, so now all posts should have up to 10 sponsored courses. If there are more than 4 courses, we cycle through the available courses with each block in the sidebar (block 1 shows courses a, b, c, and d, block 2 shows e, f, g, and h, and so on).
If there are fewer than 4 courses for a post, then each sponsored code block just shows those.
Here are some screenshots showing the changes with a recent post: