blob: a02a92241f50ee863db95e6332e8141bf513737d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{{ $paginator := .Paginator 10 }}
{{ range (.Paginate (where .Site.RegularPages ".Params.category" "intersect" "blog")).Pages }}
{{ partial "partials/article_list_full_item.html" . }}
{{ end }}
<nav class="blog-pages-list">
Pages:
{{ if $paginator.HasPrev }}
[ <a href="{{ $paginator.Prev.URL}}">previous</a> ]
{{ end }}
{{ range seq $paginator.TotalPages }}
{{ if eq . $paginator.PageNumber }}
<span class="current"> {{. }} </span>
{{ else }}
<a href="/blog/page/{{ . }}/">{{ . }}</a>
{{ end }}
{{ end }}
{{ if $paginator.HasNext }}
[ <a href="{{ $paginator.Next.URL}}">Next</a> ]
{{ end }}
</nav>
|