Skip to content

Conversation

@robhudson
Copy link
Contributor

I recently followed the v4.4.0 -> v4.5.0 update and noticed the out of order posts. This adds the date sorted posts back like they were in v4.4.0.

@xiecang
Copy link
Contributor

xiecang commented Sep 28, 2024

Great fix! I had the same issue. But I think you should also swap the previous and next buttons as part of this update. What do you think?

const nextPost = currentPostIndex !== 0 ? allPosts[currentPostIndex - 1] : null;
const prevPost =
  currentPostIndex !== allPosts.length ? allPosts[currentPostIndex + 1] : null;

@robhudson
Copy link
Contributor Author

But I think you should also swap the previous and next buttons as part of this update. What do you think?

I didn't notice any issue with the prev/next buttons. If there's a but there I'd suggest filing a separate PR to fix it.

@satnaing
Copy link
Owner

satnaing commented Oct 2, 2024

Didn't notice this issue.
Thanks for the fix.

@satnaing satnaing merged commit 94ede9b into satnaing:main Oct 2, 2024
1 check passed
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.

3 participants