jeremykidwell.info/layouts/partials/paging.html
Jeremy Kidwell 13e2fd6e74 first commit
2017-06-26 20:57:02 +01:00

27 lines
633 B
HTML
Executable file

<div class="wrapper">
<div class="units-row">
<div class="unit-centered unit-40">
<ul class="pagination">
{{ if .Paginator.HasNext }}
<li><a href="{{.Paginator.Next.URL}}">
« Older&nbsp;
</a>
</li>
{{ end }}
<li><span>Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}</span></li>
{{ if .Paginator.HasPrev }}
<li>
<a href="{{.Paginator.Prev.URL}}">
&nbsp;Newer »
</a>
</li>
{{ end }}
</ul>
{{ partial "allcats.html" . }}
</div>
</div>
</div>