From d004397b6bc6a735577917f7af88468f92f6b36e Mon Sep 17 00:00:00 2001 From: fooage Date: Wed, 8 Sep 2021 12:31:31 +0800 Subject: [PATCH] Fix the search error when use Latex --- search.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.json b/search.json index f893ed318..8533046b2 100644 --- a/search.json +++ b/search.json @@ -14,7 +14,7 @@ sitemap: "tags" : "{{ post.tags | join: ', ' }}", "url" : "{{ site.baseurl }}{{ post.url }}", "date" : "{{ post.date }}", - "content" : "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate:200 }}" + "content" : {{ post.content | strip_html | strip_newlines | truncate:400 | jsonify }} } {% unless forloop.last %},{% endunless %} {% endfor %} ] \ No newline at end of file