-
Notifications
You must be signed in to change notification settings - Fork 196
BUG: Previous/next for blog inconsistent with pagination #163
Comments
I understand what you are saying, but I think it is a linguistic issue. When you are on a list of pages, you are going to the next page (because there is only one page as an option). When you are on a single post, you are going to the previous post if you are going back in time (because posts are time-based). Here are the relevant templates for the theme. For Single Pages: hugo-future-imperfect-slim/layouts/partials/pagination.html Lines 1 to 9 in 5f7d838
For List Pages: hugo-future-imperfect-slim/layouts/_default/pagination.html Lines 1 to 8 in 5f7d838
That being said, I will look at some other themes to see what they do. |
After looking at this further, I agree. Single page pagination left should go to newer posts while right should go to older posts as it does with the list pagination. I will include this in #154, which I hope to merge by the end of this week. |
Bug Report
Describe the bug
The previous/next buttons underneath a blog are in reverse order compared to the pagination. With pagination the left button goes to the previous page (more recent posts) and the right button to the next page (older posts). Underneath a blog page the left button will go to the next (older) article and the right button goes to the previous (newer) article.
To Reproduce
Visible when multiple blog posts are available that generate at least 3 pages.
Expected behavior
The left button underneath the blog should go to the newer article, the right button to the older article.
Screenshots
On the blog index page the order of articles is shown including the previous/next buttons:
The next image shows the buttons underneath the middle article. The order does not match that of the index page:
Environment
Additional context
The text was updated successfully, but these errors were encountered: