feat(articles): show next and previous posts - #86
Merged
calebephrem merged 1 commit intoSep 23, 2026
Merged
Conversation
|
Note Linting checks passed successfully 🎉 All formatting and code quality checks are clean. You're good to merge 🚀 |
calebephrem
requested changes
Sep 23, 2026
Comment on lines
+205
to
+228
| <div className="flex items-center justify-between gap-md"> | ||
| {prevPost ? ( | ||
| <Link | ||
| href={`/blog/${prevPost.slug}`} | ||
| className="flex items-center gap-sm text-sm text-text-secondary hover:text-text transition-colors undecorated" | ||
| > | ||
| <ArrowLeft size={16} /> | ||
| <span>Previous</span> | ||
| </Link> | ||
| ) : ( | ||
| <div /> | ||
| )} | ||
| {nextPost ? ( | ||
| <Link | ||
| href={`/blog/${nextPost.slug}`} | ||
| className="flex items-center gap-sm text-sm text-text-secondary hover:text-text transition-colors undecorated" | ||
| > | ||
| <span>Next</span> | ||
| <ArrowRight size={16} /> | ||
| </Link> | ||
| ) : ( | ||
| <div /> | ||
| )} | ||
| </div> |
Member
There was a problem hiding this comment.
Suggested change
| <div className="flex items-center justify-between gap-md"> | |
| {prevPost ? ( | |
| <Link | |
| href={`/blog/${prevPost.slug}`} | |
| className="flex items-center gap-sm text-sm text-text-secondary hover:text-text transition-colors undecorated" | |
| > | |
| <ArrowLeft size={16} /> | |
| <span>Previous</span> | |
| </Link> | |
| ) : ( | |
| <div /> | |
| )} | |
| {nextPost ? ( | |
| <Link | |
| href={`/blog/${nextPost.slug}`} | |
| className="flex items-center gap-sm text-sm text-text-secondary hover:text-text transition-colors undecorated" | |
| > | |
| <span>Next</span> | |
| <ArrowRight size={16} /> | |
| </Link> | |
| ) : ( | |
| <div /> | |
| )} | |
| </div> |
krishs01
force-pushed
the
feature/more-like-this-posts
branch
from
September 23, 2026 15:14
2567704 to
5481567
Compare
Contributor
Author
|
Hii @calebephrem, I've done the requested changes, Kindly review it. |
|
Note Linting checks passed successfully 🎉 All formatting and code quality checks are clean. You're good to merge 🚀 |
Member
|
Thanks for contributing! |
This branch was successfully deployed
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.

What does this PR do?
Updates the "More like this" section in article pages to show the article's next/previous posts instead of simply displaying the latest two posts. The current article is excluded from the results.
Closes
Type of change(s)
Checklist
bun run lintornpm run lintcompletes without warnings or errorsbun run buildornpm run buildcompletes successfullyfeat: ...,fix: ...,chore: ...)console.log)Screenshots / recordings (if applicable)
Not applicable — this change updates the article recommendation logic without changing the UI design.
Anything else the reviewer should know?
The Prettier formatting command could not be run because Prettier is not currently available in the project's installed dependencies. No unrelated formatting changes were included in this PR.