minimal
minimal copied to clipboard
pagination: allow specifying pagination value instead of defaulting to 5
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?
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.