jekyll-paginate-v2 1.7.4 → 1.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2532ac68e4189a91eea0948700dd768fd3ee6cb5
|
4
|
+
data.tar.gz: 7ac5fe503fc074956f537427f44620d6f8a4c3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1319f2b20451d50a408db53bbb1bfd0c357f1bd1fec6ceebc10592503c0cca1cf30d17b67301d1550734c6859108e79930cb0914785541f9b20df14247c83e
|
7
|
+
data.tar.gz: 4b557459b5c692a0d637955dab1cbc46d14c47c43e4120a2401bd8a1d3a5636ced1ac80090c58ce0c56944f9f6c5cca8e4867a20877ffdb571deeee501643748
|
@@ -52,7 +52,7 @@ module Jekyll
|
|
52
52
|
# page types to the calling code (this way all features can reuse the logic).
|
53
53
|
#
|
54
54
|
def self.autopage_create(autopage_config, pagination_config, posts_to_use, configkey_name, indexkey_name, createpage_lambda )
|
55
|
-
|
55
|
+
if !autopage_config[configkey_name].nil?
|
56
56
|
ap_sub_config = autopage_config[configkey_name]
|
57
57
|
if ap_sub_config ['enabled']
|
58
58
|
Jekyll.logger.info "AutoPages:","Generating #{configkey_name} pages"
|
@@ -6,7 +6,8 @@ module Jekyll
|
|
6
6
|
#
|
7
7
|
class Paginator
|
8
8
|
attr_reader :page, :per_page, :posts, :total_posts, :total_pages,
|
9
|
-
:previous_page, :previous_page_path, :next_page, :next_page_path, :page_path, :page_trail
|
9
|
+
:previous_page, :previous_page_path, :next_page, :next_page_path, :page_path, :page_trail,
|
10
|
+
:first_page, :first_page_path, :last_page, :last_page_path
|
10
11
|
|
11
12
|
def page_trail
|
12
13
|
@page_trail
|
@@ -37,6 +38,11 @@ module Jekyll
|
|
37
38
|
@previous_page_path = @page != 1 ? @page == 2 ? first_index_page_url : Utils.format_page_number(paginated_page_url, @previous_page, @total_pages) : nil
|
38
39
|
@next_page = @page != @total_pages ? @page + 1 : nil
|
39
40
|
@next_page_path = @page != @total_pages ? Utils.format_page_number(paginated_page_url, @next_page, @total_pages) : nil
|
41
|
+
|
42
|
+
@first_page = 1
|
43
|
+
@first_page_path = first_index_page_url
|
44
|
+
@last_page = @total_pages
|
45
|
+
@last_page_path = Utils.format_page_number(paginated_page_url, @total_pages, @total_pages)
|
40
46
|
end
|
41
47
|
|
42
48
|
# Convert this Paginator's data to a Hash suitable for use by Liquid.
|
@@ -54,6 +60,10 @@ module Jekyll
|
|
54
60
|
'previous_page_path' => previous_page_path,
|
55
61
|
'next_page' => next_page,
|
56
62
|
'next_page_path' => next_page_path,
|
63
|
+
'first_page' => first_page,
|
64
|
+
'first_page_path' => first_page_path,
|
65
|
+
'last_page' => last_page,
|
66
|
+
'last_page_path' => last_page_path,
|
57
67
|
'page_trail' => page_trail
|
58
68
|
}
|
59
69
|
end
|
@@ -74,7 +84,7 @@ module Jekyll
|
|
74
84
|
def to_liquid
|
75
85
|
{
|
76
86
|
'num' => num,
|
77
|
-
'path' => path
|
87
|
+
'path' => path,
|
78
88
|
'title' => title
|
79
89
|
}
|
80
90
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module PaginateV2
|
3
|
-
VERSION = "1.
|
3
|
+
VERSION = "1.8.0"
|
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.
|
5
|
+
# git tag -a v1.8.0 -m "Gem v1.8.0"
|
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.
|
4
|
+
version: 1.8.0
|
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-
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|