From 8d164c2e6ef82c63d6acb312601dc61d8f2edd95 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 4 Sep 2021 21:23:43 +0800 Subject: [PATCH] Enable full-text search (fix #401) --- assets/js/data/search.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/data/search.json b/assets/js/data/search.json index 87badba..30833b9 100644 --- a/assets/js/data/search.json +++ b/assets/js/data/search.json @@ -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 %} ]