j1-paginator 2022.1.0 → 2024.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fb897a423b3827ba9d5142300365e421f68746e9b190d8e85324bc60b718c56
|
4
|
+
data.tar.gz: bb8b2e3664d83445e73b42e1796adee54351c5f468c93c4460cf168b9549c47d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70b6c7bf2dca2fb400e7ab9e45e167133370640b9a9e9cc16fdc35fdc11b731921f1a4b3fe76bd7d1254c416dc42c73ae7d22b261d0d9b77b955d31cd86fa68e
|
7
|
+
data.tar.gz: 2be0679d7d4c1099007e365269be49fee186ce01412a7afdc3e7af8ef31b519a1cc0c3a4d211d707682d0c3ef11072d61b7a38bfd30165d027cb6dae5c1cad2b
|
@@ -56,7 +56,7 @@ module Jekyll
|
|
56
56
|
createcatpage_lambda = lambda do | autopage_cat_config, pagination_config, layout_name, category, category_original_name |
|
57
57
|
site.pages << CategoryAutoPage.new(site, site.dest, autopage_cat_config, pagination_config, layout_name, category, category_original_name)
|
58
58
|
end
|
59
|
-
autopage_create(autopage_config, pagination_config,posts_to_use, 'categories', 'categories', createcatpage_lambda) # Call the actual function
|
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
|
@@ -7,8 +7,8 @@ module Jekyll
|
|
7
7
|
# Do we have a slugify configuration available
|
8
8
|
slugify_config = autopage_config.is_a?(Hash) && autopage_config.has_key?('slugify') ? autopage_config['slugify'] : nil
|
9
9
|
|
10
|
-
#
|
11
|
-
# this function
|
10
|
+
# Construct the lambda function to set the config values
|
11
|
+
# this function receives the pagination config hash and manipulates it
|
12
12
|
set_autopage_data_lambda = lambda do | in_config |
|
13
13
|
in_config['category'] = category
|
14
14
|
in_config['collection'] = site.collections.keys
|
@@ -21,10 +21,10 @@ module Jekyll
|
|
21
21
|
get_autopage_title_lambda = lambda do |title_pattern|
|
22
22
|
return Utils.format_cat_macro(title_pattern, category, slugify_config)
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
# Call the super constuctor with our custom lambda
|
26
26
|
super(site, base, autopage_config, pagination_config, layout_name, set_autopage_data_lambda, get_autopage_permalink_lambda, get_autopage_title_lambda, category_name)
|
27
|
-
|
27
|
+
|
28
28
|
end #function initialize
|
29
29
|
|
30
30
|
end #class CategoryAutoPage
|
@@ -128,7 +128,7 @@ module Jekyll
|
|
128
128
|
# proc and site data
|
129
129
|
model = PaginationModel.new(logging_lambda, page_add_lambda, page_remove_lambda, collection_by_name_lambda)
|
130
130
|
count = model.run(default_config, all_pages, site_title)
|
131
|
-
Jekyll.logger.info "J1 Paginator:", "generate paginator pages: #{count}
|
131
|
+
Jekyll.logger.info "J1 Paginator:", "generate paginator pages: #{count} templates|s used"
|
132
132
|
# Jekyll.logger.info "J1 Paginator:", "generate paginator pages: finished"
|
133
133
|
|
134
134
|
end # function generate
|
data/lib/j1-paginator/version.rb
CHANGED
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:
|
4
|
+
version: 2024.1.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:
|
11
|
+
date: 2024-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.3.
|
135
|
+
rubygems_version: 3.3.26
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Pagination Generator for Jekyll 3
|