bridgetown-paginate 1.1.0.beta1 → 1.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: aebf2bf904b652a9a051b42a53e9e1676b5d6be12797012615a0b8f3a43a2c8a
|
4
|
+
data.tar.gz: 83dfe8146b54dd2f55d0b844e15f2ac79b4ba9881b128fcae9cae4c04da414a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 194c5a968d2d73a546aca9ea1359855b36949ac6468c06f242d735b66371b8f5096600d7b55704db0eae160eda9841a75a60e1439024be51c3875c85ce9ff82e
|
7
|
+
data.tar.gz: 227836d645db15ab22977e600c05f6a7242de71d3e31e6c488c7f34a23c3e6f3a00cd4f4630c44b97c4024c96ad7defc7df7c3e224cec87008d335133f0692c6
|
@@ -35,8 +35,8 @@ module Bridgetown
|
|
35
35
|
|
36
36
|
# If disabled then simply quit
|
37
37
|
unless default_config["enabled"]
|
38
|
-
Bridgetown.logger.info "Pagination:", "disabled. Enable in site config" \
|
39
|
-
"
|
38
|
+
Bridgetown.logger.info "Pagination:", "disabled. Enable in site config " \
|
39
|
+
"with pagination:\\n enabled: true"
|
40
40
|
return
|
41
41
|
end
|
42
42
|
|
@@ -33,8 +33,8 @@ module Bridgetown
|
|
33
33
|
def run(default_config, templates, site_title) # rubocop:todo Metrics/AbcSize
|
34
34
|
if templates.size.to_i <= 0
|
35
35
|
@logging_lambda.call(
|
36
|
-
"is enabled in the config, but no paginated pages found." \
|
37
|
-
"
|
36
|
+
"is enabled in the config, but no paginated pages found. " \
|
37
|
+
"Add 'pagination:\\n collection: <label>' to the front-matter of a page.",
|
38
38
|
"warn"
|
39
39
|
)
|
40
40
|
return
|
@@ -28,8 +28,8 @@ module Bridgetown
|
|
28
28
|
@total_pages = num_pages
|
29
29
|
|
30
30
|
if @page > @total_pages
|
31
|
-
raise "page number can't be greater than total pages:" \
|
32
|
-
"
|
31
|
+
raise "page number can't be greater than total pages: " \
|
32
|
+
"#{@page} > #{@total_pages}"
|
33
33
|
end
|
34
34
|
|
35
35
|
init = (@page - 1) * @per_page
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.0
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1.0
|
26
|
+
version: 1.1.0
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|
@@ -57,9 +57,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: '0'
|
63
63
|
requirements: []
|
64
64
|
rubygems_version: 3.1.4
|
65
65
|
signing_key:
|