Fix single post pagination

This commit is contained in:
Dmitry Kolosov 2020-06-07 14:25:18 +03:00
parent 899d9fd52d
commit 3676a7c18e

View File

@ -1,14 +1,14 @@
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
<div class="pagination post-pagination">
<div class="left pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
{{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink | relLangURL }}">{{ .PrevInSection.Title }}</a>
{{ end }}
</div>
<div class="right pagination-item {{ if not .NextInSection }}disabled{{ end }}">
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
{{ if .NextInSection }}
<a href="{{ .NextInSection.Permalink | relLangURL }}">{{ .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>
{{ end }}
</div>
</div>
{{ end }}