diff --git a/assets/js/data/search.json b/assets/js/data/search.json index 93ef912..de8111d 100644 --- a/assets/js/data/search.json +++ b/assets/js/data/search.json @@ -10,9 +10,9 @@ layout: compress "categories": "{{ post.categories | join: ', '}}", "tags": "{{ post.tags | join: ', ' }}", "date": "{{ post.date }}", - {% assign content = post.content %} + {% assign _content = post.content %} {% include no-linenos.html %} - "snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}" + "snippet": "{{ _content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}" }{% unless forloop.last %},{% endunless %} {% endfor %} ]