fix: restore full-text search (#741)

Resolves #741
This commit is contained in:
Cotes Chung 2022-11-05 04:14:50 +08:00
parent 8134209aa2
commit 6774e0e1fb
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ swcache: true
"tags": {{ post.tags | join: ', ' | jsonify }}, "tags": {{ post.tags | join: ', ' | jsonify }},
"date": "{{ post.date }}", "date": "{{ post.date }}",
{% include no-linenos.html content=post.content %} {% include no-linenos.html content=post.content %}
"snippet": {{ content | strip_html | strip_newlines | truncate: 200 | jsonify }} {% assign _content = content | strip_html | strip_newlines %}
"snippet": {{ _content | truncate: 200 | jsonify }},
"content": {{ _content | jsonify }}
}{% unless forloop.last %},{% endunless %} }{% unless forloop.last %},{% endunless %}
{% endfor %} {% endfor %}
] ]