diff --git a/site/_posts/2012-07-01-pagination.md b/site/_posts/2012-07-01-pagination.md index 8f3f7b4d..e412e697 100644 --- a/site/_posts/2012-07-01-pagination.md +++ b/site/_posts/2012-07-01-pagination.md @@ -31,6 +31,58 @@ paginate: 5 The number should be the maximum number of Posts you’d like to be displayed per- page in the generated site. +## Liquid Attributes Available + +The pagination plugin exposes the `paginator` liquid object with the following +attributes: + +
Attribute | +Description | +
---|---|
|
+ current page number |
+
|
+ number of posts per page |
+
|
+ a list of posts for the current page |
+
|
+ total number of posts in the site |
+
|
+ number of pagination pages |
+
|
+ page number of the previous pagination page |
+
|
+ path (including leading "/") of previous pagination page |
+
|
+ page number of the next pagination page |
+
|
+ path (including leading "/") of next pagination page |
+
Pagination pages through every post in the posts
variable regardless of variables defined in the YAML Front Matter of each. It does not currently allow paging over groups of posts linked by a common tag or category.