{ "time": {{ site.time | date_to_xmlschema | cc_jsonify }}, "version": {{ version | cc_jsonify }}, "cloudcannon": { "name": "cloudcannon-jekyll", "version": {{ gem_version | cc_jsonify }} }, "generator": { "name": "jekyll", "version": {{ jekyll.version | cc_jsonify }}, "environment": {{ jekyll.env | cc_jsonify }}, "metadata": { "markdown": {{ site.markdown | cc_jsonify }}, "kramdown": {{ site.kramdown | cc_jsonify }}, "commonmark": {{ site.commonmark | cc_jsonify }} } }, {% if config.timezone -%} "timezone": {{ config.timezone | cc_jsonify }}, {%- endif %} "collections-config": {{ collections_config | cc_jsonify }}, "collections": { {%- for collection in collections -%} "{{ collection[0] | xml_escape }}": {{ collection[1] | cc_jsonify }} {%- unless forloop.last %},{% endunless %} {%- endfor -%} }, "data": {{ data | cc_jsonify }}, {% if config.baseurl -%} "base-url": {{ config.baseurl | cc_jsonify }}, {%- endif %} {% if config._comments -%} "_comments": {{ config._comments | cc_jsonify }}, {%- endif %} {% if config._enabled_editors -%} "_enabled_editors": {{ config._enabled_editors | cc_jsonify }}, {%- endif %} {% if config._instance_values -%} "_instance_values": {{ config._instance_values | cc_jsonify }}, {%- endif %} {% if config._options -%} "_options": {{ config._options | cc_jsonify }}, {%- endif %} {% if config._inputs -%} "_inputs": {{ config._inputs | cc_jsonify }}, {%- endif %} {% if config._collection_groups -%} "_collection_groups": {{ config._collection_groups | cc_jsonify }}, {%- endif %} {% if config._editor -%} "_editor": { "default_path": {{ config._editor.default_path | cc_jsonify }} }, {%- endif %} {% if config._source_editor -%} "_source_editor": { "tab_size": {{ config._source_editor.tab_size | cc_jsonify }}, "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 }}, "collections": {{ config.collections_dir | cc_jsonify }}, "layouts": {{ config.layouts_dir | cc_jsonify }} }, {% if config._structures -%} "_structures": {{ config._structures | cc_jsonify: 50 }}, {%- endif %} {% if config._array_structures -%} "_array_structures": {{ config._array_structures | cc_jsonify: 50 }}, {%- endif %} {% assign select_data = config | cc_select_data_jsonify -%} {% if select_data -%} "_select_data": {{ select_data }}, {%- endif %} {% if config.defaults -%} "defaults": {{ config.defaults | cc_jsonify }}, {%- endif %} "source": {{ config.source | replace: pwd, "" | cc_jsonify }} }