[

{% if site.theme_settings.special_page.search.enabled %}
 {% for post in site.posts %}
    {
      "title"    : "{{ post.title | escape }}",
      "category" : "{{ post.category }}",
      "tags"     : "{{ post.tags | join: ', ' | prepend: " " }}",
      "url"      : "{{ site.baseurl }}{{ post.url }}",
      "date"     : "{{ post.date | date: "%B %-d, %Y" }}",
      "excerpt"  : {{ post.content | truncate: '250' | jsonify }},
      "content"  : {{ post.content | jsonify }}
    } {% unless forloop.last %},{% endunless %}
 {% endfor %}{% if site.portfolio.size > 0 %},{% endif %}
 {% for page in site.portfolio %}
   {
     {% if page.title != nil %}
        "title"    : "{{ page.title | escape }}",
        "category" : "{{ page.category }}",
        "tags"     : "{{ page.tags | join: ', ' | prepend: " " }}",
        "url"      : "{{ site.baseurl }}{{ page.url }}",
        "date"     : "{{ page.date | date: "%B %-d, %Y" }}",
        "excerpt"  : {{ post.content | truncate: '250' | jsonify }},
        "content"  : {{ post.content | truncate: '250' | jsonify }}
     {% endif %}
   } {% unless forloop.last %},{% endunless %}
 {% endfor %}
{% endif %}

]