Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes Paginate accept slices of PageGroup (in addition to PagesGroup)
User can now do something such as: {{ $cool := .Page.Group "cool" (where .Site.RegularPages "Params.cool" true) }} {{ $blue := .Page.Group "blue" (where .Site.RegularPages "Params.blue" true) }} {{ $paginator := .Page.Paginate (slice $cool $blue) }} {{ range $paginator.PageGroups }} {{ markdownify (printf "## KEY: %s" .Key) }} {{ range .Pages }} {{ partial "lists/partials/blogentry.html" (dict "Page" .) }} {{ end }} {{ end }}
- Loading branch information