cloudcannon-jekyll 1.5.6 → 1.5.7

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: bb81e7f467450a9da1c39bd68adbc69514aa0f33c982b1b70c540f05fe7dda70
4
- data.tar.gz: eddc9663476a26ca3d0a503760b07760803ddcb852d7da7ae80c47be0d10ca8e
3
+ metadata.gz: 3054f2fad52e25c68f74efaea8d7adaf4186eb3c553a1e4f0a8b0d8b7502a5dd
4
+ data.tar.gz: e4826cd5492f8081a32d6886b4d039ca65f464c8833d8653716a715c07112fcd
5
5
  SHA512:
6
- metadata.gz: ec82c0e7f08018be8b5007911d1286301bdf6300f468e0c86afe3e622823bd0f3611348f8f69e6ab7124d260e89edcce5f44e107ccdbb51d956cc01a959b8db1
7
- data.tar.gz: 7196b603e2a82dd61021a927903d3ff2a21506f107e15adf3e16c2986f0a997f42d644d43bb9cf2b357aa653cb02677b1d93ccda2998a5e1a9be4a8761c3570f
6
+ metadata.gz: a73fd3d4cf8f9a244ac744d05dabc6361972d9fbe669dfcfe13f651bfc1d6e71c6b5e5c1c7b172f46158fb9983df788d796dbe6da32fdb2d9a7ca440907f00fa
7
+ data.tar.gz: 2bfb1f2757052b0c30b2052765bd3ecedc7c1d8d5ee9c7eceeccad9a358facce4f1376b0a710aa07bc4d9dbe2968131149a11cd597f14351ccab087b12772261
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.5.7
2
+
3
+ * Fix pages collection clash with built-in pages
4
+ * Fixed posts collection config data overwriting drafts data
5
+
1
6
  # 1.5.6
2
7
 
3
8
  * Force generator to run after other lowest priority plugins
@@ -23,6 +23,6 @@
23
23
  {% for collection in site.collections %}"{{ collection[0] | xml_escape }}": {{ collection[1].docs | cc_jsonify }}{% unless forloop.last %},{% endunless %}
24
24
  {% endfor %}
25
25
  },
26
- "pages": {{ site.pages | cc_jsonify }},
26
+ "pages": {{ site.html_pages | cc_jsonify }},
27
27
  "static-pages": {{ site.static_files | cc_static_files_jsonify }}
28
28
  }
@@ -22,6 +22,6 @@
22
22
  {% for collection in site.collections %}"{{ collection.label | xml_escape }}": {{ collection.docs | cc_jsonify }}{% unless forloop.last %},{% endunless %}
23
23
  {% endfor %}
24
24
  },
25
- "pages": {{ site.pages | cc_jsonify }},
25
+ "pages": {{ site.html_pages | cc_jsonify }},
26
26
  "static-pages": {{ site.static_files | cc_static_files_jsonify }}
27
27
  }
@@ -36,6 +36,6 @@
36
36
  {%- unless forloop.last %},{% endunless %}
37
37
  {%- endfor -%}
38
38
  },
39
- "pages": {{ site.pages | cc_jsonify }},
39
+ "pages": {{ site.html_pages | cc_jsonify }},
40
40
  "static-pages": {{ site.static_files | cc_static_files_jsonify }}
41
41
  }
@@ -99,9 +99,7 @@ module CloudCannonJekyll
99
99
  collections_config["posts"] = { "output" => true } if Jekyll::VERSION.start_with? "2."
100
100
  drafts = @reader.read_drafts(collections_dir)
101
101
 
102
- if collections_config.key?("posts")
103
- collections_config["drafts"] = collections_config["posts"]&.dup || {}
104
- elsif drafts.any?
102
+ if (collections_config.key?("posts") && !collections_config.key?("drafts")) || drafts.any?
105
103
  collections_config["drafts"] = {}
106
104
  end
107
105
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "1.5.6"
4
+ VERSION = "1.5.7"
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.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-26 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll