Fix single post pagination
This commit is contained in:
parent
899d9fd52d
commit
3676a7c18e
@ -1,14 +1,14 @@
|
|||||||
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
|
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
|
||||||
<div class="pagination post-pagination">
|
<div class="pagination post-pagination">
|
||||||
<div class="left pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
|
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
|
||||||
{{ if .PrevInSection }}
|
|
||||||
<a href="{{ .PrevInSection.Permalink | relLangURL }}">{{ .PrevInSection.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
<div class="right pagination-item {{ if not .NextInSection }}disabled{{ end }}">
|
|
||||||
{{ if .NextInSection }}
|
{{ if .NextInSection }}
|
||||||
<a href="{{ .NextInSection.Permalink | relLangURL }}">{{ .NextInSection.Title }}</a>
|
<a href="{{ .NextInSection.Permalink | relLangURL }}">{{ .NextInSection.Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
|
||||||
|
{{ if .PrevInSection }}
|
||||||
|
<a href="{{ .PrevInSection.Permalink | relLangURL }}">{{ .PrevInSection.Title }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user