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:
@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user