Skip to content

feat: display more class central courses - #1502

Merged
raisedadead merged 4 commits into
mainfrom
feat/display-more-class-central-courses
Oct 23, 2026
Merged

raisedadead merged 4 commits into
mainfrom
feat/display-more-class-central-courses

Conversation

@scissorsneedfoodtoo

Copy link
Copy Markdown
Contributor

Checklist:

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:

image image image

@scissorsneedfoodtoo
scissorsneedfoodtoo marked this pull request as ready for review October 23, 2026 05:15
@scissorsneedfoodtoo
scissorsneedfoodtoo requested a review from a team as a code owner October 23, 2026 05:15
@raisedadead
raisedadead merged commit aef3025 into main Oct 23, 2026
19 checks passed
@raisedadead
raisedadead deleted the feat/display-more-class-central-courses branch October 23, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants