When running Hugo with the PaperMod theme, the nav links at the bottom of each post seem like they should be reversed. And getting that to happen is super easy!
Just copy this file:
themes\PaperMod\layouts\partials\post_nav_links.html
to here:
layouts\partials\post_nav_links.html
and just swap lines 4 and 11. Here’s the diff:
--- themes\PaperMod\layouts\partials\post_nav_links.html 2022-07-18 09:47:47.635823100 -0700
+++ layouts\partials\post_nav_links.html 2022-07-18 09:56:20.596032400 -0700
@@ -1,14 +1,14 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if and (gt (len $pages) 1) (in $pages . ) }}
<nav class="paginav">
- {{- with $pages.Next . }}
+ {{- with $pages.Prev . }}
<a class="prev" href="{{ .Permalink }}">
<span class="title">A« {{ i18n "prev_page" }}</span>
<br>
<span>{{- .Name -}}</span>
</a>
{{- end }}
- {{- with $pages.Prev . }}
+ {{- with $pages.Next . }}
<a class="next" href="{{ .Permalink }}">
<span class="title">{{ i18n "next_page" }} A»</span>
<br>
Boom. Done!