about summary refs log tree commit diff
path: root/layouts/partials/post-pagination.html
blob: 2130181b841330d27b4d7f51941de39217aebfdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
    <div class="pagination post-pagination">
        <div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
            {{ if .NextInSection }}
                <a href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }}</a>
            {{ end }}
        </div>
        <div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
            {{ if .PrevInSection }}
                <a href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title }}</a>
            {{ end }}
        </div>
    </div>
{{ end }}

{{ partial "pagination-extra.html" . }}