Added logic to search inside the posts' content
This commit is contained in:
Родитель
45d4381737
Коммит
d6f005cb87
|
@ -82,12 +82,9 @@ var customFilter = (function($){
|
|||
if (result < 0) {
|
||||
result = post.excerpt.search(searchRegEx);
|
||||
|
||||
//TODO: Include content search
|
||||
/*
|
||||
if (result < 0) {
|
||||
result = post.content.search(searchRegEx);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return result >= 0;
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
"title": {{ post.title | jsonify }},
|
||||
"excerpt": {{ post.excerpt | jsonify }},
|
||||
"verticals": {{ post.verticals | jsonify }},
|
||||
"language": {{ post.language | jsonify }}
|
||||
"language": {{ post.language | jsonify }},
|
||||
"content": {{ post.content | strip_html | jsonify }}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
Загрузка…
Ссылка в новой задаче