website/layouts/partials/pagination.html

14 lines
452 B
HTML
Raw Normal View History

2020-01-12 14:14:15 +01:00
<nav id="page-nav">
2020-01-12 21:05:46 +01:00
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
{{ if .Paginator.HasPrev }}
<a class="extend prev" rel="prev" href="{{.Paginator.Prev.URL}}">
« {{with .Site.Data.l10n.pagination.previous}}{{.}}{{end}}
</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="extend next" rel="next" href="{{.Paginator.Next.URL}}">
{{with .Site.Data.l10n.pagination.next}}{{.}}{{end}} »
</a>
{{ end }}
{{ end }}
</nav>