Skip to content

Commit 6774e0e

Browse files
committed
fix: restore full-text search (#741)
Resolves #741
1 parent 8134209 commit 6774e0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/js/data/search.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ swcache: true
1212
"tags": {{ post.tags | join: ', ' | jsonify }},
1313
"date": "{{ post.date }}",
1414
{% include no-linenos.html content=post.content %}
15-
"snippet": {{ content | strip_html | strip_newlines | truncate: 200 | jsonify }}
15+
{% assign _content = content | strip_html | strip_newlines %}
16+
"snippet": {{ _content | truncate: 200 | jsonify }},
17+
"content": {{ _content | jsonify }}
1618
}{% unless forloop.last %},{% endunless %}
1719
{% endfor %}
1820
]

0 commit comments

Comments
 (0)