blob: 3260a962c9ec577f2d270ccff8deba979ab0650c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ define "main" }}
{{ $paginator := .Paginate (where site.RegularPages "Type" "!=" "special")}}
{{ range $paginator.Pages }}
<article class="list">
{{ partial "partials/full_post.html" . }}
</article>
{{ end }}
<nav id="pagination">
<ul>
{{ if .Paginator.HasPrev }}<li id="page-previous"><a href="{{ .Paginator.Prev.URL }}">← Newer</a></li>{{ end }}<li id="page-number"><span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span></li>{{ if .Paginator.HasNext }}<li id="page-next"><a href="{{ .Paginator.Next.URL }}">Older →</a></li>{{ end }}
</ul>
</nav>
{{ end }}
|