-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] The blog posts order is wrong #2698
Comments
I think it was done on purpose. @yangshun isn't that right? |
Yes it's on purpose. It depends on perspective. If you view the posts as a list of entries in reverse chronological order (newest first, on the left), then the next post is an older post. Seems like Gatsby does the reverse of us. IMO we should just do what makes the most sense and what most blogs do. If someone is interested in researching and coming up with a conclusion, we could change it. |
I think we can close this issue due to a long lack of response from the author. |
We can leave it open in case someone else wants to research and recommend something. |
Discussion: Should the next button lead to (A) an older post or (B) a newer post? Which behavior makes more sense?I think this depends on how the user interacts with the blog. Scenario 1: User finishes reading the newest blog post and looks for another blog postLet's scroll to the bottom of the newest post in Docusaurus and Gatsby as an example. Having the right button lead to the next oldest post seems more intuitive. This is probably because we associate the right button with proceeding forward, and left button with proceeding backwards (like the front and back buttons in your browser). In this scenario, option A seems more sensible. Scenario 2: User finishes a random blog post and looks for an older blog postAgain, we can scroll to the bottom of a random post in Docusaurus and Gatsby as example. When the user tries to look for an older post, it is likely that the user will think that the "previous" button will lead to an older post. After all, "previous" implies that something is older. In this scenario, I think that option B is more sensible to avoid confusion. Which behavior is more common?I couldn't find any statistics on this, so I looked through blog sites at random. Here are some examples: Sites using Option A Sites using Option B Option B seems to be more common than Option A. Other options
RecommendationI think both options are equally sensible, but Option B is more common compared to Option A. Please let me know what you think! I'll make the changes to the blog (if needed). |
Thanks for doing the research! Let's go with the more popular option together with the terminology change :) |
Roger that, I'll make a PR soon! :D |
🐛 Bug Report
In blog, there is a suggestion button for previous post and next post. However, the order is wrong. It will suggest the previous blog post in the "Next Post" button and vice versa.
Have you read the Contributing Guidelines on issues?
yes.
To Reproduce
or
Expected behavior
The newer post should be showed on the "Next post" button and vice versa.
Actual Behavior
The older post is showed on the "Next post" button and vice versa.
Your Environment
Reproducible Demo
go to docusaurus v2 blog page. For example, this
The text was updated successfully, but these errors were encountered: