You can use a custom output format.
First create the custom output format
# config.yaml
outputFormats:
reversed:
baseName: reversed
mediaType: text/html
Then create a template for this output format. I guess very similar to your list template only with the pages order reversed. For Hugo to pick it up you must name it: layouts/_default/list.reversed.html
(_default
, if it’s not attached to a content type in particular)
Finally make sure the output format is assigned to the page by using either one of the documented methods
Now you have .RelPermalink
for your normal list page, and from the template you can retrieve its “reversed variation” with (.OutputFormats.Get "reversed").RelPermalink