bridgetown-paginate 1.0.0 → 1.1.0.beta1
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: d8d7266c5e0dc1ca064eb708a40837bdc7d2b3ae8110271578e94f47a686f7f4
|
4
|
+
data.tar.gz: 4a83ea0e7bd905b8dfeaa04275bf0fda96a8fd01ca8b9e4f0cad9af56980a32e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f7a48a98d34b3f12e45256268186c36199eabaa29ea771a23201d4423d8caf73d85043140c86ded5ad3f33120f5d057842aefe7ef4841710b3c0ccde92e3f04
|
7
|
+
data.tar.gz: 785620faeb604237353ab31793a7dac6c645fad9c9897a43d5cfdb5b50f5bb291342a4f38d94c227deb055a735f4c2900c6f712db9f45372787c0d57ef691701
|
@@ -41,7 +41,7 @@ module Bridgetown
|
|
41
41
|
document_data = document.data[index_key]
|
42
42
|
document_data = document_data.split(%r!;|,!) if document_data.is_a?(String)
|
43
43
|
|
44
|
-
document_data.each do |key|
|
44
|
+
Array(document_data).each do |key|
|
45
45
|
key = key.to_s.downcase.strip
|
46
46
|
# If the key is a delimetered list of values
|
47
47
|
# (meaning the user didn't use an array but a string with commas)
|
@@ -66,6 +66,11 @@ module Bridgetown
|
|
66
66
|
|
67
67
|
next unless template_config["enabled"]
|
68
68
|
|
69
|
+
if template.site.config.available_locales.size > 1 && !template_config["locale"]
|
70
|
+
template_config["locale"] =
|
71
|
+
template.data["locale"].to_s
|
72
|
+
end
|
73
|
+
|
69
74
|
@logging_lambda.call "found page: #{template.path}", "debug" unless @debug
|
70
75
|
|
71
76
|
# Request all documents in all collections that the user has requested
|
@@ -38,6 +38,15 @@ module Bridgetown
|
|
38
38
|
@url = url_value
|
39
39
|
end
|
40
40
|
# rubocop:enable Naming/AccessorMethodName
|
41
|
+
|
42
|
+
def destination(dest)
|
43
|
+
path = site.in_dest_dir(
|
44
|
+
dest, URL.unescape_path(url).delete_prefix(site.base_path(strip_slash_only: true))
|
45
|
+
)
|
46
|
+
path = File.join(path, "index") if url.end_with?("/")
|
47
|
+
path << output_ext unless path.end_with? output_ext
|
48
|
+
path
|
49
|
+
end
|
41
50
|
end
|
42
51
|
end
|
43
52
|
end
|
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.0.
|
4
|
+
version: 1.1.0.beta1
|
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-06-02 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.0.
|
19
|
+
version: 1.1.0.beta1
|
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.0.
|
26
|
+
version: 1.1.0.beta1
|
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: 1.3.1
|
63
63
|
requirements: []
|
64
64
|
rubygems_version: 3.1.4
|
65
65
|
signing_key:
|