bridgetown-paginate 0.21.3 → 0.21.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-paginate/pagination_model.rb +7 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b71e882e5543a240bc6a6f628ad81c4d93fd09f4df967a2add259a9b18fc6fae
|
4
|
+
data.tar.gz: e5ccdab51aa1c522d611f934f8cbd1d031424a1e553c11b2b943dcede0a8aa6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a73d861b11556dca0a1018759ae80034b70c64a3b4efcf3c76cbaf6ba64a6caed19c34d434eb8889b1f8fd0152c4012a0b2add70581e66204fa7d83c9f2609
|
7
|
+
data.tar.gz: b7ea940094a639ca9ac7aa669e049aa625fc19d7c1e335d3f5bdb7fff5b0debb82687e8732fa33613007eb89975820bfc9c6a9bb473db6d217ac7433d03eb2d4
|
@@ -50,13 +50,18 @@ module Bridgetown
|
|
50
50
|
template_config = Bridgetown::Utils.deep_merge_hashes(
|
51
51
|
default_config,
|
52
52
|
template.data["pagination"] || template.data["paginate"] || {}
|
53
|
-
)
|
53
|
+
).tap do |config|
|
54
|
+
config["collection"] = config["collection"].to_s if config["collection"].is_a?(Symbol)
|
55
|
+
config["category"] = config["category"].to_s if config["category"].is_a?(Symbol)
|
56
|
+
config["tag"] = config["tag"].to_s if config["tag"].is_a?(Symbol)
|
57
|
+
config["locale"] = config["locale"].to_s if config["locale"].is_a?(Symbol)
|
58
|
+
end
|
54
59
|
|
55
60
|
# Is debugging enabled on the page level
|
56
61
|
@debug = template_config["debug"]
|
57
62
|
_debug_print_config_info(template_config, template.path)
|
58
63
|
|
59
|
-
next
|
64
|
+
next unless template_config["enabled"]
|
60
65
|
|
61
66
|
@logging_lambda.call "found page: " + template.path, "debug" unless @debug
|
62
67
|
|
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: 0.21.
|
4
|
+
version: 0.21.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-10 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: 0.21.
|
19
|
+
version: 0.21.4
|
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: 0.21.
|
26
|
+
version: 0.21.4
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|