Fix single post pagination
This commit is contained in:
parent
899d9fd52d
commit
3676a7c18e
1 changed files with 6 additions and 6 deletions
|
@ -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 }}
|
Loading…
Add table
Add a link
Reference in a new issue