Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pagination: allow specifying pagination value instead of defaulting to 5 #81

Open
mbana opened this issue Aug 23, 2018 · 1 comment
Open

Comments

@mbana
Copy link

mbana commented Aug 23, 2018

https://github.com/calintat/minimal/blob/master/layouts/_default/terms.html

Looks like it defaults to 5. Would be nice to:

  • increase this to a huge value, or
  • allow specifying it somehow?
@PaulRBerg
Copy link

I was able to update the pagination by adding an index.html file in the layouts folder:

{{ partial "header" . }}

<main>
  <h1>Title</h1>

  {{ range (.Paginator 20).Pages }} {{ partial "list-item" . }} {{ end }}
</main>

{{ partial "paginator" . }}

{{ partial "footer" . }}

In the example above, I changed 5 to 20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants