diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4828ebb..e8a2608 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,5 +12,12 @@ </div> </article> {{ end }} - {{ template "_internal/pagination.html" . }} + +<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 }} |