Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination support #496

Closed
tlienart opened this issue May 19, 2020 · 0 comments · Fixed by #589
Closed

Pagination support #496

tlienart opened this issue May 19, 2020 · 0 comments · Fixed by #589
Labels

Comments

@tlienart
Copy link
Owner

tlienart commented May 19, 2020

Support for pages that contains essentially a list to have that list split across several pages. Could look something like the following

XX 

{{paginate 5}}
  {{some_list}}
{{end}}

YY

Where XX and YY (if non-empty) would be applied on all pages.

The result would be to generate the page (e.g. /blog/) as well as a bunch of children pages /blog/page/2/ ...

Some notes

  • children pages would have the same page vars as the parent page
  • title would be the same across pages (?) could maybe have auxiliary children-specific page vars (like for tags)

Stuff to figure out

  • is there a similar abstraction for "archive" pages?
@tlienart tlienart added the wip label May 19, 2020
@tlienart tlienart mentioned this issue Jul 6, 2020
38 tasks
tlienart added a commit that referenced this issue Aug 16, 2020
* wip

* tests passing

* small modif

* working functionality

* with more complete test suite

* adding logic to remove spurious dirs after pagination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant