j1-paginator 2021.1.0 → 2021.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf74f1bba29c33242d08fb9734ecddc619c7506473c334e0a8707c5e3682445c
|
4
|
+
data.tar.gz: f090acdcaa7691776d8b3f6b46fb579a978c5176bcc529475fda69483450d2b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d5e86ddee5e965afecf4d40821aea07f3b43f2736bb0ea8632368a0f6205a304047a858db51549aadbd6827dd93b6de0c308a05fd69d217fa4ff97c156714c
|
7
|
+
data.tar.gz: 65ed6b9de9139909302e44c0175466ae97bd8f60c3de033c5d51f6bd52b6070b5c8afc93438a53bb6104f076ddd5bfdabce7dd37bce62577d0fd0411a9bf574a
|
data/lib/j1-paginator.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
# Jekyll::Paginate V2 is a gem built for Jekyll
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
1
|
+
# Jekyll::Paginate V2 is a gem built for Jekyll 4+ that generates
|
2
|
+
# pagiatation for posts, collections, categories and tags.
|
3
|
+
#
|
4
|
+
# It is based on https://github.com/jekyll/jekyll-paginate, the original
|
5
|
+
# Jekyll paginator which was decommissioned in Jekyll 3 release onwards.
|
6
|
+
# This code is currently not officially supported on Jekyll versions >= 3.0.
|
6
7
|
#
|
7
8
|
# Author: Sverrir Sigmundarson
|
8
9
|
# Site: https://github.com/sverrirs/j1-paginator
|
@@ -28,7 +29,7 @@ require "j1-paginator/autopages/pages/categoryAutoPage"
|
|
28
29
|
require "j1-paginator/autopages/pages/collectionAutoPage"
|
29
30
|
require "j1-paginator/autopages/pages/tagAutoPage"
|
30
31
|
|
31
|
-
module Jekyll
|
32
|
+
module Jekyll
|
32
33
|
module J1Paginator
|
33
34
|
end # module J1Paginator
|
34
|
-
end # module Jekyll
|
35
|
+
end # module Jekyll
|
@@ -12,7 +12,7 @@ module Jekyll
|
|
12
12
|
pg_settings = Jekyll::Utils.deep_merge_hashes(pg_config_defaults, pg_config_settings || {})
|
13
13
|
|
14
14
|
# Get the configuration for auto pages
|
15
|
-
ap_config_defaults = pg_config_defaults['
|
15
|
+
ap_config_defaults = pg_config_defaults['defaults']['autopages']
|
16
16
|
ap_config_settings = pg_config_settings['settings']['autopages']
|
17
17
|
ap_settings = Jekyll::Utils.deep_merge_hashes(ap_config_defaults, ap_config_settings || {})
|
18
18
|
|
@@ -21,7 +21,7 @@ module Jekyll
|
|
21
21
|
|
22
22
|
|
23
23
|
# Get the configuration for the paginator
|
24
|
-
pg_config_defaults = pg_config_defaults['
|
24
|
+
pg_config_defaults = pg_config_defaults['defaults']['pagination']
|
25
25
|
pg_config_settings = pg_config_settings['settings']['pagination']
|
26
26
|
pg_settings = Jekyll::Utils.deep_merge_hashes(pg_config_defaults, pg_config_settings || {})
|
27
27
|
|
@@ -49,7 +49,7 @@ module Jekyll
|
|
49
49
|
site.pages << TagAutoPage.new(site, site.dest, autopage_tag_config, pagination_config, layout_name, tag, tag_original_name)
|
50
50
|
end
|
51
51
|
autopage_create(autopage_config, pagination_config, posts_to_use, 'tags', 'tags', createtagpage_lambda) # Call the actual function
|
52
|
-
|
52
|
+
|
53
53
|
|
54
54
|
###############################################
|
55
55
|
# Generate the category pages if enabled
|
@@ -57,14 +57,14 @@ module Jekyll
|
|
57
57
|
site.pages << CategoryAutoPage.new(site, site.dest, autopage_cat_config, pagination_config, layout_name, category, category_original_name)
|
58
58
|
end
|
59
59
|
autopage_create(autopage_config, pagination_config,posts_to_use, 'categories', 'categories', createcatpage_lambda) # Call the actual function
|
60
|
-
|
60
|
+
|
61
61
|
###############################################
|
62
62
|
# Generate the Collection pages if enabled
|
63
63
|
createcolpage_lambda = lambda do | autopage_col_config, pagination_config, layout_name, coll_name, coll_original_name |
|
64
64
|
site.pages << CollectionAutoPage.new(site, site.dest, autopage_col_config, pagination_config, layout_name, coll_name, coll_original_name)
|
65
65
|
end
|
66
66
|
autopage_create(autopage_config, pagination_config,posts_to_use, 'collections', '__coll', createcolpage_lambda) # Call the actual function
|
67
|
-
|
67
|
+
|
68
68
|
end # create_autopages
|
69
69
|
|
70
70
|
# STATIC: this function actually performs the steps to generate the autopages.
|
@@ -13,9 +13,9 @@ module Jekyll
|
|
13
13
|
'sort_reverse' => false,
|
14
14
|
'sort_field' => 'date',
|
15
15
|
'limit' => 0, # Limit how many content objects to paginate (default: 0, means all)
|
16
|
-
'trail' => {
|
17
|
-
'before'
|
18
|
-
'after'
|
16
|
+
'trail' => {
|
17
|
+
'before' => 0, # Limits how many links to show before the current page in the pagination trail (0, means off, default: 0)
|
18
|
+
'after' => 0, # Limits how many links to show after the current page in the pagination trail (0 means off, default: 0)
|
19
19
|
},
|
20
20
|
'indexpage' => 'index', # The default name of the index pages
|
21
21
|
'extension' => 'html', # The default extension for the output pages (ignored if indexpage is nil)
|
@@ -24,4 +24,4 @@ module Jekyll
|
|
24
24
|
}
|
25
25
|
|
26
26
|
end # module J1Paginator
|
27
|
-
end # module Jekyll
|
27
|
+
end # module Jekyll
|
data/lib/j1-paginator/version.rb
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
module Jekyll
|
2
2
|
module J1Paginator
|
3
|
-
VERSION =
|
4
|
-
|
5
|
-
|
6
|
-
# git push origin --tags
|
7
|
-
# Yanking a published Gem
|
8
|
-
# gem yank j1-paginator -v VERSION
|
9
|
-
end # module J1Paginator
|
10
|
-
end # module Jekyll
|
3
|
+
VERSION = '2021.1.1'
|
4
|
+
end
|
5
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: j1-paginator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2021.1.
|
4
|
+
version: 2021.1.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: 2021-
|
11
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|