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

- old
+ new

@@ -25,24 +25,10 @@ {%- unless forloop.last %},{% endunless %} {%- endfor -%} }, "pages": {{ site.html_pages | cc_jsonify }}, "static-pages": {{ site.static_files | cc_static_files_jsonify }}, - {% if site.cloudcannon.data.first -%} - "data": { - {%- assign data_seen = false %} - {%- for data in site.data %} - {%- assign key = data[0] %} - {%- if site.cloudcannon.data[key] %} - {%- if data_seen %},{% endif -%} - {{ data[0] | cc_jsonify }}: {{ data[1] | cc_jsonify }} - {%- assign data_seen = true %} - {%- endif %} - {%- endfor -%} - }, - {% elsif site.cloudcannon.data -%} - "data": {{ site.data | cc_jsonify }}, - {%- endif %} + "data": {{ data | cc_jsonify }}, {% if config.baseurl -%} "base-url": {{ config.baseurl | cc_jsonify }}, {%- endif %} {% if config._comments -%} "_comments": {{ config._comments | cc_jsonify }},