trwnh.com/threads.hugo/layouts/partials/paginator.html

16 lines
No EOL
411 B
HTML

<div class="paginator">
<div class="list">
{{ $paginator := .Paginate .Site.RegularPages }}
{{ 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>