diff --git a/assets/js/data/search.json b/assets/js/data/search.json index 1c35ec1..a12472c 100644 --- a/assets/js/data/search.json +++ b/assets/js/data/search.json @@ -1,18 +1,14 @@ --- -layout: compress -swcache: true +layout: none --- - [ {% for post in site.posts %} - { - "title": {{ post.title | jsonify }}, - "url": {{ post.url | relative_url | jsonify }}, - "categories": {{ post.categories | join: ', ' | jsonify }}, - "tags": {{ post.tags | join: ', ' | jsonify }}, - "date": {{ post.date | jsonify }}, - {% capture content -%}{% include post-summary.html full_text=true %}{%- endcapture -%} - "content": {{ content | jsonify }} - }{% unless forloop.last %},{% endunless %} + { + "title" : "{{ post.title | escape }}", + "categories" : "{{ post.categories }}", + "tags" : "{{ post.tags | join: ', ' }}", + "url" : "{{ site.baseurl }}{{ post.url }}", + "date" : "{{ post.date }}" + } {% unless forloop.last %},{% endunless %} {% endfor %} ]