Skip to content

Commit

Permalink
fix: restore full-text search (#741)
Browse files Browse the repository at this point in the history
Resolves #741
  • Loading branch information
cotes2020 committed Nov 4, 2022
1 parent 8134209 commit 6774e0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/data/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ swcache: true
"tags": {{ post.tags | join: ', ' | jsonify }},
"date": "{{ post.date }}",
{% 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 %}
{% endfor %}
]

0 comments on commit 6774e0e

Please sign in to comment.