Skip to content

Commit

Permalink
Enable full-text search (fix #401)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Sep 4, 2021
1 parent f64fca5 commit fa333ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/data/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: compress
"tags": "{{ post.tags | join: ', ' }}",
"date": "{{ post.date }}",
{% include no-linenos.html content=post.content %}
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | replace: '\', '\\\\' }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]

0 comments on commit fa333ef

Please sign in to comment.