trwnh.com/unified.test.hugo/layouts/partials/paginator.html

16 lines
442 B
HTML
Raw Normal View History

2024-10-05 06:27:07 +00:00
<div class="paginator">
<div class="list">
{{ $paginator := .Paginate .RegularPages (or .Params.pagination.pagerSize 10)}}
{{ range $paginator.Pages }}
<article class="page">
<p>
{{.Date.Format "2006-01-02"}}:
<a href="{{.Permalink}}">{{.Title}}</a><br>
<span>{{.Summary}}</span>
</p>
</article>
{{ end }}
</div>
<!-- Hugo's default pagination template. -->
{{ template "_internal/pagination.html" . }}
</div>