mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-16 09:17:03 +01:00
Alan Orth
70b4844c63
Hugo's own pagination stuff works just as well and probably covers even more corner cases. Also, this is one less config variable to have to check because you can just use Paginate (Default: 10).
9 lines
168 B
HTML
9 lines
168 B
HTML
{{ define "main" }}
|
|
|
|
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
|
{{ range $paginator.Pages }}
|
|
{{ .Render "summary" }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|