hugo-tufte/layouts/_default/paginate.list.html
2015-12-29 18:35:20 -08:00

21 lines
540 B
HTML

{{ .Title }}
<!-- {{ template "_internal/pagination.html" }} -->
Hello this is a list of content.
{{ .TableOfContents }}
{{ $paginator := .Paginate ( (.Data.Pages.GroupByDate "2006") ) }}
<ul>
<li>PageNumber: {{ $paginator.PageNumber }}</li>
<li>URL: {{ $paginator.URL}}</li>
<li>Pages: {{ $paginator.Pages }}</li>
<li>TotalPages: {{ $paginator.TotalPages }}</li>
</ul>
{{ range $paginator.PageGroups }}
<h2>{{ .Key }}</h2>
{{ range .Pages }}
<br/>
<a href="{{ .RelPermalink }}">{{.Title}}</a>
{{ end }}
{{ end }}