Open Pinjasaur opened 1 year ago
Would need to consider how the templating would work too.
As inspiration, my blog looks like:
{{#pagination}}
<div style="text-align: center;">
<small>
{{#previous}}
<a class="js-newer" href="/page/{{previous}}">← Previous page</a>
{{/previous}}
{{#previous}}{{#next}} • {{/next}}{{/previous}}
{{#next}}
<a class="js-older" href="/page/{{next}}">Next page →</a>
{{/next}}
</small>
</div>
<hr>
<div style="text-align: center;">
<small>Page {{current}} of {{total}}</small>
</div>
{{/pagination}}
cc @mfossen
maybe could use https://github.com/CloudCannon/pagebreak?
Related to #10.
Supporting pagination would be a nice feature.
Some thoughts:
PER_PAGE
as a envar config, default perhaps 10 and can scale indefinitely high for "no pagination"?/page/{page}
vs/pages/{page}
?mv
-ed toindex.html
?