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] - introduce startPortion parametr or different chunk size for first paginated page #1036

Open
bodurkalukasz opened this issue Mar 22, 2020 · 0 comments · May be fixed by #2466
Open

Comments

@bodurkalukasz
Copy link

Hi,
im trying to do a blog main page, where i will have 10 'latest' entries.

What i would like for pagination is to have this 10 entries on main page but then paginate for 24 entries. Is it possible with current setup?

What comes to my mind at first is to have something like:

---
pagination:
  data: collections.posts
  startSize: 10
  size: 24
  alias: posts
---

Then, pagination would do that out of the box.

Snapstromegon added a commit to Snapstromegon/eleventy that referenced this issue Jun 29, 2022
This PR adds an option to skip the first n items of a pagination.
This allows usecases as described in 11ty#1036, where one might want to show the first n items on onether page and then paginate over the rest.

Signed-off-by: Raphael Höser <[email protected]>
@Snapstromegon Snapstromegon linked a pull request Jun 29, 2022 that will close this issue
Snapstromegon added a commit to Snapstromegon/eleventy that referenced this issue Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants