Skip to content

[Bug]: "Previous" and "Next" links swapped when ShowPostNavLinks = true #1782

@kabupatix

Description

@kabupatix

What happened?

With the default configuration of the theme, the "Previous" link is on the left, but points to the next post (in chronological order)
The "Next" link is on the right, but points to the previous post (in chronological order)

What I expect (at least in locales with left-to-right writing)
The "Previous" link is on the left and points to the previous post (in chronological order)
The "Next" link is on the right and points to the next post (in chronological order)

Attached screenshot (German language, but you should be able to see the problem)

I forked the repo and fixed the issue but it's on Codeberg:
https://codeberg.org/SonstHarmlos/hugo-PaperMod/commit/7b45c18a39895f12ba33666d289675db801909a2

I can create a pull request here if you like.

Steps to reproduce

Set ShowPostNavLinks: true in "Params"
Have multiple posts
Go to the bottom of a post

Image

Hugo Version

Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)

PaperMod Version

v8.0

What kind of devices are you seeing the problem on?

Desktop

What browsers are you seeing the problem on?

Firefox

Browser Version

141.0.3

Relevant log output

No log output

Repository/Source Code link where this issue can be reproduced

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions