calintat / minimal

Personal blog theme powered by Hugo
https://themes.gohugo.io/minimal/
MIT License
404 stars 221 forks source link

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

Open mbana opened 6 years ago

mbana commented 6 years ago

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

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

PaulRBerg commented 5 years ago

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.