#95: fixing link to next/prev post in the post page by analogy with post summary (layouts/partials/post-summary.html)

This commit is contained in:
Maksim Iakunin 2021-08-24 19:29:15 +03:00
parent 5dab60e04a
commit 7cb4583894
No known key found for this signature in database
GPG Key ID: 629DE6EA48DAF1F4

View File

@ -2,12 +2,12 @@
<div class="pagination post-pagination">
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
{{ if .NextInSection }}
<a href="{{ .NextInSection.Permalink | relLangURL }}">{{ .NextInSection.Title }}</a>
<a href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
{{ end }}
</div>
<div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
{{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink | relLangURL }}">{{ .PrevInSection.Title }}</a>
<a href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
{{ end }}
</div>
</div>