diff --git a/search.json b/search.json index b4dfd32f..b9c35fd0 100644 --- a/search.json +++ b/search.json @@ -7,7 +7,7 @@ layout: null [ {% for post in sorted %} { - "title" : "{{ post.title | escape }}", + "title" : "{% if post.title %}{{ post.title | jsonify }}{% else %}{{ post.name | remove: ".md" | jsonify }}{% endif %}", "category" : "{{ post.category }}", "tags" : "{{ post.tags | join: ', ' }}", "url" : "{{ site.baseurl }}{{ post.url }}",