forked from 11ty/eleventy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11ty#1036 Add skip parameter to pagination plugin
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]>
- Loading branch information
1 parent
fc6fc96
commit caf0313
Showing
4 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
venues: | ||
- first | ||
- second | ||
- third | ||
- fourth | ||
- fifth | ||
pagination: | ||
data: venues | ||
size: 2 | ||
skip: one | ||
addAllPagesToCollections: true | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
venues: | ||
- first | ||
- second | ||
- third | ||
- fourth | ||
- fifth | ||
pagination: | ||
data: venues | ||
size: 2 | ||
skip: 1 | ||
addAllPagesToCollections: true | ||
--- |