feat(): add support for pagination in _default/list.html
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
{{ partial "top.html" . }}
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
|
||||
<div class="articles-list">
|
||||
{{ range .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<article>
|
||||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a> - {{ dateFormat "01-02-2006 15:04:05" .Date }}</h3>
|
||||
{{ .Summary }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ partial "bottom.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user