Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants