You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the _defaults/list.html template, we have a paginator like this (once my jQuery stuff lands):
{{ range $index, $page := .Paginator.Pages }}
{{ if not (isset $page.Params "exclude_paginate") }}
{{ .Render "li" }}
{{ end }}
{{ end }}
{{ partial "pagination.html" .Paginator }}
Previously this excluded about.md by name because it was the only special page.
Instead of iterating over all pages then looking at their params, l'd like to make the paginator from only those that we should include. I've introduced an "exclude_pagination" param, but that is probably stupid. It's good for now.
I think we really want something like this, which is not correct syntactically. We select all the pages to include, then paginate that list.
In the _defaults/list.html template, we have a paginator like this (once my jQuery stuff lands):
Previously this excluded about.md by name because it was the only special page.
Instead of iterating over all pages then looking at their params, l'd like to make the paginator from only those that we should include. I've introduced an "exclude_pagination" param, but that is probably stupid. It's good for now.
I think we really want something like this, which is not correct syntactically. We select all the pages to include, then paginate that list.
The text was updated successfully, but these errors were encountered: