fix to search.json to strip out tab characters from search.son

these tab characters can make your json invalid
This commit is contained in:
Tom Johnson
2015-10-05 14:24:02 -07:00
parent 841c215855
commit 7e351a08ef
2 changed files with 5 additions and 3 deletions

View File

@ -12,7 +12,7 @@ search: exclude
"keywords": "{{page.keywords}}",
"url": "{{ page.url | replace: '/','' }}",
"summary": "{{page.summary}}",
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}"
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"'| replace: '^t', ' ' }}"
},
{% endunless %}