cloudcannon-jekyll 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a4bc2bc3d05fc9fa0fae42498d1419e332f52d415a47d513dbe112b65bd9e25
4
- data.tar.gz: a0cbd75b37cd9051aed53da9a7879e9c02fd4e8434874c7a0e805020ee171cb7
3
+ metadata.gz: 7c8ffa6f24f23d77d8891582ae787a2a26b90d94bdfe8e6f31aaa7b9068fd10e
4
+ data.tar.gz: b755136ed83f7f0facd35518fed62ea442a05b60b09241aeb385e7bdf1a665fe
5
5
  SHA512:
6
- metadata.gz: 7e0f88cd7b148057b18606a5260057a22921eaff6c91b98e2265f10622d4f4bddf147bbcd0ce60b895a1e99e4bbc3ac7176972eb24d7d63bec84255fd40a6611
7
- data.tar.gz: '09b0138d86c2f33626cd536f4cf30734044bd92d42f70e23e0c133efe7aa3cae43c6ee247e96fe9a7aff1fae510a8f6e553b65a896cefe2b59549966852526c9'
6
+ metadata.gz: 9cf5db9ce6a3ba4c20a9a44d6c3a3ef86cc848d1020d375f7e080aa157674ed87d8c457c2319fada463f444846c85313b3185b2a2c87ec42b216e9f7b0674eae
7
+ data.tar.gz: 150d2008c0792bd230d33a5aa9b8e1b518b18f8ae93c87f1490ff8704d1c3b0dd22c414ae03199f7b3e1d5ccfdee22dd852970eb5f6905f038da8b8ecf86614b
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.3
2
+
3
+ * Fix invalid JSON issue for sites built with Jekyll 2 and no collections
4
+
1
5
  # 1.0.2
2
6
 
3
7
  * Change module load style for easier dropping into _plugins
@@ -16,7 +16,7 @@
16
16
  },{% if site.cloudcannon.data %}
17
17
  "data": {{ site.data | cc_safe_jsonify }},{% endif %}
18
18
  "collections": {
19
- "posts": {{ site.posts | reverse | cc_safe_jsonify }},
19
+ "posts": {{ site.posts | reverse | cc_safe_jsonify }}{% if site.collections.size > 0 %},{% endif %}
20
20
  {% for collection in site.collections %}"{{ collection[0] | xml_escape }}": {{ collection[1].docs | cc_safe_jsonify }}{% unless forloop.last %},{% endunless %}
21
21
  {% endfor %}
22
22
  },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudcannon-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-15 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll