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

16 lines
411 B
HTML
Raw Normal View History

<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>