jekyll-paginate-v2 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -43
- data/Rakefile +2 -2
- data/jekyll-paginate-v2.gemspec +3 -1
- data/lib/jekyll-paginate-v2.rb +12 -8
- data/lib/jekyll-paginate-v2/autopages/autoTagPages.rb +66 -0
- data/lib/jekyll-paginate-v2/autopages/defaults.rb +26 -0
- data/lib/jekyll-paginate-v2/autopages/utils.rb +21 -0
- data/lib/jekyll-paginate-v2/{compatibilityUtils.rb → generator/compatibilityUtils.rb} +4 -2
- data/lib/jekyll-paginate-v2/{defaults.rb → generator/defaults.rb} +3 -2
- data/lib/jekyll-paginate-v2/{paginationGenerator.rb → generator/paginationGenerator.rb} +14 -9
- data/lib/jekyll-paginate-v2/generator/paginationIndexer.rb +93 -0
- data/lib/jekyll-paginate-v2/{paginationModel.rb → generator/paginationModel.rb} +99 -120
- data/lib/jekyll-paginate-v2/{paginationPage.rb → generator/paginationPage.rb} +1 -1
- data/lib/jekyll-paginate-v2/{paginator.rb → generator/paginator.rb} +1 -1
- data/lib/jekyll-paginate-v2/{utils.rb → generator/utils.rb} +11 -4
- data/lib/jekyll-paginate-v2/version.rb +4 -4
- data/spec/{defaults_spec.rb → generator/defaults_spec.rb} +5 -3
- data/spec/generator/paginationPage_spec.rb +12 -0
- data/spec/{paginator_spec.rb → generator/paginator_spec.rb} +21 -18
- data/spec/generator/utils_spec.rb +90 -0
- data/spec/spec_helper.rb +8 -30
- metadata +41 -87
- data/examples/01-typicalblog/Gemfile +0 -28
- data/examples/01-typicalblog/README.md +0 -91
- data/examples/01-typicalblog/_config.yml +0 -51
- data/examples/01-typicalblog/_includes/header.html +0 -31
- data/examples/01-typicalblog/_layouts/home.html +0 -52
- data/examples/01-typicalblog/_posts/2016-11-20-geography-of-minneapolis.md +0 -29
- data/examples/01-typicalblog/_posts/2016-11-21-sailing-summer-olympics-1988.md +0 -15
- data/examples/01-typicalblog/_posts/2016-11-22-rotary-engine.md +0 -27
- data/examples/01-typicalblog/_posts/2016-11-23-luft-fahrzeug-gesellschaft.md +0 -27
- data/examples/01-typicalblog/_posts/2016-11-24-narcisse-snake-pits.md +0 -18
- data/examples/01-typicalblog/_posts/2016-11-25-tele7jours.md +0 -43
- data/examples/01-typicalblog/_posts/2016-11-26-columbia-river.md +0 -41
- data/examples/01-typicalblog/_posts/2016-11-27-welcome-to-jekyll-paginate-v2.md +0 -33
- data/examples/01-typicalblog/about.md +0 -15
- data/examples/01-typicalblog/index.html +0 -8
- data/examples/02-category/Gemfile +0 -28
- data/examples/02-category/README.md +0 -119
- data/examples/02-category/_config.yml +0 -47
- data/examples/02-category/_includes/header.html +0 -31
- data/examples/02-category/_layouts/home.html +0 -52
- data/examples/02-category/_posts/2016-10-27-welcome-to-jekyll-paginate-v2.md +0 -32
- data/examples/02-category/about.md +0 -15
- data/examples/02-category/cars/_posts/2016-10-18-Porsche-918-Spyder.md +0 -13
- data/examples/02-category/cars/_posts/2016-10-19-Porsche-964.md +0 -12
- data/examples/02-category/cars/_posts/2016-10-20-porsche-911-gt3.md +0 -13
- data/examples/02-category/cars/_posts/2016-10-21-porsche-911.md +0 -13
- data/examples/02-category/cars/_posts/2016-10-22-porsche-962.md +0 -18
- data/examples/02-category/cars/_posts/2016-10-23-Toyota-GT-One.md +0 -20
- data/examples/02-category/cars/_posts/2016-10-24-Mercedes-Benz-CLK-GTR.md +0 -40
- data/examples/02-category/cars/_posts/2016-10-25-rolls-royce-silver-ghost.md +0 -31
- data/examples/02-category/categories/byname.md +0 -11
- data/examples/02-category/categories/porsche.md +0 -10
- data/examples/02-category/index.md +0 -13
- data/examples/02-category/toyota/index.md +0 -7
- data/examples/03-tags/Gemfile +0 -28
- data/examples/03-tags/README.md +0 -67
- data/examples/03-tags/_biography/all/born-to-run.md +0 -26
- data/examples/03-tags/_biography/all/forty-autumns.md +0 -26
- data/examples/03-tags/_biography/all/life-in-questions-a.md +0 -27
- data/examples/03-tags/_biography/all/not-dead-yet.md +0 -24
- data/examples/03-tags/_biography/all/princess-diarist-the.md +0 -26
- data/examples/03-tags/_biography/all/when-breath-becomes-air.md +0 -24
- data/examples/03-tags/_biography/biography-musicians.md +0 -13
- data/examples/03-tags/_biography/index.md +0 -12
- data/examples/03-tags/_config.yml +0 -57
- data/examples/03-tags/_fantasy/all/harry-potter-deathly-hallows.md +0 -24
- data/examples/03-tags/_fantasy/all/harry-potter-philosophers-stone.md +0 -24
- data/examples/03-tags/_fantasy/all/mistborn-trilogy.md +0 -24
- data/examples/03-tags/_fantasy/all/ready-player-one.md +0 -24
- data/examples/03-tags/_fantasy/all/sword-of-destiny.md +0 -24
- data/examples/03-tags/_fantasy/all/terry-pratchet-diary-2017.md +0 -24
- data/examples/03-tags/_includes/header.html +0 -31
- data/examples/03-tags/_layouts/home.html +0 -51
- data/examples/03-tags/_layouts/post.html +0 -20
- data/examples/03-tags/_romance/all/breath-of-snow-and-ashes-a.md +0 -25
- data/examples/03-tags/_romance/all/dressmaker-the.md +0 -24
- data/examples/03-tags/_romance/all/fiery-cross-the.md +0 -26
- data/examples/03-tags/_romance/all/it-ends-with-us.md +0 -28
- data/examples/03-tags/_romance/all/outlander-novel.md +0 -34
- data/examples/03-tags/_romance/all/virgins-outlander-short-story.md +0 -26
- data/examples/03-tags/_romance/romance-historical.md +0 -14
- data/examples/03-tags/blog/_posts/2016-09-30-welcome-to-jekyll-paginate-v2.md +0 -32
- data/examples/03-tags/byisbn.md +0 -14
- data/examples/03-tags/index.md +0 -19
- data/examples/03-tags/tags/contemporary.md +0 -11
- data/examples/03-tags/tags/fantasy.md +0 -13
- data/examples/03-tags/tags/sci-fi.md +0 -16
- data/examples/README.md +0 -23
- data/examples/img/01-example-screenshot-main.png +0 -0
- data/examples/img/02-example-screenshot-main.png +0 -0
- data/examples/img/03-example-screenshot-main.png +0 -0
- data/spec/utils_spec.rb +0 -65
@@ -1,8 +1,8 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module PaginateV2
|
3
|
-
VERSION = "1.5.
|
3
|
+
VERSION = "1.5.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.5.
|
5
|
+
# git tag -a v1.5.1 -m "Gem v1.5.1"
|
6
6
|
# git push origin --tags
|
7
|
-
end
|
8
|
-
end
|
7
|
+
end # module PaginateV2
|
8
|
+
end # module Jekyll
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require_relative 'spec_helper.rb'
|
1
|
+
require_relative '../spec_helper.rb'
|
2
2
|
|
3
|
-
module Jekyll::PaginateV2
|
3
|
+
module Jekyll::PaginateV2::Generator
|
4
4
|
describe "checking default config" do
|
5
5
|
|
6
6
|
it "should always contain the following keys" do
|
@@ -13,7 +13,8 @@ module Jekyll::PaginateV2
|
|
13
13
|
DEFAULT.must_include 'sort_reverse'
|
14
14
|
DEFAULT.must_include 'sort_field'
|
15
15
|
DEFAULT.must_include 'limit'
|
16
|
-
DEFAULT.
|
16
|
+
DEFAULT.must_include 'debug'
|
17
|
+
DEFAULT.size.must_be :>=, 10
|
17
18
|
end
|
18
19
|
|
19
20
|
it "should always contain the following key defaults" do
|
@@ -26,6 +27,7 @@ module Jekyll::PaginateV2
|
|
26
27
|
DEFAULT['sort_reverse'].must_equal false
|
27
28
|
DEFAULT['sort_field'].must_equal 'date'
|
28
29
|
DEFAULT['limit'].must_equal 0
|
30
|
+
DEFAULT['debug'].must_equal false
|
29
31
|
end
|
30
32
|
|
31
33
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_relative '../spec_helper.rb'
|
2
|
+
|
3
|
+
module Jekyll::PaginateV2::Generator
|
4
|
+
describe "tesing pagination page implementation" do
|
5
|
+
|
6
|
+
it "sould always read the template file into itself" do
|
7
|
+
# DUE TO THE JEKYLL:PAGE CLASS ACCESSING FILE IO DIRECTLY
|
8
|
+
# I AM UNABLE TO MOCK OUT THE FILE OPERATIONS TO CREATE UNIT TESTS FOR THIS CLASS :/
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
@@ -1,27 +1,30 @@
|
|
1
|
-
require_relative 'spec_helper.rb'
|
1
|
+
require_relative '../spec_helper.rb'
|
2
2
|
|
3
|
-
module Jekyll::PaginateV2
|
3
|
+
module Jekyll::PaginateV2::Generator
|
4
4
|
describe Paginator do
|
5
5
|
|
6
6
|
it "must include the necessary paginator attributes" do
|
7
7
|
|
8
|
-
pager = Paginator.new(10, "/page:num/", [], 1, 10, "/index.md")
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
8
|
+
pager = Paginator.new(10, "/page:num/", [], 1, 10, "/index.md", "/index.md")
|
9
|
+
|
10
|
+
# None of these accessors should throw errors, just run through them to test
|
11
|
+
val = pager.page
|
12
|
+
val = pager.per_page
|
13
|
+
val = pager.posts
|
14
|
+
val = pager.total_posts
|
15
|
+
val = pager.total_pages
|
16
|
+
val = pager.previous_page
|
17
|
+
val = pager.previous_page_path
|
18
|
+
val = pager.next_page
|
19
|
+
val = pager.next_page_path
|
19
20
|
|
20
21
|
end
|
21
22
|
|
22
23
|
it "must throw an error if the current page number is greater than the total pages" do
|
23
|
-
err = -> { pager = Paginator.new(10, "/page:num/", [], 10, 8, "/index.md") }.must_raise RuntimeError
|
24
|
-
|
24
|
+
err = -> { pager = Paginator.new(10, "/page:num/", [], 10, 8, "/index.md", "/index.md") }.must_raise RuntimeError
|
25
|
+
|
26
|
+
# No error should be raised below
|
27
|
+
pager = Paginator.new(10, "/page:num/", [], 8, 10, "/index.md", "/index.md")
|
25
28
|
end
|
26
29
|
|
27
30
|
it "must trim the list of posts correctly based on the cur_page_nr and per_page" do
|
@@ -31,7 +34,7 @@ module Jekyll::PaginateV2
|
|
31
34
|
# Initialize a pager with
|
32
35
|
# 5 posts per page
|
33
36
|
# at page 2 out of 5 pages
|
34
|
-
pager = Paginator.new(5, "/page:num/", posts, 2, 5, "/index.md")
|
37
|
+
pager = Paginator.new(5, "/page:num/", posts, 2, 5, "/index.md", "/index.md")
|
35
38
|
|
36
39
|
pager.page.must_equal 2
|
37
40
|
pager.per_page.must_equal 5
|
@@ -56,7 +59,7 @@ module Jekyll::PaginateV2
|
|
56
59
|
# Initialize a pager with
|
57
60
|
# 5 posts per page
|
58
61
|
# at page 2 out of 5 pages
|
59
|
-
pager = Paginator.new(5, "/page:num/", posts, 1, 5, "/index.md")
|
62
|
+
pager = Paginator.new(5, "/page:num/", posts, 1, 5, "/index.md", "/index.md")
|
60
63
|
|
61
64
|
pager.page.must_equal 1
|
62
65
|
pager.per_page.must_equal 5
|
@@ -81,7 +84,7 @@ module Jekyll::PaginateV2
|
|
81
84
|
# Initialize a pager with
|
82
85
|
# 5 posts per page
|
83
86
|
# at page 2 out of 5 pages
|
84
|
-
pager = Paginator.new(5, "/page:num/", posts, 5, 5, "/index.md")
|
87
|
+
pager = Paginator.new(5, "/page:num/", posts, 5, 5, "/index.md", "/index.md")
|
85
88
|
|
86
89
|
pager.page.must_equal 5
|
87
90
|
pager.per_page.must_equal 5
|
@@ -0,0 +1,90 @@
|
|
1
|
+
require_relative '../spec_helper.rb'
|
2
|
+
|
3
|
+
module Jekyll::PaginateV2::Generator
|
4
|
+
describe Utils do
|
5
|
+
|
6
|
+
it "should always replace num format with the specified number" do
|
7
|
+
Utils.format_page_number( ":num", 7).must_equal "7"
|
8
|
+
Utils.format_page_number( ":num", 13).must_equal "13"
|
9
|
+
Utils.format_page_number( ":num", -2).must_equal "-2"
|
10
|
+
Utils.format_page_number( ":num", 0).must_equal "0"
|
11
|
+
Utils.format_page_number( ":num", 1000).must_equal "1000"
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should always replace num format with the specified number and keep rest of formatting" do
|
15
|
+
Utils.format_page_number( "/page:num/", 7).must_equal "/page7/"
|
16
|
+
Utils.format_page_number( "/page:num/", 50).must_equal "/page50/"
|
17
|
+
Utils.format_page_number( "/page:num/", -5).must_equal "/page-5/"
|
18
|
+
|
19
|
+
Utils.format_page_number( "/car/:num/", 1).must_equal "/car/1/"
|
20
|
+
Utils.format_page_number( "/car/:num", 1).must_equal "/car/1"
|
21
|
+
Utils.format_page_number( "car/:num", 1).must_equal "car/1"
|
22
|
+
Utils.format_page_number( "/car//:num", 1).must_equal "/car//1"
|
23
|
+
end
|
24
|
+
|
25
|
+
it "make sure there is a leading slash in path" do
|
26
|
+
Utils.ensure_leading_slash("path/to/file/wow").must_equal "/path/to/file/wow"
|
27
|
+
Utils.ensure_leading_slash("/no/place/wow/").must_equal "/no/place/wow/"
|
28
|
+
Utils.ensure_leading_slash("/no").must_equal "/no"
|
29
|
+
Utils.ensure_leading_slash("no").must_equal "/no"
|
30
|
+
end
|
31
|
+
|
32
|
+
it "make sure there is never a leading slash in path" do
|
33
|
+
Utils.remove_leading_slash("path/to/file/wow").must_equal "path/to/file/wow"
|
34
|
+
Utils.remove_leading_slash("/no/place/wow/").must_equal "no/place/wow/"
|
35
|
+
Utils.remove_leading_slash("/no").must_equal "no"
|
36
|
+
Utils.remove_leading_slash("no").must_equal "no"
|
37
|
+
end
|
38
|
+
|
39
|
+
it "paginate must return nil if cur_page_nr is nill" do
|
40
|
+
Utils.paginate_path(nil, nil, nil, nil).must_be_nil
|
41
|
+
Utils.paginate_path("/index/moore","/index/moore.md", nil, "/page:num/").must_be_nil
|
42
|
+
end
|
43
|
+
|
44
|
+
it "paginate must return the url to the template if cur_page_nr is equal to 1" do
|
45
|
+
Utils.paginate_path("/index/moore", "/index/moore.md", 1, "/page:num/").must_equal "/index/moore"
|
46
|
+
Utils.paginate_path("/index.html", "/index.html", 1, "/page/").must_equal "/index.html"
|
47
|
+
end
|
48
|
+
|
49
|
+
it "paginate must throw an error if the permalink path doesn't include :num" do
|
50
|
+
err = ->{ Utils.paginate_path("/index.html", "/index.html", 3, "/page/")}.must_raise ArgumentError
|
51
|
+
err.message.must_include ":num"
|
52
|
+
end
|
53
|
+
|
54
|
+
it "paginate must use the permalink value and format it based on the cur_page_nr" do
|
55
|
+
Utils.paginate_path("/index.html", "/index.html", 3, "/page:num/").must_equal "/page3/"
|
56
|
+
Utils.paginate_path("/index.html", "/index.html", 646, "/page/:num/").must_equal "/page/646/"
|
57
|
+
end
|
58
|
+
|
59
|
+
it "paginate must ensure a leading slash in the url it returns" do
|
60
|
+
Utils.paginate_path("/index.html", "/index.html", 3, "page:num/").must_equal "/page3/"
|
61
|
+
Utils.paginate_path("/index.html", "/index.html", 646, "page/:num/").must_equal "/page/646/"
|
62
|
+
end
|
63
|
+
|
64
|
+
it "paginate must pre-pend the template.path url to it if we're not at root" do
|
65
|
+
Utils.paginate_path("/sub/index.html", "/sub/index.html", 3, "page:num/").must_equal "/sub/index/page3/"
|
66
|
+
Utils.paginate_path("/sub/index", "/sub/index.html", 3, "page:num/").must_equal "/sub/index/page3/"
|
67
|
+
Utils.paginate_path("/index/", "/sub/index.html", 3, "page:num/").must_equal "/index/page3/"
|
68
|
+
end
|
69
|
+
|
70
|
+
it "sort must sort strings lowercase" do
|
71
|
+
Utils.sort_values( "AARON", "Aaron").must_equal 0
|
72
|
+
Utils.sort_values( "AARON", "aaron").must_equal 0
|
73
|
+
Utils.sort_values( "aaron", "AARON").must_equal 0
|
74
|
+
end
|
75
|
+
|
76
|
+
it "when sorting by nested post data the values must be resolved fully" do
|
77
|
+
data = {'book'=>{ 'name' => { 'first'=> 'John', 'last'=> 'Smith'}, 'rank'=>20}}
|
78
|
+
Utils.sort_get_post_data(data, "book:rank").must_equal 20
|
79
|
+
Utils.sort_get_post_data(data, "book:name:first").must_equal "John"
|
80
|
+
Utils.sort_get_post_data(data, "book:name:last").must_equal "Smith"
|
81
|
+
|
82
|
+
Utils.sort_get_post_data(data, "book:name").must_be_nil
|
83
|
+
Utils.sort_get_post_data(data, "name").must_be_nil
|
84
|
+
Utils.sort_get_post_data(data, "book").must_be_nil
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
data/spec/spec_helper.rb
CHANGED
@@ -3,33 +3,11 @@ require 'minitest/autorun'
|
|
3
3
|
|
4
4
|
require 'jekyll'
|
5
5
|
require_relative '../lib/jekyll-paginate-v2/version'
|
6
|
-
require_relative '../lib/jekyll-paginate-v2/defaults'
|
7
|
-
require_relative '../lib/jekyll-paginate-v2/utils'
|
8
|
-
require_relative '../lib/jekyll-paginate-v2/compatibilityUtils'
|
9
|
-
require_relative '../lib/jekyll-paginate-v2/
|
10
|
-
require_relative '../lib/jekyll-paginate-v2/
|
11
|
-
require_relative '../lib/jekyll-paginate-v2/
|
12
|
-
require_relative '../lib/jekyll-paginate-v2/
|
13
|
-
|
14
|
-
# From: http://stackoverflow.com/a/32335990/779521
|
15
|
-
module MiniTest
|
16
|
-
module Assertions
|
17
|
-
def refute_raises *exp
|
18
|
-
msg = "#{exp.pop}.\n" if String === exp.last
|
19
|
-
|
20
|
-
begin
|
21
|
-
yield
|
22
|
-
rescue MiniTest::Skip => e
|
23
|
-
return e if exp.include? MiniTest::Skip
|
24
|
-
raise e
|
25
|
-
rescue Exception => e
|
26
|
-
exp = exp.first if exp.size == 1
|
27
|
-
flunk "unexpected exception raised: #{e}"
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
end
|
32
|
-
module Expectations
|
33
|
-
infect_an_assertion :refute_raises, :wont_raise
|
34
|
-
end
|
35
|
-
end
|
6
|
+
require_relative '../lib/jekyll-paginate-v2/generator/defaults'
|
7
|
+
require_relative '../lib/jekyll-paginate-v2/generator/utils'
|
8
|
+
require_relative '../lib/jekyll-paginate-v2/generator/compatibilityUtils'
|
9
|
+
require_relative '../lib/jekyll-paginate-v2/generator/paginationIndexer'
|
10
|
+
require_relative '../lib/jekyll-paginate-v2/generator/paginator'
|
11
|
+
require_relative '../lib/jekyll-paginate-v2/generator/paginationPage'
|
12
|
+
require_relative '../lib/jekyll-paginate-v2/generator/paginationModel'
|
13
|
+
require_relative '../lib/jekyll-paginate-v2/generator/paginationGenerator'
|
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.5.
|
4
|
+
version: 1.5.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: 2016-12-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -52,6 +52,26 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.4'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 5.4.3
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '5.4'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 5.4.3
|
55
75
|
description: An enhanced zero-configuration in-place replacement for the now decomissioned
|
56
76
|
built-in jekyll-paginate gem. This pagination gem offers full backwards compatability
|
57
77
|
as well as a slew of new frequently requested features with minimal additional site
|
@@ -62,97 +82,30 @@ executables: []
|
|
62
82
|
extensions: []
|
63
83
|
extra_rdoc_files: []
|
64
84
|
files:
|
65
|
-
- ".gitignore"
|
66
85
|
- CODE_OF_CONDUCT.md
|
67
86
|
- Gemfile
|
68
87
|
- LICENSE
|
69
88
|
- README.md
|
70
89
|
- Rakefile
|
71
|
-
- examples/01-typicalblog/Gemfile
|
72
|
-
- examples/01-typicalblog/README.md
|
73
|
-
- examples/01-typicalblog/_config.yml
|
74
|
-
- examples/01-typicalblog/_includes/header.html
|
75
|
-
- examples/01-typicalblog/_layouts/home.html
|
76
|
-
- examples/01-typicalblog/_posts/2016-11-20-geography-of-minneapolis.md
|
77
|
-
- examples/01-typicalblog/_posts/2016-11-21-sailing-summer-olympics-1988.md
|
78
|
-
- examples/01-typicalblog/_posts/2016-11-22-rotary-engine.md
|
79
|
-
- examples/01-typicalblog/_posts/2016-11-23-luft-fahrzeug-gesellschaft.md
|
80
|
-
- examples/01-typicalblog/_posts/2016-11-24-narcisse-snake-pits.md
|
81
|
-
- examples/01-typicalblog/_posts/2016-11-25-tele7jours.md
|
82
|
-
- examples/01-typicalblog/_posts/2016-11-26-columbia-river.md
|
83
|
-
- examples/01-typicalblog/_posts/2016-11-27-welcome-to-jekyll-paginate-v2.md
|
84
|
-
- examples/01-typicalblog/about.md
|
85
|
-
- examples/01-typicalblog/index.html
|
86
|
-
- examples/02-category/Gemfile
|
87
|
-
- examples/02-category/README.md
|
88
|
-
- examples/02-category/_config.yml
|
89
|
-
- examples/02-category/_includes/header.html
|
90
|
-
- examples/02-category/_layouts/home.html
|
91
|
-
- examples/02-category/_posts/2016-10-27-welcome-to-jekyll-paginate-v2.md
|
92
|
-
- examples/02-category/about.md
|
93
|
-
- examples/02-category/cars/_posts/2016-10-18-Porsche-918-Spyder.md
|
94
|
-
- examples/02-category/cars/_posts/2016-10-19-Porsche-964.md
|
95
|
-
- examples/02-category/cars/_posts/2016-10-20-porsche-911-gt3.md
|
96
|
-
- examples/02-category/cars/_posts/2016-10-21-porsche-911.md
|
97
|
-
- examples/02-category/cars/_posts/2016-10-22-porsche-962.md
|
98
|
-
- examples/02-category/cars/_posts/2016-10-23-Toyota-GT-One.md
|
99
|
-
- examples/02-category/cars/_posts/2016-10-24-Mercedes-Benz-CLK-GTR.md
|
100
|
-
- examples/02-category/cars/_posts/2016-10-25-rolls-royce-silver-ghost.md
|
101
|
-
- examples/02-category/categories/byname.md
|
102
|
-
- examples/02-category/categories/porsche.md
|
103
|
-
- examples/02-category/index.md
|
104
|
-
- examples/02-category/toyota/index.md
|
105
|
-
- examples/03-tags/Gemfile
|
106
|
-
- examples/03-tags/README.md
|
107
|
-
- examples/03-tags/_biography/all/born-to-run.md
|
108
|
-
- examples/03-tags/_biography/all/forty-autumns.md
|
109
|
-
- examples/03-tags/_biography/all/life-in-questions-a.md
|
110
|
-
- examples/03-tags/_biography/all/not-dead-yet.md
|
111
|
-
- examples/03-tags/_biography/all/princess-diarist-the.md
|
112
|
-
- examples/03-tags/_biography/all/when-breath-becomes-air.md
|
113
|
-
- examples/03-tags/_biography/biography-musicians.md
|
114
|
-
- examples/03-tags/_biography/index.md
|
115
|
-
- examples/03-tags/_config.yml
|
116
|
-
- examples/03-tags/_fantasy/all/harry-potter-deathly-hallows.md
|
117
|
-
- examples/03-tags/_fantasy/all/harry-potter-philosophers-stone.md
|
118
|
-
- examples/03-tags/_fantasy/all/mistborn-trilogy.md
|
119
|
-
- examples/03-tags/_fantasy/all/ready-player-one.md
|
120
|
-
- examples/03-tags/_fantasy/all/sword-of-destiny.md
|
121
|
-
- examples/03-tags/_fantasy/all/terry-pratchet-diary-2017.md
|
122
|
-
- examples/03-tags/_includes/header.html
|
123
|
-
- examples/03-tags/_layouts/home.html
|
124
|
-
- examples/03-tags/_layouts/post.html
|
125
|
-
- examples/03-tags/_romance/all/breath-of-snow-and-ashes-a.md
|
126
|
-
- examples/03-tags/_romance/all/dressmaker-the.md
|
127
|
-
- examples/03-tags/_romance/all/fiery-cross-the.md
|
128
|
-
- examples/03-tags/_romance/all/it-ends-with-us.md
|
129
|
-
- examples/03-tags/_romance/all/outlander-novel.md
|
130
|
-
- examples/03-tags/_romance/all/virgins-outlander-short-story.md
|
131
|
-
- examples/03-tags/_romance/romance-historical.md
|
132
|
-
- examples/03-tags/blog/_posts/2016-09-30-welcome-to-jekyll-paginate-v2.md
|
133
|
-
- examples/03-tags/byisbn.md
|
134
|
-
- examples/03-tags/index.md
|
135
|
-
- examples/03-tags/tags/contemporary.md
|
136
|
-
- examples/03-tags/tags/fantasy.md
|
137
|
-
- examples/03-tags/tags/sci-fi.md
|
138
|
-
- examples/README.md
|
139
|
-
- examples/img/01-example-screenshot-main.png
|
140
|
-
- examples/img/02-example-screenshot-main.png
|
141
|
-
- examples/img/03-example-screenshot-main.png
|
142
90
|
- jekyll-paginate-v2.gemspec
|
143
91
|
- lib/jekyll-paginate-v2.rb
|
144
|
-
- lib/jekyll-paginate-v2/
|
145
|
-
- lib/jekyll-paginate-v2/defaults.rb
|
146
|
-
- lib/jekyll-paginate-v2/
|
147
|
-
- lib/jekyll-paginate-v2/
|
148
|
-
- lib/jekyll-paginate-v2/
|
149
|
-
- lib/jekyll-paginate-v2/
|
150
|
-
- lib/jekyll-paginate-v2/
|
92
|
+
- lib/jekyll-paginate-v2/autopages/autoTagPages.rb
|
93
|
+
- lib/jekyll-paginate-v2/autopages/defaults.rb
|
94
|
+
- lib/jekyll-paginate-v2/autopages/utils.rb
|
95
|
+
- lib/jekyll-paginate-v2/generator/compatibilityUtils.rb
|
96
|
+
- lib/jekyll-paginate-v2/generator/defaults.rb
|
97
|
+
- lib/jekyll-paginate-v2/generator/paginationGenerator.rb
|
98
|
+
- lib/jekyll-paginate-v2/generator/paginationIndexer.rb
|
99
|
+
- lib/jekyll-paginate-v2/generator/paginationModel.rb
|
100
|
+
- lib/jekyll-paginate-v2/generator/paginationPage.rb
|
101
|
+
- lib/jekyll-paginate-v2/generator/paginator.rb
|
102
|
+
- lib/jekyll-paginate-v2/generator/utils.rb
|
151
103
|
- lib/jekyll-paginate-v2/version.rb
|
152
|
-
- spec/defaults_spec.rb
|
153
|
-
- spec/
|
104
|
+
- spec/generator/defaults_spec.rb
|
105
|
+
- spec/generator/paginationPage_spec.rb
|
106
|
+
- spec/generator/paginator_spec.rb
|
107
|
+
- spec/generator/utils_spec.rb
|
154
108
|
- spec/spec_helper.rb
|
155
|
-
- spec/utils_spec.rb
|
156
109
|
homepage: https://github.com/sverrirs/jekyll-paginate-v2
|
157
110
|
licenses:
|
158
111
|
- MIT
|
@@ -178,7 +131,8 @@ signing_key:
|
|
178
131
|
specification_version: 4
|
179
132
|
summary: Pagination Generator for Jekyll 3
|
180
133
|
test_files:
|
181
|
-
- spec/defaults_spec.rb
|
182
|
-
- spec/
|
134
|
+
- spec/generator/defaults_spec.rb
|
135
|
+
- spec/generator/paginationPage_spec.rb
|
136
|
+
- spec/generator/paginator_spec.rb
|
137
|
+
- spec/generator/utils_spec.rb
|
183
138
|
- spec/spec_helper.rb
|
184
|
-
- spec/utils_spec.rb
|
@@ -1,28 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
ruby RUBY_VERSION
|
3
|
-
|
4
|
-
# Hello! This is where you manage which Jekyll version is used to run.
|
5
|
-
# When you want to use a different version, change it below, save the
|
6
|
-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
7
|
-
#
|
8
|
-
# bundle exec jekyll serve
|
9
|
-
#
|
10
|
-
# This will help ensure the proper Jekyll version is running.
|
11
|
-
# Happy Jekylling!
|
12
|
-
gem "jekyll", "3.3.0"
|
13
|
-
|
14
|
-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
15
|
-
gem "minima", "~> 2.0"
|
16
|
-
|
17
|
-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
18
|
-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
19
|
-
# gem "github-pages", group: :jekyll_plugins
|
20
|
-
|
21
|
-
source 'https://rubygems.org'
|
22
|
-
|
23
|
-
group :jekyll_plugins do
|
24
|
-
gem "jekyll-paginate-v2"
|
25
|
-
gem "jekyll-feed"
|
26
|
-
end
|
27
|
-
|
28
|
-
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
|