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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2532ac68e4189a91eea0948700dd768fd3ee6cb5
4
- data.tar.gz: 7ac5fe503fc074956f537427f44620d6f8a4c3ce
3
+ metadata.gz: 9e177a112ac16ec487200097f2fbb3b84f28890e
4
+ data.tar.gz: 20b1004193f7a51e063f0319662977ea7836dd8a
5
5
  SHA512:
6
- metadata.gz: ff1319f2b20451d50a408db53bbb1bfd0c357f1bd1fec6ceebc10592503c0cca1cf30d17b67301d1550734c6859108e79930cb0914785541f9b20df14247c83e
7
- data.tar.gz: 4b557459b5c692a0d637955dab1cbc46d14c47c43e4120a2401bd8a1d3a5636ced1ac80090c58ce0c56944f9f6c5cca8e4867a20877ffdb571deeee501643748
6
+ metadata.gz: 730ee61ecb4b2fabb4cef34d50c510ddc8594c1d7e1f6e0253041095ff0988c89877a7d4b84910d678d534e8d689bc779d38553846429099fad43aabfd66fabb
7
+ data.tar.gz: 86cecc1ec96fd8c2b29ee87e70d5afeb9b2485f05d0a15181cd356addfb6b8708c95db17867f1e1fe1490531468553bfe69861104707ba228ec664c849b1e910
@@ -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:
@@ -118,6 +118,9 @@ module Jekyll
118
118
  docs += @collection_by_name_lambda.call(coll_name.downcase.strip)
119
119
  end
120
120
 
121
+ # Hidden documents should not not be processed anywhere.
122
+ docs = docs.reject { |doc| doc['hidden'] }
123
+
121
124
  return docs
122
125
  end
123
126
 
@@ -1,8 +1,8 @@
1
1
  module Jekyll
2
2
  module PaginateV2
3
- VERSION = "1.8.0"
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.0 -m "Gem v1.8.0"
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll