minimal icon indicating copy to clipboard operation
minimal copied to clipboard

pagination: allow specifying pagination value instead of defaulting to 5

Open mbana opened this issue 7 years ago • 1 comments

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?

mbana avatar Aug 23 '18 08:08 mbana

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.

PaulRBerg avatar Apr 27 '19 11:04 PaulRBerg