jekyll-paginate-v2 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README-GENERATOR.md +21 -0
- data/lib/jekyll-paginate-v2/generator/paginationModel.rb +3 -0
- data/lib/jekyll-paginate-v2/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e177a112ac16ec487200097f2fbb3b84f28890e
|
4
|
+
data.tar.gz: 20b1004193f7a51e063f0319662977ea7836dd8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 730ee61ecb4b2fabb4cef34d50c510ddc8594c1d7e1f6e0253041095ff0988c89877a7d4b84910d678d534e8d689bc779d38553846429099fad43aabfd66fabb
|
7
|
+
data.tar.gz: 86cecc1ec96fd8c2b29ee87e70d5afeb9b2485f05d0a15181cd356addfb6b8708c95db17867f1e1fe1490531468553bfe69861104707ba228ec664c849b1e910
|
data/README-GENERATOR.md
CHANGED
@@ -139,6 +139,27 @@ And to display pagination links, simply
|
|
139
139
|
|
140
140
|
> All posts that have the `hidden: true` in their front matter are ignored by the pagination logic.
|
141
141
|
|
142
|
+
Following fields area available on the `paginator` object
|
143
|
+
|
144
|
+
| Field | Description |
|
145
|
+
| --- | --- |
|
146
|
+
| per_page | Maximum number of posts or documents on each pagination page. |
|
147
|
+
| posts | The list of post objects that belong to this pagination page. |
|
148
|
+
| total_posts | Total number of posts included in pagination. |
|
149
|
+
| total_pages | Total number of pagination pages created. |
|
150
|
+
| page | Number of the current pagination page. |
|
151
|
+
| page_path | The relative Url path of the current pagination page. |
|
152
|
+
| previous_page | Number of the previous page in the pagination. Nil if no previous page is available. |
|
153
|
+
| previous_page_path | The relative Url of the previous page. Nil if no previous page is available. |
|
154
|
+
| next_page | Number of the next page in the pagination. Nil if there is no next page available. |
|
155
|
+
| next_page_path | The relative Url of the next page in the pagination. Nil if there is no next page available. |
|
156
|
+
| first_page | Number of the first page in the pagination (usually this is `1`). |
|
157
|
+
| first_page_path | The relative Url of the first page in the pagination. |
|
158
|
+
| last_page | Number of the last page in the pagination (this is equal to `total_pages`). |
|
159
|
+
| last_page_path | The relative Url of the last page in the pagination. |
|
160
|
+
| page_trail | The [pagination trail](#creating-pagination-trails) structure |
|
161
|
+
|
162
|
+
|
142
163
|
The code is fully backwards compatible and you will have access to all the normal paginator variables defined in the [official jekyll documentation](https://jekyllrb.com/docs/pagination/#liquid-attributes-available).
|
143
164
|
|
144
165
|
Neat! :ok_hand:
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module PaginateV2
|
3
|
-
VERSION = "1.8.
|
3
|
+
VERSION = "1.8.1"
|
4
4
|
# When modifying remember to issue a new tag command in git before committing, then push the new tag
|
5
|
-
# git tag -a v1.8.
|
5
|
+
# git tag -a v1.8.1 -m "Gem v1.8.1"
|
6
6
|
# git push origin --tags
|
7
7
|
# Yanking a published Gem
|
8
8
|
# gem yank jekyll-paginate-v2 -v VERSION
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-paginate-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sverrir Sigmundarson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|