Skip to content

Commit 7d65eab

Browse files
committed
Fixed json parse issue on search.
1 parent 68fe90c commit 7d65eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/data/search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ layout: compress
1010
"categories": "{{ post.categories | join: ', '}}",
1111
"tags": "{{ post.tags | join: ', ' }}",
1212
"date": "{{ post.date }}",
13-
"snippet": "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 }}"
13+
"snippet": "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
1414
}{% unless forloop.last %},{% endunless %}
1515
{% endfor %}
1616
]

0 commit comments

Comments
 (0)