cloudcannon-jekyll 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/lib/cloudcannon-jekyll/_cloudcannon/info-2.x.json +3 -0
- data/lib/cloudcannon-jekyll/_cloudcannon/info-3.0-4.x.json +3 -0
- data/lib/cloudcannon-jekyll/_cloudcannon/info.json +3 -0
- data/lib/cloudcannon-jekyll/jsonify-filter.rb +2 -2
- data/lib/cloudcannon-jekyll/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c62beece4089cf5687f4c84d38495a602f62800a19bd5e195eb0272f79724965
|
4
|
+
data.tar.gz: 34024730134cd587c13ba63e259454c9d1aedb3fd0479f8ef32a2401ddab0753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a307c7f7d9deba9f4fe4407ae982b16c6a260bda34bbe140547cfe978a5268c0016210f995a8a6cf69c0b0815b3e883b369265586af64dfc07b41daa78e0ef'
|
7
|
+
data.tar.gz: 798272f7382f5da33c7bb6c03e30733a506346bc162eb042c1ef09fc1b62ae405d8660bb10771a07377cefeda9995852295dbd0cc37066f2c83944ae4b0777f8
|
data/HISTORY.md
CHANGED
@@ -63,6 +63,9 @@
|
|
63
63
|
"collections": {{ config.collections_dir | cc_jsonify }},
|
64
64
|
"layouts": {{ config.layouts_dir | cc_jsonify }}
|
65
65
|
},
|
66
|
+
{% if config._structures %}
|
67
|
+
"_structures": {{ config._structures | cc_jsonify: 50 }},
|
68
|
+
{% endif %}
|
66
69
|
{% if config._array_structures %}
|
67
70
|
"_array_structures": {{ config._array_structures | cc_jsonify: 50 }},
|
68
71
|
{% endif %}
|
@@ -63,6 +63,9 @@
|
|
63
63
|
"collections": {{ config.collections_dir | cc_jsonify }},
|
64
64
|
"layouts": {{ config.layouts_dir | cc_jsonify }}
|
65
65
|
},
|
66
|
+
{% if config._structures %}
|
67
|
+
"_structures": {{ config._structures | cc_jsonify: 50 }},
|
68
|
+
{% endif %}
|
66
69
|
{% if config._array_structures %}
|
67
70
|
"_array_structures": {{ config._array_structures | cc_jsonify: 50 }},
|
68
71
|
{% endif %}
|
@@ -66,6 +66,9 @@
|
|
66
66
|
"collections": {{ config.collections_dir | cc_jsonify }},
|
67
67
|
"layouts": {{ config.layouts_dir | cc_jsonify }}
|
68
68
|
},
|
69
|
+
{% if config._structures -%}
|
70
|
+
"_structures": {{ config._structures | cc_jsonify: 50 }},
|
71
|
+
{%- endif %}
|
69
72
|
{% if config._array_structures -%}
|
70
73
|
"_array_structures": {{ config._array_structures | cc_jsonify: 50 }},
|
71
74
|
{%- endif %}
|
@@ -50,7 +50,7 @@ module CloudCannonJekyll
|
|
50
50
|
next if prevent.include?(key) || key.nil?
|
51
51
|
|
52
52
|
prevent.push key
|
53
|
-
next_max_depth =
|
53
|
+
next_max_depth = %w(_array_structures _structures).include?(key) ? 20 : max_depth
|
54
54
|
"#{key.to_json}: #{JsonifyFilter.to_json(value, depth, next_max_depth)}"
|
55
55
|
end
|
56
56
|
|
@@ -134,7 +134,7 @@ module CloudCannonJekyll
|
|
134
134
|
|
135
135
|
def self.hash_to_json(input, depth, max_depth)
|
136
136
|
out = input.map do |key, value|
|
137
|
-
next_max_depth =
|
137
|
+
next_max_depth = %w(_array_structures _structures).include?(key) ? 20 : max_depth
|
138
138
|
string_key = key.to_s.to_json
|
139
139
|
"#{string_key}: #{JsonifyFilter.to_json(value, depth, next_max_depth)}"
|
140
140
|
end
|