lib/cloudcannon-jekyll/_cloudcannon/info.json in cloudcannon-jekyll-2.2.0 vs lib/cloudcannon-jekyll/_cloudcannon/info.json in cloudcannon-jekyll-2.3.0

- old
+ new

@@ -1,7 +1,8 @@ { "time": {{ site.time | date_to_xmlschema | cc_jsonify }}, + "version": {{ version | cc_jsonify }}, "cloudcannon": { "name": "cloudcannon-jekyll", "version": {{ gem_version | cc_jsonify }} }, "generator": { @@ -17,18 +18,15 @@ {% if config.timezone -%} "timezone": {{ config.timezone | cc_jsonify }}, {%- endif %} "collections-config": {{ collections_config | cc_jsonify }}, "collections": { - "drafts": {{ drafts | cc_jsonify }}{% if site.collections.size > 0 %},{% endif %} - {%- for collection in site.collections -%} - "{{ collection.label | xml_escape }}": {{ collection.docs | cc_jsonify }} + {%- for collection in collections -%} + "{{ collection[0] | xml_escape }}": {{ collection[1] | cc_jsonify }} {%- unless forloop.last %},{% endunless %} {%- endfor -%} }, - "pages": {{ site.html_pages | cc_jsonify }}, - "static-pages": {{ site.static_files | cc_static_files_jsonify }}, "data": {{ data | cc_jsonify }}, {% if config.baseurl -%} "base-url": {{ config.baseurl | cc_jsonify }}, {%- endif %} {% if config._comments -%} @@ -57,14 +55,13 @@ "show_gutter": {{ config._source_editor.show_gutter | cc_jsonify }}, "theme": {{ config._source_editor.theme | cc_jsonify }} }, {%- endif %} "paths": { + "static": "", "uploads": {{ config.uploads_dir | cc_jsonify }}, "data": {{ config.data_dir | cc_jsonify }}, - "pages": "", "collections": {{ config.collections_dir | cc_jsonify }}, - "includes": {{ config.includes_dir | cc_jsonify }}, "layouts": {{ config.layouts_dir | cc_jsonify }} }, {% if config._array_structures -%} "_array_structures": {{ config._array_structures | cc_jsonify: 50 }}, {%- endif %}