bridgetown-paginate 1.1.0.beta2 → 1.1.0.beta3
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: 3cec767f60158855c156cabd8c95add74230811265af4f01653b3400f60c5d5a
|
4
|
+
data.tar.gz: eb5c56adfa80a672dd6e1faa7fac505c87d18d5d589e27e120e704e9d9c15e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf1da239c4eed043279d46e936c9be96f8dc9d998a8fffea6a50b08440d0dbae2a5160d7e9f3c3b6b50d08f1c6acbf7f3d2da1f48d2efe1c545e119f0739531
|
7
|
+
data.tar.gz: 5caccdd573200bad1e96aae7639823415d97ef4db07acd5bfd8e993485b2cc190b53259c50ade8112bc28afdea75b10d85944da75b86c741dfe80ccfb97624b1
|
@@ -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.beta3
|
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-06-
|
11
|
+
date: 2022-06-28 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.beta3
|
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.beta3
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|