If I change the date setting in the front matter to that of the publishdate, then .Next and .Prev return valid values. Perhaps the documentation should read that these return “based on date” and not ‘pub date’?
This would mean I can’t use publishdate, so I hope there’s a workaround.
Another thing I noticed on Hugo 0.16 is that .Next returns the previous content with a later date (based on date, not publishdate) whereas .Previous returns the next (that is, the older content).
For example, on my 10 August post, this:
<div class="post-navigation">
Previous: {{ if .Prev }} {{ .Prev.Date }} {{ end }} <br/>
Next: {{ if .Next }} {{ .Next.Date }} {{ end }}
</div>
Prints:
Previous: 2016-09-20 00:00:00 +0000 UTC
Next: 2016-07-10 00:00:00 +0000 UTC
I would assume here that 20 September is “next to” 10 August, whereas 10 July would be “previous to” 10 August. But it seems to be the other way around.